Commit 117f19c7 by 李伟康

提交

1 parent 77abbaa2
......@@ -278,7 +278,6 @@ Page({
})
},
onLoad(options) {
// const query = options ? JSON.parse(decodeURIComponent(options.param)) : this.data.query
const query = options.param
this.getChargeDetail(query, options)
this.setNaviTitle(query.brandName)
......
......@@ -22,8 +22,6 @@ Page({
this.toCheckMember()
},
onLoad: function (options) {
// options = JSON.stringify(options) === '{}' ? this.options : options
// const query = options ? JSON.parse(decodeURIComponent(options.param)) : this.data.query
const query = options.param
this.setNaviTitle(query.brandName)
if (!query.lat) {
......
......@@ -10,11 +10,8 @@ Page({
*/
onLoad: function (options) {
console.log(options)
// let aaa = '{"orderCode":"GL467176510294597632","name":"全车精品套餐","price":"0.01"}'
let temp = JSON.parse(options.order)
// let temp = JSON.parse(aaa)
this.setData({
order: temp
order: options.order
})
},
toMyCoupons() {
......
......@@ -321,13 +321,6 @@ Page({
}
}
}
// // 添加推荐人
// const staff = wx.p.storage.get('shareStaff')
// if (staff) {
// let tem = JSON.parse(staff)
// orderParams.shareStaffUuid = tem.shareStaffUuid
// orderParams.shareStaffName = tem.shareStaffName
// }
wx.p.wxApi.showLoading()
wx.p.api.shopmallApi.createOrder(orderParams).then(data => {
this.pay(data.orderCode)
......@@ -380,17 +373,6 @@ Page({
...params,
success(res) {
_this.requestSubscribeMessage()
// const staffTrack = wx.p.storage.get('shareStaffTracker')
// if (staffTrack) {
// let tem = JSON.parse(staffTrack)
// tem.item_type = tem.isActivity ? 3 : 1
// tem.action_type = 3
// tem.item_id = tem.id
// tem.order_id = orderCode
// // wx.$util.reportData(tem, false, false, true)
// wx.p.storage.rm('shareStaffTracker')
// }
// wx.p.storage.rm('shareStaff')
},
fail(res) {
if (res.errMsg == 'requestPayment:fail cancel') {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!