diff --git a/pages/goodsDetail/index.vue b/pages/goodsDetail/index.vue index 26065e9..c53e7c6 100644 --- a/pages/goodsDetail/index.vue +++ b/pages/goodsDetail/index.vue @@ -16,17 +16,24 @@ - + {{ goods_detail.name }} - - - - ¥{{ goods_detail.specs[0].original_price }} - {{ goods_detail.specs[0].cost }} + + + + + ¥{{ item.original_price }} + {{ item.cost }} + + + {{ item.sold_stock_text }} + {{ item.stock_text }} + - - {{ goods_detail.specs[0].sold_stock_text }} - {{ goods_detail.specs[0].stock_text }} + + + + {{item.name}} @@ -142,7 +149,8 @@ backgroundImg: '', goodShare: '', s_id: '', - userInfo: {} + userInfo: {}, + chooseTag: 0,//选择的规格 } }, computed: { @@ -160,6 +168,9 @@ this.getGoodsDetail(); }, methods: { + getChooseTag(i) { + this.chooseTag = i + }, getBackground() { let _this = this return new Promise((resolve, reject) => { @@ -243,7 +254,7 @@ that.$http(that.API.API_WXBILL, { scene: token, page: 'pages/route/index', - width: '2800' + width: '28' }).then(res => { that.wxCode = res.data.base_url if (that.wxCode) { @@ -534,6 +545,14 @@ }