mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 20:03:26 +08:00
【优化】新版分类中心onShow调整为onLoad,防止出现tab切换导致数据不断附加的问题。
This commit is contained in:
@@ -162,6 +162,7 @@
|
|||||||
skuMode: 1,
|
skuMode: 1,
|
||||||
// 后端返回的商品信息
|
// 后端返回的商品信息
|
||||||
goodsSkuInfo: {},
|
goodsSkuInfo: {},
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -189,7 +190,7 @@
|
|||||||
return this.$store.state.config.cateStyle ? this.$store.state.config.cateStyle : 3;
|
return this.$store.state.config.cateStyle ? this.$store.state.config.cateStyle : 3;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onLoad() {
|
||||||
uni.getSystemInfo({
|
uni.getSystemInfo({
|
||||||
success: (e) => {
|
success: (e) => {
|
||||||
// #ifndef MP
|
// #ifndef MP
|
||||||
@@ -286,7 +287,7 @@
|
|||||||
//console.log("监听 - 关闭sku组件");
|
//console.log("监听 - 关闭sku组件");
|
||||||
},
|
},
|
||||||
showGoodSkuModal(item) {
|
showGoodSkuModal(item) {
|
||||||
console.log(item);
|
//console.log(item);
|
||||||
if (item.id) {
|
if (item.id) {
|
||||||
this.getGoodsDetail(item.id);
|
this.getGoodsDetail(item.id);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user