ソースを参照

修改测试bug

shenjj 7 年 前
コミット
851580ad61

+ 2 - 2
components/mobile/center/upoff-material.vue

@@ -111,12 +111,12 @@
                              <!--maxlength="9"/>-->
                     </div>
                     <div class="pull-right">
-                      <input v-show="chooseItem.currencyName === 'RMB'"
+                      <input v-show="chooseItem.goods.currencyName === 'RMB'"
                              class="priceM" type="text"
                              placeholder="单价(¥)"
                              v-model.lazy="item.rMBPrice"
                              @blur="rMBPriceBlur(item, 'rMBPrice')"/>
-                      <input v-show="chooseItem.currencyName !== 'RMB'"
+                      <input v-show="chooseItem.goods.currencyName !== 'RMB'"
                              class="priceM" type="text"
                              placeholder="单价($)"
                              v-model.lazy="item.uSDPrice"

+ 4 - 1
pages/mobile/center/vendor/material.vue

@@ -443,7 +443,10 @@
             minBuyQty: 1
           })
         }
-        this.firstPrice =  this.MaterielItem.goods.prices[0].start.toString()
+        if (this.MaterielItem.goods.prices.length === 0) {
+          this.MaterielItem.goods.prices = [{end: '', rMBNTPrice: '', rMBPrice: '', start: '1'}]
+        }
+        this.firstPrice = this.MaterielItem.goods.prices[0].start.toString()
         let rf = document.body.offsetHeight // 触发浏览器重绘
         // console.log(item)
         this.$refs.upoffMaterial.show()