浏览代码

commit -m 商品详情价格

Admin 4 年之前
父节点
当前提交
7e392900b7
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 2 0
      components/cm-module/productDetails/cm-price.vue
  2. 1 1
      pages/goods/product.vue

+ 2 - 0
components/cm-module/productDetails/cm-price.vue

@@ -172,6 +172,8 @@ export default {
 					}
 				}
 			}
+			console.log('this.showIndexOfMoney',this.showIndexOfMoney)
+			console.log('this.smallMoney',this.smallMoney)
 		},
 		clickPopupShow(type) {
 			this.popupShow = true

+ 1 - 1
pages/goods/product.vue

@@ -333,7 +333,7 @@
 						this.productImage.push(item);
 					})
 					//处理阶梯价格
-					if(this.product.ladderList.length>0){
+					if(this.product.ladderList && this.product.ladderList.length>0){
 						this.ladderList = this.product.ladderList;
 					}
 					this.retailPrice = this.product.price.toFixed(2);