From 4aec5850078d02a7ad4693fa8f83bf181903dfc5 Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Mon, 11 Dec 2023 17:29:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=EF=BC=9A=E6=96=87=E5=88=9B?= =?UTF-8?q?=E8=B1=86=E5=95=86=E5=9F=8E=E6=B7=BB=E5=8A=A0=E5=88=86=E4=BA=AB?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=EF=BC=8C=E5=88=86=E4=BA=AB=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=90=8E=E5=8F=B0=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fun/index.js | 4 +- .../member/weight_value/legumes/shopping.vue | 43 +++++++++++-------- 2 files changed, 27 insertions(+), 20 deletions(-) diff --git a/src/fun/index.js b/src/fun/index.js index 84cd5c9..68cb67f 100644 --- a/src/fun/index.js +++ b/src/fun/index.js @@ -960,7 +960,8 @@ var fun = { "/member/courseindex", "/member/payanother/", "/enrollEnter/", - '/activityHome' + '/activityHome', + '/member/legumes/shopping' ]; for (let i = 0; i < list.length; i++) { @@ -995,6 +996,7 @@ var fun = { $http.post("member.member.wxJsSdkConfig", requestData).then( response => { if (response.result === 1) { + console.log('配置信息',response.data); if (response.data.config && response.data.config.appId) { if (shareFun) { shareFun(response.data); diff --git a/src/views/member/weight_value/legumes/shopping.vue b/src/views/member/weight_value/legumes/shopping.vue index 680ebf5..006c01d 100644 --- a/src/views/member/weight_value/legumes/shopping.vue +++ b/src/views/member/weight_value/legumes/shopping.vue @@ -229,6 +229,7 @@ export default { videoTime: '', task_status: false,// 任务是否已经完成 is_show: false, + share_config: {}, withdrawal_num: '',// 提现数量 is_video_show: false,// 商品播放器是否显示 account_info: {},// 提现账号信息 @@ -266,7 +267,8 @@ export default { _this.getAccountInfo(); // 判断:当前是否为微信浏览器打开 _this.$nextTick(() => { - //_this.is_show_share = _this.fun.getTyep() == 1; + _this.getShareSet(); + _this.is_show_share = _this.fun.getTyep() == 1; }); }, methods: { @@ -326,6 +328,19 @@ export default { _this.getGoodsList(); } }, + // 分享设置信息获取 + getShareSet() { + let _this = this; + $http.get("plugin.cultural-space.api.index.getShopShareInfo", {}, "加载中...") + .then(response => { + if (response.result === 1) { + _this.share_config = response.data; + } + }) + .catch(error => { + console.log(error); + }); + }, // 提现账号信息是否完善 getAccountInfo(){ let _this = this; @@ -395,25 +410,15 @@ export default { } else { // 微信分享 _this.$dialog.alert({message: "请点击右上角微信分享"}); - let shareConfig = { - title: '这里是分享标题', - imgUrl: '', - description: '这里是描述信息', - // link: '' - }; - _this.fun.wxShare("", {mid: _this.fun.getKeyByMid()}, shareConfig, - data => {}, - success => { - _this.task_status = true; - _this.$dialog.alert({message: "分享成功"}).then(()=>{ - - - - _this.$dialog.alert({message: "分享成功,触发自动提交!"}); - - // _this.submitWithdrawal();// 自动触发提交 - }); + // 配置微信分享信息 + _this.fun.wxShare("", {mid: _this.fun.getKeyByMid()}, _this.share_config , data => { + console.log('配置信息',data); + }, success => { + _this.task_status = true; + _this.$dialog.alert({message: "分享成功"}).then(() => { + _this.submitWithdrawal();// 自动触发提交 }); + }); } }, // 提现 - 开始处理 提现流程