|
@@ -43,14 +43,14 @@ export default { |
|
@@ -43,14 +43,14 @@ export default { |
43
|
computed: {
|
43
|
computed: {
|
44
|
...mapGetters(['productDetail']),
|
44
|
...mapGetters(['productDetail']),
|
45
|
sizeList() {
|
45
|
sizeList() {
|
46
|
- return get(this.productDetail, 'goods_list_tabs.goods_list[0].size_list', []);
|
46
|
+ return get(this.productDetail, 'goods_list[0].size_list', []);
|
47
|
},
|
47
|
},
|
48
|
sizeViewList() {
|
48
|
sizeViewList() {
|
49
|
return this.sizeList.map(info => {
|
49
|
return this.sizeList.map(info => {
|
50
|
let price;
|
50
|
let price;
|
51
|
|
51
|
|
52
|
- if (info.least_price > 0) {
|
|
|
53
|
- price = `${info.least_price}`;
|
52
|
+ if (info.bid_moster_price > 0) {
|
|
|
53
|
+ price = `${info.bid_moster_price}`;
|
54
|
} else {
|
54
|
} else {
|
55
|
price = '-';
|
55
|
price = '-';
|
56
|
}
|
56
|
}
|
|
@@ -86,18 +86,25 @@ export default { |
|
@@ -86,18 +86,25 @@ export default { |
86
|
if (!product.available) {
|
86
|
if (!product.available) {
|
87
|
return;
|
87
|
return;
|
88
|
}
|
88
|
}
|
89
|
- this.onBack();
|
89
|
+ this.hide();
|
90
|
this.updateTradeInfo({
|
90
|
this.updateTradeInfo({
|
91
|
productId: this.productDetail.product_id,
|
91
|
productId: this.productDetail.product_id,
|
92
|
sizeInfo: product,
|
92
|
sizeInfo: product,
|
93
|
}).then((data) => {
|
93
|
}).then((data) => {
|
|
|
94
|
+ /**
|
|
|
95
|
+ * TODO: 跳转到求购确认页面
|
|
|
96
|
+ * data:
|
|
|
97
|
+ * productId: number
|
|
|
98
|
+ * sizeId: number
|
|
|
99
|
+ * storageId: number
|
|
|
100
|
+ */
|
94
|
this.$router.push({
|
101
|
this.$router.push({
|
95
|
name: 'OrderBuyConfirm',
|
102
|
name: 'OrderBuyConfirm',
|
96
|
query: data,
|
103
|
query: data,
|
97
|
});
|
104
|
});
|
98
|
});
|
105
|
});
|
99
|
},
|
106
|
},
|
100
|
- onBack() {
|
107
|
+ hide() {
|
101
|
this.$refs.popup.hide();
|
108
|
this.$refs.popup.hide();
|
102
|
},
|
109
|
},
|
103
|
},
|
110
|
},
|
|
@@ -116,6 +123,11 @@ export default { |
|
@@ -116,6 +123,11 @@ export default { |
116
|
background: #fff;
|
123
|
background: #fff;
|
117
|
}
|
124
|
}
|
118
|
|
125
|
|
|
|
126
|
+ .size-list {
|
|
|
127
|
+ flex: 1 0 100%;
|
|
|
128
|
+ overflow: hidden;
|
|
|
129
|
+ }
|
|
|
130
|
+
|
119
|
.header {
|
131
|
.header {
|
120
|
position: absolute;
|
132
|
position: absolute;
|
121
|
top: 0;
|
133
|
top: 0;
|