xuqiang 4 年之前
父節點
當前提交
79d317c6ed
共有 1 個文件被更改,包括 40 次插入37 次删除
  1. 40 37
      src/pages/store/productEdit.vue

+ 40 - 37
src/pages/store/productEdit.vue

@@ -47,7 +47,7 @@
                     @input="form.boxPrice = $event.detail"
                     placeholder="请输入金额"
                 >
-                    <span slot="right-icon">元</span>
+                    <span slot="right-icon" style="font-size: 14px;">元</span>
                 </van-field>
                 <van-field
                     label="拼箱结束"
@@ -73,12 +73,12 @@
                     @input="form.postage = $event.detail"
                     placeholder="请输入邮费"
                 >
-                    <span slot="right-icon">元</span>
+                    <span slot="right-icon" style="font-size: 14px;">元</span>
                 </van-field>
                 <div v-if="time == 4" @click="flag = false">
                     <van-field label="福袋管理" is-link readonly>
-                        <span slot="right-icon" v-if="cardList.length < 1">去添加</span>
-                        <span slot="right-icon" v-else>已新增{{ cardList.length }}个福袋</span>
+                        <span slot="right-icon" style="font-size: 14px;" v-if="cardList.length < 1">去添加</span>
+                        <span slot="right-icon" style="font-size: 14px;" v-else>已新增{{ cardList.length }}个福袋</span>
                         <!-- <span slot="right-icon">{{ !!cardList ? `已新增${cardList.length}个福袋` : '去添加' }}</span> -->
                     </van-field>
                 </div>
@@ -92,10 +92,10 @@
                         <div class="top">
                             <span>选择卡包</span>
                         </div>
-                        <van-sticky class="index" :offset-top="0">
+                        <van-sticky class="index">
                             <div class="time-box">
-                                <van-dropdown-menu direction="up">
-                                    <van-dropdown-item @change="change" :value="time" :options="option1" />
+                                <van-dropdown-menu>
+                                    <van-dropdown-item class="cell" @change="change" :value="time" :options="option1" />
                                 </van-dropdown-menu>
                             </div>
                         </van-sticky>
@@ -161,13 +161,13 @@
                     <div class="top">
                         <span>限购选择</span>
                     </div>
-                    <van-sticky :offset-top="0">
-                        <div class="time-box">
-                            <van-dropdown-menu>
-                                <van-dropdown-item @change="onChange" :value="times" :options="option2" />
-                            </van-dropdown-menu>
-                        </div>
-                    </van-sticky>
+                    <!-- <van-sticky class="indexs" :offset-top="0"> -->
+                    <div class="time-box indexs">
+                        <van-dropdown-menu>
+                            <van-dropdown-item @change="onChange" :value="times" :options="option2" />
+                        </van-dropdown-menu>
+                    </div>
+                    <!-- </van-sticky> -->
                 </div>
             </div>
             <div class="box-con">
@@ -261,6 +261,7 @@
                     :file-list="forms.image"
                     :after-read="afterReads"
                     @delete="deleteImgs"
+                    :showUpload="forms.image.length == 0"
                 />
                 <div class="bottom">
                     <van-button type="primary" block @click="submitNum">完成</van-button>
@@ -346,12 +347,6 @@ export default {
                 };
             });
         }
-        // addBlessing() {
-        //     return this.$mp.query.cardList;
-        // },
-        // addBlessingNum() {
-        //     return this.$mp.query.num;
-        // }
     },
     watch: {
         show: {
@@ -456,6 +451,7 @@ export default {
             this.forms.amount = '';
             this.forms.image = [];
         },
+
         submitNum() {
             if (!this.forms.name) {
                 wx.showToast({
@@ -471,13 +467,6 @@ export default {
                 });
                 return;
             }
-            if (this.forms.image <= 0) {
-                wx.showToast({
-                    icon: 'none',
-                    title: '请添加福袋图片'
-                });
-                return;
-            }
             let data = { name: this.forms.name, amount: this.forms.amount };
             let image = this.forms.image[0].url;
             data.image = image;
@@ -850,14 +839,11 @@ export default {
 /deep/ .van-uploader {
     margin-top: 15px;
 }
-.time-box {
-    background-color: @bg;
-    margin-right: 20px;
-}
+
 /deep/.form {
     position: relative;
     .van-cell {
-        --cell-vertical-padding: 18px;
+        --cell-vertical-padding: 20px;
         --cell-horizontal-padding: 20px;
         --field-label-color: #000000;
         --cell-text-color: #000;
@@ -879,7 +865,7 @@ export default {
         }
     }
     .tit {
-        font-size: 13px;
+        font-size: 14px;
         margin-left: 20px;
         font-weight: bold;
         color: #000;
@@ -887,9 +873,9 @@ export default {
     }
 }
 .addorder {
-    padding-bottom: 100px;
+    padding-bottom: 200px;
     .box-con {
-        margin: 23px 0 0 20px;
+        margin: 16px 0 0 20px;
         .label {
             font-size: 14px;
             font-weight: bold;
@@ -901,10 +887,27 @@ export default {
             .flex();
             justify-content: space-between;
             padding-right: 6px;
-            margin-bottom: 10px;
+            .time-box {
+                background-color: @bg;
+                margin-right: 20px;
+                /deep/ .van-cell {
+                    padding: 3px 20px !important;
+                }
+                /deep/ .van-sticky {
+                    &.index {
+                        z-index: 88;
+                    }
+                    &.indexs {
+                        z-index: 66;
+                    }
+                }
+            }
         }
         .index {
-            z-index: 1;
+            z-index: 88;
+        }
+        .indexs {
+            z-index: 66;
         }
         .box {
             padding-right: 20px;