|
|
@@ -281,7 +281,10 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
getUserInfo() {
|
|
|
- this.userInfo = uni.getStorageSync('userInfo');
|
|
|
+ this.$api.getUserInfo().then(res => {
|
|
|
+ this.userInfo = res.data.data
|
|
|
+ uni.setStorageSync('userInfo', res.data.data);
|
|
|
+ });
|
|
|
},
|
|
|
balancePay(){
|
|
|
|
|
|
@@ -293,14 +296,16 @@ export default {
|
|
|
return ;
|
|
|
}
|
|
|
this.$refs.passwordPopup.close()
|
|
|
- // 用户信息
|
|
|
+
|
|
|
this.$api.trade({
|
|
|
tradeNo: this.tradeNo,
|
|
|
password: this.password
|
|
|
}).then((res)=>{
|
|
|
- uni.switchTab({
|
|
|
- url:'/pages/order/index'
|
|
|
- })
|
|
|
+ uni.showToast({
|
|
|
+ title: '支付成功!'
|
|
|
+ });
|
|
|
+
|
|
|
+ that.getOrderDetailByOrderId(that.orderId)
|
|
|
}).catch(() =>{
|
|
|
uni.showToast({
|
|
|
title: "操作失败"
|
|
|
@@ -340,8 +345,8 @@ export default {
|
|
|
uni.showToast({
|
|
|
title: '支付成功!'
|
|
|
});
|
|
|
+ that.getOrderDetailByOrderId(that.orderId)
|
|
|
that.$refs.popup.close()
|
|
|
- that.$refs.MescrollItem[that.tabIndex].downCallback()
|
|
|
},
|
|
|
fail: res => {
|
|
|
console.log(res)
|
|
|
@@ -350,7 +355,6 @@ export default {
|
|
|
showCancel: false
|
|
|
});
|
|
|
that.$refs.popup.close()
|
|
|
- that.$refs.MescrollItem[that.tabIndex].downCallback()
|
|
|
}
|
|
|
});
|
|
|
}).catch(() =>{
|