|
@@ -50,6 +50,7 @@
|
|
|
order_id:'',
|
|
|
isform: 0,
|
|
|
ratio_points: 2,
|
|
|
+ store_id: '',
|
|
|
}
|
|
|
},
|
|
|
onLoad(e) {
|
|
@@ -57,6 +58,7 @@
|
|
|
console.log("支付");
|
|
|
this.prices = e.prices;
|
|
|
this.order_id = e.order_id;
|
|
|
+ this.store_id = e.store_id;
|
|
|
this.getuserInfo();
|
|
|
this.isform = e.isform;
|
|
|
//this.ratio_points = e.ratio_points;
|
|
@@ -113,8 +115,9 @@
|
|
|
if(res.data.code == 1000) {
|
|
|
setTimeout(()=> {
|
|
|
let isform = this.isform;
|
|
|
+ let store_id = this.store_id;
|
|
|
uni.navigateTo({
|
|
|
- url: `/pages/myOrder/finsh?isform=${isform}&order_id=${this.order_id}`
|
|
|
+ url: `/pages/myOrder/finsh?isform=${isform}&order_id=${this.order_id}&store_id=${store_id}`
|
|
|
})
|
|
|
//uni.navigateBack()
|
|
|
}, 1000)
|
|
@@ -150,12 +153,22 @@
|
|
|
let isform = this.isform;
|
|
|
let order_id = this.order_id;
|
|
|
uni.navigateTo({
|
|
|
- url: `/pages/myOrder/finsh?isform=${isform}&order_id=${order_id}`
|
|
|
+ url: `/pages/myOrder/finsh?isform=${isform}&order_id=${order_id}&store_id=${store_id}`
|
|
|
})
|
|
|
},
|
|
|
- fail: function (err) {
|
|
|
+ fail: (err) => {
|
|
|
+ let order_id = this.order_id ;
|
|
|
+ uni.redirectTo({
|
|
|
+ url: `/pages/myOrder/order?id=${order_id}`
|
|
|
+ });
|
|
|
}
|
|
|
})
|
|
|
+ },
|
|
|
+ fail:(res) => {
|
|
|
+ let order_id = this.order_id ;
|
|
|
+ uni.redirectTo({
|
|
|
+ url: `/pages/myOrder/order?id=${order_id}`
|
|
|
+ });
|
|
|
}
|
|
|
})
|
|
|
}else {
|