瀏覽代碼

金额限制

xuqiang 4 年之前
父節點
當前提交
28b67b63e3
共有 1 個文件被更改,包括 12 次插入3 次删除
  1. 12 3
      src/pages/walletdetails.vue

+ 12 - 3
src/pages/walletdetails.vue

@@ -11,6 +11,7 @@
     <div class="top">
         <div class="box-con">
             <p>提现金额</p>
+            <!-- <div class="text2">提现金额不低于一元</div> -->
             <div class="num">
                 <span>全部可提现 ¥{{ moneyInfo.money || 0 }}</span>
             </div>
@@ -37,6 +38,7 @@
                     <span>微信钱包</span>
                 </div>
             </div>
+            <div class="text2">提现金额不低于一元</div>
             <van-button type="primary" size="small" :disabled="notWithdrawal" @click="Withdrawal(notWithdrawal)"
                 >申请提现</van-button
             >
@@ -81,10 +83,10 @@ export default {
                 });
                 return;
             }
-            if (this.form.boxPrice == 0) {
+            if (this.form.boxPrice < 1) {
                 wx.showToast({
                     icon: 'none',
-                    title: '金额不能为零',
+                    title: '金额不能低于1元',
                     duration: 2000
                 });
                 return;
@@ -105,7 +107,7 @@ export default {
     height: 48px !important;
     background: #ff6c00;
     border-radius: 12px;
-    margin: 77px 0 0 22px;
+    margin-left: 22px;
     font-size: 16px !important;
     width: 100%;
 }
@@ -130,6 +132,13 @@ export default {
             line-height: 20px;
             padding: 30px 0 4px 16px;
         }
+        .text2 {
+            font-size: 14px;
+            color: #ccc;
+            text-align: center;
+            margin: 40px 0;
+            padding: 5px 16px;
+        }
         .num {
             .flex();
             padding-left: 16px;