|
|
@@ -315,8 +315,8 @@ export default {
|
|
|
// this.$refs.passwordPopup.close()
|
|
|
|
|
|
this.$api.balancePay({
|
|
|
- orderNo: this.subOrderNo
|
|
|
- // password: this.password
|
|
|
+ orderNo: this.subOrderNo,
|
|
|
+ password: ''
|
|
|
}).then((res)=>{
|
|
|
|
|
|
uni.showToast({
|
|
|
@@ -331,16 +331,19 @@ export default {
|
|
|
|
|
|
|
|
|
this.getUserInfo()
|
|
|
- }).catch(() =>{
|
|
|
+ }).catch((res) =>{
|
|
|
+ console.log(res)
|
|
|
+ let msg = res.data.msg || '操作失败';
|
|
|
uni.showToast({
|
|
|
- title: "操作失败"
|
|
|
+ title: msg,
|
|
|
+ icon:'error'
|
|
|
})
|
|
|
|
|
|
- setTimeout(res=>{
|
|
|
- uni.switchTab({
|
|
|
- url:'/pages/order/index'
|
|
|
- })
|
|
|
- },1000)
|
|
|
+ // setTimeout(res=>{
|
|
|
+ // uni.switchTab({
|
|
|
+ // url:'/pages/order/index'
|
|
|
+ // })
|
|
|
+ // },1000)
|
|
|
});
|
|
|
|
|
|
},
|