浏览代码

修改测试BUG

shenjj 7 年之前
父节点
当前提交
0bf1ac9050

+ 21 - 21
pages/mobile/center/vendor/product.vue

@@ -752,28 +752,28 @@
             this.setRemindText(res.data.message)
           }
         })
-      },
-      update (e) {
-        let file = e.target.files[0]
-        if (file.size > 3 * 1024 * 1024) {
-          this.setRemindText(`上传文件不得超过3M`)
-        }
-        let param = new FormData()
-        param.append('file', file, file.name)
-        param.append('chunk', '0')
-        if (file.type === 'application/pdf') {
-          this.setRemindText(`请选择有效图片进行上传`)
-          return
-        }
-        let config = {
-          headers: {'Content-Type': 'multipart/form-data'}
-        }
-        this.$http.post('/api/images', param, config)
-          .then(response => {
-            this.MaterielItem.img = response.data[0].path
-            this.cmpImg = response.data[0].path
-          })
       }
+    //   update (e) {
+    //     let file = e.target.files[0]
+    //     if (file.size > 3 * 1024 * 1024) {
+    //       this.setRemindText(`上传文件不得超过3M`)
+    //     }
+    //     let param = new FormData()
+    //     param.append('file', file, file.name)
+    //     param.append('chunk', '0')
+    //     if (file.type === 'application/pdf') {
+    //       this.setRemindText(`请选择有效图片进行上传`)
+    //       return
+    //     }
+    //     let config = {
+    //       headers: {'Content-Type': 'multipart/form-data'}
+    //     }
+    //     this.$http.post('/api/images', param, config)
+    //       .then(response => {
+    //         this.MaterielItem.img = response.data[0].path
+    //         this.cmpImg = response.data[0].path
+    //       })
+    //   }
     },
     computed: {
       // 是否展示空数据

+ 3 - 6
pages/mobile/center/vendor/productdetails.vue

@@ -120,12 +120,8 @@
               <input oninput="if(value.length>5)value=value.slice(0,9)" type="tel" placeholder="数量" class="otherNumber" v-model.lazy.trim="item.end" v-if="index !== chooseItem.prices.length - 1" @blur="endpriceBlur(item, index)" maxlength="9"/>
             </div>
             <div class="pull-right">
-              <template v-if="chooseItem.currencyName == 'RMB'">
-                <input class="priceM" type="number" placeholder="单价(¥)" v-model="item.rMBPrice" @blur="rMBPriceBlur(item)"/>
-              </template>
-              <template v-else>
-                <input class="priceM" type="number" placeholder="单价($)" v-model="item.rMBPrice" @blur="rMBPriceBlur(item)"/>
-              </template>
+              <input v-show="chooseItem.currencyName === 'RMB'" class="priceM" type="text" placeholder="单价(¥)" v-model.lazy="item.rMBPrice" @blur="rMBPriceBlur(item)"/>
+              <input v-show="chooseItem.currencyName !== 'RMB'" class="priceM" type="text" placeholder="单价($)" v-model.lazy="item.rMBPrice" @blur="rMBPriceBlur(item)"/>
               <span @click="miuPrice(index)"><img src="/images/mobile/product/mui_icon.png"/></span>
               <span @click="addPrice()"><img src="/images/mobile/product/add_icon.png"/></span>
             </div>
@@ -165,6 +161,7 @@
     },
     mounted() {
       this.chooseItem = this.baseUtils.deepCopy(this.$store.state.product.brand.onSaleDetails.data)
+      console.log(this.chooseItem)
       this.chooseItem.storeInfoOms = this.chooseItem.storeid === '33069557578d44e69bd91ad12d28a8d4' ? '寄售' : '自营'
       if (localStorage.getItem('ProductListItem')) {
         let a = JSON.parse(localStorage.getItem('ProductListItem'))

+ 8 - 6
pages/mobile/search/newkeycode.vue

@@ -269,7 +269,7 @@
                    <div class="list clearfix" style="overflow: inherit;">
                      <div class="fl">
                        <div class="name">卖家:</div>
-                       <div class="text overHidden" style="width: 4rem">{{item.storeName || '卖家名称'}}</div>
+                       <div class="text overHidden" style="width: 4rem">{{item.storeName || item.enName || '-'}}</div>
                      </div>
                      <div class="pull-right sayPriBtn" @click="publish(item)">立即询价</div>
                    </div>
@@ -302,7 +302,7 @@
                          <div class="bottom-title">执照号</div><label style="float: left">:</label><div class="overHidden" style="width: 3.9rem">{{item.enBusinesscode}}</div>
                        </div>
                        <div class="middle_bottom-leftitem clearfix">
-                         <div class="bottom-title">地址</div><label style="float: left">:</label><div style="width: 3.9rem;">{{item.enAddress}}</div>
+                         <div class="bottom-title">地址</div><label style="float: left">:</label><div style="width: 3.9rem;word-wrap:break-word;">{{item.enAddress}}</div>
                        </div>
                      </div>
                    </div>
@@ -829,8 +829,8 @@
     }
     .search-content {
       padding-top: 0;
-      margin-top: 0.2rem;
-      height: calc(100vh - 3.41rem);
+      top: 3.41rem;
+      /*height: calc(100vh - 3.41rem);*/
       overflow-y: auto;
       position: absolute;
       width: 100%;
@@ -1092,10 +1092,12 @@
       }
     }
     .searchContent2 {
-      height: calc(100vh - 7.3rem);
+      /*height: calc(100vh - 7.3rem);*/
+      top: 7.3rem;
     }
     .searchContent3 {
-      height: calc(100vh - 2.25rem);
+      /*height: calc(100vh - 2.25rem);*/
+      top: 2.25rem;
     }
     .store-info {
       background: #f7f7f7;

+ 1 - 0
pages/search/_keyword.vue

@@ -127,6 +127,7 @@
         this.sorting = {}
         this.paramJSON = {}
         this.reloadList()
+        this.nowPage = 1
 //        this.reloadKind()
 //        this.reloadBrand()
 //        this.reloadStoreType()