...
|
...
|
@@ -201,7 +201,7 @@ export default { |
|
|
next();
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(['fetchProductInfo', 'fetchTop3', 'fetchFav', 'toggleFav', 'updateTradeInfo', 'getSelectedTradeProduct', 'payment', 'resetSelectedSize']),
|
|
|
...mapActions(['fetchProductInfo', 'fetchBrandTop', 'fetchFav', 'toggleFav', 'updateTradeInfo', 'getSelectedTradeProduct', 'payment', 'resetSelectedSize']),
|
|
|
refresh() {
|
|
|
this.$refs.slide.refresh();
|
|
|
},
|
...
|
...
|
@@ -218,7 +218,7 @@ export default { |
|
|
loadData(productId = this.productId, loading) {
|
|
|
loading && loading.show();
|
|
|
|
|
|
this.fetchTop3({productId});
|
|
|
this.fetchBrandTop({productId});
|
|
|
this.fetchFav({productId});
|
|
|
|
|
|
return this.fetchProductInfo({productId}).then(() => {
|
...
|
...
|
@@ -273,23 +273,11 @@ export default { |
|
|
});
|
|
|
},
|
|
|
gotoBrand() {
|
|
|
// type: 4,品牌;5,系列
|
|
|
const query = {
|
|
|
type: 5,
|
|
|
};
|
|
|
|
|
|
if (this.productDetail.seriesId && this.productDetail.series_name) {
|
|
|
query.series = this.productDetail.seriesId;
|
|
|
query.title = this.productDetail.series_name;
|
|
|
} else {
|
|
|
query.type = 4;
|
|
|
query.brand = this.productDetail.brandId;
|
|
|
query.title = this.productDetail.brand_name;
|
|
|
}
|
|
|
|
|
|
this.$router.push({
|
|
|
name: 'List',
|
|
|
query,
|
|
|
name: 'BrandProductList',
|
|
|
params: {
|
|
|
productId: this.productId,
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
showActivity() {
|
...
|
...
|
|