diff --git a/components/hover-nav/hover-nav.vue b/components/hover-nav/hover-nav.vue index 41b88c8..108fccb 100644 --- a/components/hover-nav/hover-nav.vue +++ b/components/hover-nav/hover-nav.vue @@ -66,8 +66,9 @@ export default { this.kefuimg = this.$util.getDefaultImage().kefu this.phoneimg = this.$util.getDefaultImage().phone + }, + onShow() { this.pageCount = getCurrentPages().length; - // 从店铺信息中获取相关信息 uni.getStorage({ key: 'shopInfo', @@ -80,8 +81,7 @@ export default { // 从店铺信息中获取是否启用语言切换 this.isLanguageSwitchEnabled = e.data.ischina; } - }) - + }) }, computed: { currentLangDisplayName() { diff --git a/pages/index/index.vue b/pages/index/index.vue index d64ffe5..6e69e86 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -136,7 +136,7 @@ - +