Authored by 邱骏

入驻调价点击图片跳转到商品详情

... ... @@ -66,11 +66,11 @@ export default {
stop: 90
},
observeDOM: false,
pullUpLoad: true
pullUpLoad: false // 关闭了上拉加载
},
page: 1,
modalLoad: false,
pageSize: 10,
pageSize: 20,
};
},
asyncData({store, router}) {
... ... @@ -87,6 +87,7 @@ export default {
...mapMutations(['MERGE_CHANGEPRICE_DATA']),
...mapActions(['fetchProduct', 'postNoSale', 'postChangePrice']),
async onPullingUp() {
/*
const beginCount = this.skcs.length;
const result = await this.fetchProduct({
... ... @@ -102,6 +103,8 @@ export default {
const noMore = get(result, 'data.data', []).length;
this.$refs.scroll.forceUpdate(noMore > 0);
*/
},
onPullingDown() {
this.page = 1;
... ... @@ -133,7 +136,13 @@ export default {
}
},
onClickProduct() {
console.log(this.productInfo);
this.$router.push({
name: 'ProductDetail',
params: {
productId: this.productInfo.productId
}
})
},
onChangePrice(skc) {
this.$refs.modalPrice.show({skc, product: this.productInfo});
... ...