Parcourir la source

feat:修复余额支付问题

LuoDLeo il y a 2 ans
Parent
commit
4dc331df39
1 fichiers modifiés avec 12 ajouts et 9 suppressions
  1. 12 9
      orderPages/bookService/index.vue

+ 12 - 9
orderPages/bookService/index.vue

@@ -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)
             });
 
         },