|
|
@ -303,8 +303,15 @@ |
|
|
|
computed: mapGetters(["isLogin", "location"]), |
|
|
|
computed: mapGetters(["isLogin", "location"]), |
|
|
|
mounted: function () { |
|
|
|
mounted: function () { |
|
|
|
let url = handleQrCode(); |
|
|
|
let url = handleQrCode(); |
|
|
|
if (url && url.productId) { |
|
|
|
if (url && url.id) { |
|
|
|
this.id = url.productId; |
|
|
|
this.id = url.id; |
|
|
|
|
|
|
|
var spread = cookie.get("spread"); |
|
|
|
|
|
|
|
let urlSpread = parseInt(url.spread); |
|
|
|
|
|
|
|
if (!Number.isNaN(urlSpread) && spread !== urlSpread) { |
|
|
|
|
|
|
|
cookie.set("spread", urlSpread || 0); |
|
|
|
|
|
|
|
} else if (spread === 0 || typeof spread !== "number") { |
|
|
|
|
|
|
|
cookie.set("spread", urlSpread || 0); |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.id = this._route.query.id; |
|
|
|
this.id = this._route.query.id; |
|
|
|
} |
|
|
|
} |
|
|
@ -326,7 +333,8 @@ |
|
|
|
return { |
|
|
|
return { |
|
|
|
title: this.storeInfo.storeName, |
|
|
|
title: this.storeInfo.storeName, |
|
|
|
imageUrl: this.storeInfo.image, |
|
|
|
imageUrl: this.storeInfo.image, |
|
|
|
path: "pages/shop/GoodsCon/index?id=" + this.storeInfo.id + "&spread=" + uni.getStorageSync("uid")+"&pageType=good&codeType=routine", |
|
|
|
path: "pages/shop/GoodsCon/index?id=" + this.storeInfo.id + "&spread=" + uni.getStorageSync("uid") + |
|
|
|
|
|
|
|
"&pageType=good&codeType=routine", |
|
|
|
success(res) { |
|
|
|
success(res) { |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
|
title: '分享成功' |
|
|
|
title: '分享成功' |
|
|
@ -593,7 +601,7 @@ |
|
|
|
//选择属性; |
|
|
|
//选择属性; |
|
|
|
ChangeAttr: function (res) { |
|
|
|
ChangeAttr: function (res) { |
|
|
|
// 修改了规格 |
|
|
|
// 修改了规格 |
|
|
|
|
|
|
|
|
|
|
|
let productSelect = this.productValue[res.value]; |
|
|
|
let productSelect = this.productValue[res.value]; |
|
|
|
if (productSelect) { |
|
|
|
if (productSelect) { |
|
|
|
this.attr.productAttr[res.indexw].index = res.indexn; |
|
|
|
this.attr.productAttr[res.indexw].index = res.indexn; |
|
|
@ -754,10 +762,10 @@ |
|
|
|
configAppMessage |
|
|
|
configAppMessage |
|
|
|
) |
|
|
|
) |
|
|
|
.then((res) => { |
|
|
|
.then((res) => { |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
.catch((res) => { |
|
|
|
.catch((res) => { |
|
|
|
|
|
|
|
|
|
|
|
if (res.is_ready) { |
|
|
|
if (res.is_ready) { |
|
|
|
res.wx.updateAppMessageShareData(configAppMessage); |
|
|
|
res.wx.updateAppMessageShareData(configAppMessage); |
|
|
|
res.wx.updateTimelineShareData(configAppMessage); |
|
|
|
res.wx.updateTimelineShareData(configAppMessage); |
|
|
@ -776,10 +784,10 @@ |
|
|
|
configAppMessage |
|
|
|
configAppMessage |
|
|
|
) |
|
|
|
) |
|
|
|
.then((res) => { |
|
|
|
.then((res) => { |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
.catch((res) => { |
|
|
|
.catch((res) => { |
|
|
|
|
|
|
|
|
|
|
|
if (res.is_ready) { |
|
|
|
if (res.is_ready) { |
|
|
|
res.wx.updateAppMessageShareData(configAppMessage); |
|
|
|
res.wx.updateAppMessageShareData(configAppMessage); |
|
|
|
res.wx.updateTimelineShareData(configAppMessage); |
|
|
|
res.wx.updateTimelineShareData(configAppMessage); |
|
|
|