Browse Source

三个兑换区可余额支付

xiaomei 1 year ago
parent
commit
72d4438675
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/pages/to-pay-list/index.vue

+ 5 - 2
src/pages/to-pay-list/index.vue

@@ -181,7 +181,7 @@
                 <view class="list_name">可用云宝</view>
                 <view class="list_con g_color">¥{{ userinfo.user_money }}</view>
             </view>
-            <view class="order_list flex_r flex_ac flex_jb" v-if="['2','3', '4'].includes(Data.type) && isAct">
+            <view class="order_list flex_r flex_ac flex_jb" v-if="['2','3', '4', '5', '7', '8'].includes(Data.type) && isAct">
                 <view class="list_name">我的余额</view>
                 <view class="list_con g_color">¥{{ localInfo.property }}</view>
             </view>
@@ -370,7 +370,10 @@ export default {
                         obligation = b2 > 0 ? b2 : 0;
                     } else obligation = a;
                 }
-                else if (["5", "6", "7", "8"].includes(type)) obligation = a;
+                else if (type == 5 || type == 8 || type == 7) {
+                    obligation = this.$h.Sub(a, um)> 0 ? this.$h.Sub(a, um) : 0;
+                }
+                else if (["6"].includes(type)) obligation = a;
                 else if (["3"].includes(type)) obligation = b1 > 0 ? this.$h.Add(b1, ys) : ys;
                 else obligation = b > 0 ? b : 0;
                 this.obligation = obligation;