Эх сурвалжийг харах

fix: 订阅开关弹窗修改挂载节点、控制金额输入框长度

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 1 жил өмнө
parent
commit
208df0ee50

+ 4 - 1
src/web/staticres/common-module/vipsubscribe/js/vip-subscribe-set-template.js

@@ -285,6 +285,7 @@ var subScribeTemplate = `
         <div class="custom-title">自定义金额</div>
         <div class="custom-input">
           <van-field
+            maxlength="9" 
             type="number"
             class="custom-inout-item"
             v-model="customMoney.min"
@@ -297,6 +298,7 @@ var subScribeTemplate = `
           </van-field>
           <div class="custom-input-line"></div>
           <van-field
+            maxlength="9" 
             type="number"
             class="custom-inout-item"
             v-model="customMoney.max"
@@ -367,7 +369,7 @@ var subScribeTemplate = `
       </div>
     </div>
   </van-popup>
-  <van-dialog class-name="sub-dialog-confirm" v-model="showSubDialog" width="303px" title="开启订阅" :show-confirm-button="false">
+  <van-dialog getContainer="body" class-name="sub-dialog-confirm" v-model="showSubDialog" width="303px" title="开启订阅" :show-confirm-button="false">
     <div class="sub-dialog-content">
       当前订阅状态为关闭状态,不支持修改,请开启订阅
     </div>
@@ -1044,6 +1046,7 @@ var subComponent = {
           this.customMoney.min = min
           this.customMoney.max = max
           if(!max) {
+            this.customMoney.max = ''
             this.info.amountRange = min + '万以上'
           } else {
             this.info.amountRange = min + '-' + max + '万'