Fix:3583 【商城小程序】店铺主页—有商品的店铺切换至无商品的店铺时,详情页中会显示商品项;无商品的店铺切换至有商品的店铺时,店铺详情页中不显示商品项
This commit is contained in:
@@ -611,13 +611,14 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
goHome(e) {
|
goHome(e) {
|
||||||
this.id = e.id
|
this.id = e.id
|
||||||
|
this.isLoad = false
|
||||||
if(this.activeIndex !==1) {
|
if(this.activeIndex !==1) {
|
||||||
this.activeInde = 1
|
this.activeInde = 1
|
||||||
} else {
|
} else {
|
||||||
this.fetchInnInfoList()
|
this.fetchInnInfoList()
|
||||||
}
|
}
|
||||||
this.fetchInnDetail()
|
this.fetchInnDetail()
|
||||||
this.fetchGoods(this.id)
|
// this.fetchGoods(this.id)
|
||||||
},
|
},
|
||||||
changeHome() {
|
changeHome() {
|
||||||
uni.showLoading()
|
uni.showLoading()
|
||||||
@@ -852,6 +853,8 @@ export default {
|
|||||||
_this.activeIndex = 1
|
_this.activeIndex = 1
|
||||||
_this.tabList[0].isShow = false
|
_this.tabList[0].isShow = false
|
||||||
} else {
|
} else {
|
||||||
|
_this.activeIndex = 0
|
||||||
|
this.tabList[0].isShow = true
|
||||||
_this.fetchGoods()
|
_this.fetchGoods()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user