Commit de739b4a by 高淑倩

商品详情页

parent 105ad21a
......@@ -23,7 +23,7 @@ wxService.page({
memberLevel: false,
showCardModal: false,
currentShareContent: null,
fromZc : false,
fromZc: false,
},
/**
......@@ -34,10 +34,10 @@ wxService.page({
if (options && options.id) {
this.setData({
productId: options.id,
fromZc: options.fromZc == 1
fromZc: options.fromZc == 1
});
//不是从种草过来的, 需要清除本地临时的触点信息
if (!options.fromZc){
if (!options.fromZc) {
wx.removeStorageSync('TEMP_TENTACLE_INFO');
wx.removeStorageSync('TIME_EXPIRATION');
}
......@@ -238,8 +238,9 @@ wxService.page({
let parmas = {
trolleySku2Buy: JSON.stringify(trolleySku2Buy)
}
const { fromZc } = this.data
//判断是否从种草商品过来购买
if (fromZc){
if (fromZc) {
wxService.updateLocalTentacleInfo();
}
wxService
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment