From e2e88062d86e1f148f148ec0ab447612dfcdbba8 Mon Sep 17 00:00:00 2001 From: lfs3 Date: Wed, 24 Jul 2019 15:57:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E8=AF=86=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/wxShare.js | 2 -- src/view/home.vue | 12 +++++------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/models/wxShare.js b/src/models/wxShare.js index 248f0b9..beb7fd8 100644 --- a/src/models/wxShare.js +++ b/src/models/wxShare.js @@ -34,7 +34,6 @@ Vue.prototype.wxShare = function(params) { if(uuniqueId !== undefined && uuniqueId !== null && uuniqueId !== ""){ urlParams = '?uniqueId='+ uuniqueId } - console.log('urlParams:'+urlParams) wx.ready(() => { //获取“分享给朋友”按钮点击状态及自定义分享内容接口 wx.onMenuShareAppMessage({ @@ -44,7 +43,6 @@ Vue.prototype.wxShare = function(params) { link: shareConfig.url+urlParams, // 分享链接 默认以当前链接 imgUrl: shareConfig.img, // 分享图标 success: function(res) { - console.log('url:'+shareConfig.url+urlParams) } }); //转发到朋友圈 diff --git a/src/view/home.vue b/src/view/home.vue index b599fd0..60a78c2 100644 --- a/src/view/home.vue +++ b/src/view/home.vue @@ -133,7 +133,7 @@ export default { data() { return { show: false, - uniqueId:Qs.parse(location.search.substring(1)).uniqueId, + uniqueId:'', defaultCity: "天河区", //区名 默认值 不需要去掉 merchantNo: 2, //商户编号 默认值 不需要去掉 districtId: "440106000", //区id 默认值 不需要去掉 @@ -411,21 +411,19 @@ export default { // this.getAddress(); // this.getLocation(); this.getData(); - let uuniqueId = Qs.parse(location.search.substring(1)).uniqueId - + var uuniqueId = Qs.parse(location.search.substring(1)).uniqueId if(uuniqueId !== undefined && uuniqueId !== null && uuniqueId !== ""){ - this.countExtend(); - uuniqueId = ''; + this.uniqueId = uuniqueId } - return new Promise((resolve, reject) => { var params = { - salesmanUniqueIdentity: uuniqueId, + salesmanUniqueIdentity: this.uniqueId, }; homeApi.updateUniqueId(params).then(res => { this.showLoading = false; if (res.code == 0) { this.uniqueId=this.$cookies.get('1hjz_mall_unique_id') + this.countExtend(); this.ShareWenXin(); } else { this.$vux.toast.text(res.msg, "middle");