Browse Source

尾标&comfirm

panhui 5 years ago
parent
commit
eb210eb6c8
2 changed files with 4 additions and 2 deletions
  1. 3 1
      src/pages/store/productEdit.vue
  2. 1 1
      src/vant/field/index.js

+ 3 - 1
src/pages/store/productEdit.vue

@@ -23,6 +23,7 @@
                 @input="form.boxPrice = $event.detail"
                 placeholder="请输入金额"
             >
+                <span slot="right-icon">元</span>
             </van-field>
             <van-field
                 label="拼箱结束"
@@ -43,11 +44,12 @@
             </van-field> -->
             <van-field
                 label="邮费"
-                right-icon="gold-coin"
                 :value="form.postage"
                 @input="form.postage = $event.detail"
                 placeholder="请输入邮费"
+                type="digit"
             >
+                <span slot="right-icon">元</span>
             </van-field>
         </van-cell-group>
         <div class="box-con">

+ 1 - 1
src/vant/field/index.js

@@ -78,7 +78,7 @@ VantComponent({
         onConfirm(event) {
             const { value = '' } = event.detail || {};
             // this.value = value;
-            this.setData({ innerValue: '' });
+            // this.setData({ innerValue: '' });
             this.setShowClear();
             this.$emit('confirm', value);
         },