From 25c2290564b8a6a23f016ff3132dab9292757a74 Mon Sep 17 00:00:00 2001 From: linxi Date: Fri, 9 May 2025 15:16:07 +0800 Subject: [PATCH] =?UTF-8?q?Tasl=EF=BC=9A=E6=97=85=E5=B1=85=E5=88=86?= =?UTF-8?q?=E4=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/qianxian.js | 5 ++++ pkg_product/views/sojoumStore.vue | 46 ++++++++++++++++++++++++++++--- 2 files changed, 47 insertions(+), 4 deletions(-) diff --git a/api/qianxian.js b/api/qianxian.js index 8be4cd9..2d9813a 100644 --- a/api/qianxian.js +++ b/api/qianxian.js @@ -147,4 +147,9 @@ export function postJiaLouNewsView(data) { // 旅居资讯点赞 export function postJiaLouNewsZan(data) { return request.post('/countyFamous/news/zan', data, {login: true}) +} + +// 分享旅居 +export function postJiaLouShare(id) { + return request.get('/countyFamous/sojourn/poster/' + id, {login: true}) } \ No newline at end of file diff --git a/pkg_product/views/sojoumStore.vue b/pkg_product/views/sojoumStore.vue index bea0fa5..b4410d5 100644 --- a/pkg_product/views/sojoumStore.vue +++ b/pkg_product/views/sojoumStore.vue @@ -103,9 +103,9 @@ {{ store.shopIntro }} - + @@ -307,6 +307,29 @@ + + + + + + + + + + @@ -316,7 +339,8 @@ import { getJiaLouNews, postJiaLouNewsView, postJiaLouNewsZan, - postJiaLouZan + postJiaLouZan, + postJiaLouShare } from '@/api/qianxian' import imgBox from '@/components/imageTypeSet/imagebox.vue' export default { @@ -344,6 +368,7 @@ export default { infoArray: [], videoPlayers: [], activeVideo: 'coverVideo', + showShare: false } }, onPageScroll(e) { @@ -354,6 +379,18 @@ export default { this.getFarmerData() }, 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) { this.$yrouter.push({ path: '/pages/shop/GoodsCon/index', @@ -511,6 +548,7 @@ export default {