Commit 481dc4d2 by 李嘉林

Merge branch 'nativehome_tst' of http://code.mayi888.com/chengmo/mayi-mp-shop into nativehome_tst

parents fcc6d2d2 421249a5
...@@ -9,6 +9,10 @@ export default { ...@@ -9,6 +9,10 @@ export default {
getProductInfo(options) { getProductInfo(options) {
return requestPOST1(`${process.env.OLSHOP_URL}/product/get_product_info?productId=${options}`); return requestPOST1(`${process.env.OLSHOP_URL}/product/get_product_info?productId=${options}`);
}, },
// 查询商品详情(传productInfoId和 terminalProductId)
getProductInfoTwo(options) {
return requestPOST1(`${process.env.OLSHOP_URL}/product/get_product_info?productId=${options.productInfoId}&terminalProductId=${options.terminalProductId}`);
},
// 查询所有产品规格详情 // 查询所有产品规格详情
getProductGoodsByProductInfo(options) { getProductGoodsByProductInfo(options) {
return requestPOST1(`${process.env.OLSHOP_URL}/product/get_product_goods_by_product_info`, options); return requestPOST1(`${process.env.OLSHOP_URL}/product/get_product_goods_by_product_info`, options);
......
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
<p> <p>
商品金额:<span>{{ selectPrice}}</span> 商品金额:<span>{{ selectPrice}}</span>
</p> </p>
<p v-if="goodsInfoData.wholePurchaseMultiple && goodsInfoData.wholePurchaseMultiple > 1">此款所有规格数量合计 需满足{{goodsInfoData.wholePurchaseMultiple}}的倍数</p>
</div> </div>
</div> </div>
<div class="bottom flex"> <div class="bottom flex">
...@@ -79,6 +80,7 @@ export default { ...@@ -79,6 +80,7 @@ export default {
addCartLoading: false, addCartLoading: false,
defaultImg: `this.src="https://cdn.mayi888.com/product/85pdScJ5ch.jpg?x-oss-process=image/resize,m_pad,limit_0,w_800,h_800"`, defaultImg: `this.src="https://cdn.mayi888.com/product/85pdScJ5ch.jpg?x-oss-process=image/resize,m_pad,limit_0,w_800,h_800"`,
selectList: [], selectList: [],
goodsInfoData:{}
}; };
}, },
components: {}, components: {},
...@@ -144,6 +146,18 @@ export default { ...@@ -144,6 +146,18 @@ export default {
}); });
} }
}) })
live.getProductInfoTwo(query).then(res2 => {
let res = res2.data;
if (res.code == 200) {
this.goodsInfoData = res.data
} else {
wx.showToast({
title: res.msg,
icon: 'none',
});
}
})
}, },
close() { close() {
this.show = false; this.show = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment