|
|
|
@ -22,7 +22,8 @@ Page({ |
|
|
|
shareImg: null, |
|
|
|
showShareFlag: false, |
|
|
|
showQrCode: false, |
|
|
|
wxqrcode: null |
|
|
|
wxqrcode: null, |
|
|
|
ZTPoint:'' |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
@ -40,6 +41,8 @@ Page({ |
|
|
|
retailId: options.retailId |
|
|
|
}) |
|
|
|
} |
|
|
|
if (options.ZTPoint) {this.setData({ZTPoint: options.ZTPoint})} |
|
|
|
|
|
|
|
let api = commonApi._post; |
|
|
|
if (wx.getStorageSync("jstrip_token")) { |
|
|
|
api = commonApi.user_post; |
|
|
|
@ -169,7 +172,8 @@ Page({ |
|
|
|
} else { |
|
|
|
app.globalData.couponInfo = null; |
|
|
|
app.globalData.product = { |
|
|
|
product: this.data.info |
|
|
|
product: {...this.data.info,ZTPoint:this.data.ZTPoint}, |
|
|
|
|
|
|
|
} |
|
|
|
app.globalData.retailId = this.data.retailId; |
|
|
|
util.pagePoint({ |
|
|
|
@ -182,7 +186,9 @@ Page({ |
|
|
|
wx.setStorageSync('login_from', 'product_order_login') |
|
|
|
wx.setStorageSync('order_from', 'product_order_submit') |
|
|
|
wx.navigateTo({ |
|
|
|
url: '/pages/order/road/index?id=' + this.data.info.id + (this.data.retailSkuId ? ('&skuid=' + this.data.retailSkuId) : '') |
|
|
|
url: '/pages/order/road/index?id=' + this.data.info.id |
|
|
|
+ (this.data.retailSkuId ? ('&skuid=' + this.data.retailSkuId) : '') |
|
|
|
+'&ZTPoint='+this.data.ZTPoint, |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
|