Tasl:旅居分享
This commit is contained in:
@@ -147,4 +147,9 @@ export function postJiaLouNewsView(data) {
|
|||||||
// 旅居资讯点赞
|
// 旅居资讯点赞
|
||||||
export function postJiaLouNewsZan(data) {
|
export function postJiaLouNewsZan(data) {
|
||||||
return request.post('/countyFamous/news/zan', data, {login: true})
|
return request.post('/countyFamous/news/zan', data, {login: true})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 分享旅居
|
||||||
|
export function postJiaLouShare(id) {
|
||||||
|
return request.get('/countyFamous/sojourn/poster/' + id, {login: true})
|
||||||
}
|
}
|
||||||
@@ -103,9 +103,9 @@
|
|||||||
<view class="inn-signature">
|
<view class="inn-signature">
|
||||||
{{ store.shopIntro }}
|
{{ store.shopIntro }}
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="share-btn" @click="changeShare">
|
<view class="share-btn" @click="changeShare">
|
||||||
<image :src="webUrl + '/page/hotel/share.png'" class="img" />
|
<image :src="webUrl + '/page/hotel/share.png'" class="img" />
|
||||||
</view> -->
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="store.name" class="map-wrapper">
|
<view v-if="store.name" class="map-wrapper">
|
||||||
<view class="map-cont">
|
<view class="map-cont">
|
||||||
@@ -307,6 +307,29 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- 分享 -->
|
||||||
|
<u-popup
|
||||||
|
:show="showShare"
|
||||||
|
mode="center"
|
||||||
|
bgColor="transparent"
|
||||||
|
>
|
||||||
|
<view class="box-share">
|
||||||
|
<view class="box-img">
|
||||||
|
<image
|
||||||
|
:src="webUrl + '/20230608112219219303.png'"
|
||||||
|
class="icon"
|
||||||
|
@click="closeShare"
|
||||||
|
/>
|
||||||
|
<image :src="posterUrl" class="main-img" mode="widthFix" />
|
||||||
|
</view>
|
||||||
|
<image
|
||||||
|
:src="webUrl + '/20230608112210135038.png'"
|
||||||
|
mode="widthFix"
|
||||||
|
class="btn"
|
||||||
|
@click="saveImg"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</u-popup>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -316,7 +339,8 @@ import {
|
|||||||
getJiaLouNews,
|
getJiaLouNews,
|
||||||
postJiaLouNewsView,
|
postJiaLouNewsView,
|
||||||
postJiaLouNewsZan,
|
postJiaLouNewsZan,
|
||||||
postJiaLouZan
|
postJiaLouZan,
|
||||||
|
postJiaLouShare
|
||||||
} from '@/api/qianxian'
|
} from '@/api/qianxian'
|
||||||
import imgBox from '@/components/imageTypeSet/imagebox.vue'
|
import imgBox from '@/components/imageTypeSet/imagebox.vue'
|
||||||
export default {
|
export default {
|
||||||
@@ -344,6 +368,7 @@ export default {
|
|||||||
infoArray: [],
|
infoArray: [],
|
||||||
videoPlayers: [],
|
videoPlayers: [],
|
||||||
activeVideo: 'coverVideo',
|
activeVideo: 'coverVideo',
|
||||||
|
showShare: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onPageScroll(e) {
|
onPageScroll(e) {
|
||||||
@@ -354,6 +379,18 @@ export default {
|
|||||||
this.getFarmerData()
|
this.getFarmerData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
changeShare() {
|
||||||
|
uni.showLoading()
|
||||||
|
postJiaLouShare(this.id).then(res => {
|
||||||
|
this.posterUrl = res.data
|
||||||
|
this.showShare = !this.showShare
|
||||||
|
}).finally(() => {
|
||||||
|
uni.hideLoading()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
closeShare() {
|
||||||
|
this.showShare = false
|
||||||
|
},
|
||||||
goGoodsConByID(item) {
|
goGoodsConByID(item) {
|
||||||
this.$yrouter.push({
|
this.$yrouter.push({
|
||||||
path: '/pages/shop/GoodsCon/index',
|
path: '/pages/shop/GoodsCon/index',
|
||||||
@@ -511,6 +548,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
@import "@/assets/css/store.less";
|
||||||
.btn {
|
.btn {
|
||||||
.img {
|
.img {
|
||||||
display: block;
|
display: block;
|
||||||
@@ -806,7 +844,7 @@ export default {
|
|||||||
position: relative;
|
position: relative;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
height: 200rpx;
|
height: 200rpx;
|
||||||
margin: 20rpx 0 0 0;
|
margin: 40rpx 0 0 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
.map-cont {
|
.map-cont {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
Reference in New Issue
Block a user