Sfoglia il codice sorgente

账户余额不足跳转修改

MS-IOHQJGHXZHQD\Administrator 4 mesi fa
parent
commit
c776c43cde

+ 1 - 1
src/points/productDetails/applyRefund.vue

@@ -73,7 +73,7 @@
                 <u-button :customStyle="{
                     color: '#fff',
                     background: '#03C1B8'
-                }" @click="goSubmit">{{ orderStatus == 3 ? '确认' : '提交' }}</u-button>
+                }" @click="goSubmit">{{ (receiptStatus == 'received' && afterSalesType == 'exchange') ? '确认' : '提交' }}</u-button>
 
             </view>
 

+ 4 - 3
src/points/productDetails/pendingPayment.vue

@@ -367,19 +367,20 @@ export default {
             })
         },
         //账号余额支付
-        async nowYuyue(params) {
-            if (parseInt(this.dBalance) < parseInt(10)) {
+        async nowYuyue() {
+            if (parseFloat(this.dBalance) < parseFloat(this.orderInfo.totalAmount)) {
                 uni.showModal({
                     title: '账户余额不足',
                     content: '请充值',
                     success: function (res) {
                         if (res.confirm) {
                             uni.navigateTo({
-                                url: 'pages/my/pay?name=充值'
+                                url: '../../pages/my/pay?name=充值'
                             })
                         } else if (res.cancel) { }
                     }
                 });
+                this.goPayBtnDisable = false
             } else {
                 let data = await this.productOrderPayFun()
                 if (!data) return