diff --git a/components/hover-nav/hover-nav.vue b/components/hover-nav/hover-nav.vue index 108fccb..f2b71f6 100644 --- a/components/hover-nav/hover-nav.vue +++ b/components/hover-nav/hover-nav.vue @@ -66,9 +66,8 @@ export default { this.kefuimg = this.$util.getDefaultImage().kefu this.phoneimg = this.$util.getDefaultImage().phone - }, - onShow() { this.pageCount = getCurrentPages().length; + // 从店铺信息中获取相关信息 uni.getStorage({ key: 'shopInfo', @@ -81,7 +80,7 @@ export default { // 从店铺信息中获取是否启用语言切换 this.isLanguageSwitchEnabled = e.data.ischina; } - }) + }) }, computed: { currentLangDisplayName() { @@ -203,6 +202,7 @@ export default { margin: 14rpx 0; transition: 0.1s; background: #c6251b; + // background: var(--hover-nav-bg-color); color: #fff; border-radius: 40rpx; width: 80rpx;