Browse Source

标识修改

feature/3.0.0-推广员
lfs3 6 years ago
parent
commit
e2e88062d8
2 changed files with 5 additions and 9 deletions
  1. 2
      src/models/wxShare.js
  2. 12
      src/view/home.vue

2
src/models/wxShare.js

@ -34,7 +34,6 @@ Vue.prototype.wxShare = function(params) {
if(uuniqueId !== undefined && uuniqueId !== null && uuniqueId !== ""){ if(uuniqueId !== undefined && uuniqueId !== null && uuniqueId !== ""){
urlParams = '?uniqueId='+ uuniqueId urlParams = '?uniqueId='+ uuniqueId
} }
console.log('urlParams:'+urlParams)
wx.ready(() => { wx.ready(() => {
//获取“分享给朋友”按钮点击状态及自定义分享内容接口 //获取“分享给朋友”按钮点击状态及自定义分享内容接口
wx.onMenuShareAppMessage({ wx.onMenuShareAppMessage({
@ -44,7 +43,6 @@ Vue.prototype.wxShare = function(params) {
link: shareConfig.url+urlParams, // 分享链接 默认以当前链接 link: shareConfig.url+urlParams, // 分享链接 默认以当前链接
imgUrl: shareConfig.img, // 分享图标 imgUrl: shareConfig.img, // 分享图标
success: function(res) { success: function(res) {
console.log('url:'+shareConfig.url+urlParams)
} }
}); });
//转发到朋友圈 //转发到朋友圈

12
src/view/home.vue

@ -133,7 +133,7 @@ export default {
data() { data() {
return { return {
show: false, show: false,
uniqueId:Qs.parse(location.search.substring(1)).uniqueId,
uniqueId:'',
defaultCity: "天河区", // defaultCity: "天河区", //
merchantNo: 2, // merchantNo: 2, //
districtId: "440106000", //id districtId: "440106000", //id
@ -411,21 +411,19 @@ export default {
// this.getAddress(); // this.getAddress();
// this.getLocation(); // this.getLocation();
this.getData(); 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 !== ""){ if(uuniqueId !== undefined && uuniqueId !== null && uuniqueId !== ""){
this.countExtend();
uuniqueId = '';
this.uniqueId = uuniqueId
} }
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
var params = { var params = {
salesmanUniqueIdentity: uuniqueId,
salesmanUniqueIdentity: this.uniqueId,
}; };
homeApi.updateUniqueId(params).then(res => { homeApi.updateUniqueId(params).then(res => {
this.showLoading = false; this.showLoading = false;
if (res.code == 0) { if (res.code == 0) {
this.uniqueId=this.$cookies.get('1hjz_mall_unique_id') this.uniqueId=this.$cookies.get('1hjz_mall_unique_id')
this.countExtend();
this.ShareWenXin(); this.ShareWenXin();
} else { } else {
this.$vux.toast.text(res.msg, "middle"); this.$vux.toast.text(res.msg, "middle");

Loading…
Cancel
Save