|
@@ -33,7 +33,9 @@ Page({
|
|
|
payInfoChecked:true,
|
|
|
showShareDialog:false,
|
|
|
shareGoodsId:0,
|
|
|
- showtermsOfServiceDialog:false
|
|
|
+ showtermsOfServiceDialog:false,
|
|
|
+
|
|
|
+ special_id:0 //订单成功,弹出的专题页面
|
|
|
},
|
|
|
|
|
|
onShowShareDialog(){
|
|
@@ -133,7 +135,7 @@ Page({
|
|
|
const datas = res.datas
|
|
|
|
|
|
let goods_inviter_tips = this.formGoodsInviterTips(res.datas.goods_inviter_tips)
|
|
|
- const { tips = '', goods = [], cards = [], member_mobile} = datas
|
|
|
+ const { tips = '', goods = [], cards = [], member_mobile,special_id} = datas
|
|
|
|
|
|
let phone = app.getValueByKey('phone', cards)
|
|
|
let petrochina = app.getValueByKey('petrochina', cards)
|
|
@@ -145,7 +147,7 @@ Page({
|
|
|
|
|
|
let goods_id = datas.goods[0].goods_id
|
|
|
let inviter_tip = goods_inviter_tips.get(goods_id)
|
|
|
- this.setData({tips, goods_inviter_tips, inviter_tip, goods, sinopec, petrochina, phone, goods_id, member_mobile});
|
|
|
+ this.setData({ tips, goods_inviter_tips, inviter_tip, goods, sinopec, petrochina, phone, goods_id, member_mobile, special_id});
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
@@ -196,11 +198,11 @@ Page({
|
|
|
return
|
|
|
}
|
|
|
buyVGoods(app,goods_id,1,{ card_no,card_type }, (res) => {
|
|
|
- console.table({card_no,card_type})
|
|
|
- console.log('res:',res)
|
|
|
- let page = getCurrentPages().pop();
|
|
|
- page.onLoad()
|
|
|
+ let special_id = this.data.special_id
|
|
|
+ let title = '支付成功'
|
|
|
+ app.navigateto(`/pages/special/special?special_id=${special_id}&title=${title}`)
|
|
|
}, (err) => {
|
|
|
+
|
|
|
wx.showToast({
|
|
|
icon: 'none',
|
|
|
title: '支付未完成,订单将在10分钟后取消...',
|
|
@@ -255,7 +257,7 @@ Page({
|
|
|
console.log(res)
|
|
|
}
|
|
|
})
|
|
|
- },
|
|
|
+ },
|
|
|
|
|
|
/**
|
|
|
* 生命周期函数--监听页面卸载
|