Browse Source

分享设置

feature/3.0.0-推广员
lfs3 6 years ago
parent
commit
0f8ccd9bbb
1 changed files with 4 additions and 4 deletions
  1. 8
      src/models/wxShare.js

8
src/models/wxShare.js

@ -15,7 +15,7 @@ Vue.prototype.wxShare = function(params) {
var jsApiSignConfig = response.response.jsApiSignConfig; var jsApiSignConfig = response.response.jsApiSignConfig;
var shareConfig = response.response.shareConfig; var shareConfig = response.response.shareConfig;
// var couponNo = response.response.couponNo
var couponNo = response.response.couponNo
wx.config({ wx.config({
debug: false, // 开启调试模式,开发时可以开启 debug: false, // 开启调试模式,开发时可以开启
appId: jsApiSignConfig.appId, // 必填,公众号的唯一标识 由接口返回 appId: jsApiSignConfig.appId, // 必填,公众号的唯一标识 由接口返回
@ -32,9 +32,9 @@ Vue.prototype.wxShare = function(params) {
}); });
var urlParams = ''; var urlParams = '';
let uuniqueId = this.$cookies.get('1hjz_mall_unique_id') let uuniqueId = this.$cookies.get('1hjz_mall_unique_id')
// if(couponNo !== undefined && couponNo !== null && couponNo !== ""){
// urlParams = '?batchNo='+ couponNo
// }
if(couponNo !== undefined && couponNo !== null && couponNo !== ""){
urlParams = '?batchNo='+ couponNo
}
if(uuniqueId !== undefined && uuniqueId !== null && uuniqueId !== ""){ if(uuniqueId !== undefined && uuniqueId !== null && uuniqueId !== ""){
if(urlParams.length > 0){ if(urlParams.length > 0){
urlParams+='&uniqueId='+ uuniqueId urlParams+='&uniqueId='+ uuniqueId

Loading…
Cancel
Save