...
|
...
|
@@ -43,14 +43,14 @@ export default { |
|
|
computed: {
|
|
|
...mapGetters(['productDetail']),
|
|
|
sizeList() {
|
|
|
return get(this.productDetail, 'goods_list_tabs.goods_list[0].size_list', []);
|
|
|
return get(this.productDetail, 'goods_list[0].size_list', []);
|
|
|
},
|
|
|
sizeViewList() {
|
|
|
return this.sizeList.map(info => {
|
|
|
let price;
|
|
|
|
|
|
if (info.least_price > 0) {
|
|
|
price = `${info.least_price}`;
|
|
|
if (info.bid_moster_price > 0) {
|
|
|
price = `${info.bid_moster_price}`;
|
|
|
} else {
|
|
|
price = '-';
|
|
|
}
|
...
|
...
|
@@ -86,18 +86,25 @@ export default { |
|
|
if (!product.available) {
|
|
|
return;
|
|
|
}
|
|
|
this.onBack();
|
|
|
this.hide();
|
|
|
this.updateTradeInfo({
|
|
|
productId: this.productDetail.product_id,
|
|
|
sizeInfo: product,
|
|
|
}).then((data) => {
|
|
|
/**
|
|
|
* TODO: 跳转到求购确认页面
|
|
|
* data:
|
|
|
* productId: number
|
|
|
* sizeId: number
|
|
|
* storageId: number
|
|
|
*/
|
|
|
this.$router.push({
|
|
|
name: 'OrderBuyConfirm',
|
|
|
query: data,
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
onBack() {
|
|
|
hide() {
|
|
|
this.$refs.popup.hide();
|
|
|
},
|
|
|
},
|
...
|
...
|
@@ -116,6 +123,11 @@ export default { |
|
|
background: #fff;
|
|
|
}
|
|
|
|
|
|
.size-list {
|
|
|
flex: 1 0 100%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
|
|
|
.header {
|
|
|
position: absolute;
|
|
|
top: 0;
|
...
|
...
|
|