|
@@ -224,20 +224,16 @@ export default {
|
|
|
if (this.payType === 'aliPay') {
|
|
|
Toast({
|
|
|
message: '微信小程序不支持支付宝支付',
|
|
|
- position: 'top'
|
|
|
+ position: 'top',
|
|
|
+ duration: 3000
|
|
|
});
|
|
|
return false
|
|
|
}
|
|
|
- this.$wx.miniProgram.postMessage({
|
|
|
- data: {
|
|
|
- action: 'payAppMessageData',
|
|
|
- params: {
|
|
|
- payType: this.payType === 'aliPay' ? 3 : 2,
|
|
|
- orderNum: res.data.myOrderNum,
|
|
|
- buyType: 1,
|
|
|
- price: this.actualPrice
|
|
|
- },
|
|
|
- },
|
|
|
+ this.$wx.miniProgram.navigateTo({
|
|
|
+ url: '/packageA/order/status/index?record=' + JSON.stringify({
|
|
|
+ payActive: this.payType === 'wxPay' ? 1 : 0,
|
|
|
+ myOrderNum: res.data.myOrderNum
|
|
|
+ }),
|
|
|
});
|
|
|
} else {
|
|
|
// 使用postMessage 方法可以发送消息到应用, 消息内容需要在data 对象中,否则webview无法接收到
|