fix(浮动导航): 关键页面始终显示

This commit is contained in:
2025-12-31 17:18:39 +08:00
parent bec0a51d81
commit 3acd3870b6
2 changed files with 4 additions and 4 deletions

View File

@@ -66,8 +66,9 @@ export default {
this.kefuimg = this.$util.getDefaultImage().kefu this.kefuimg = this.$util.getDefaultImage().kefu
this.phoneimg = this.$util.getDefaultImage().phone this.phoneimg = this.$util.getDefaultImage().phone
},
onShow() {
this.pageCount = getCurrentPages().length; this.pageCount = getCurrentPages().length;
// 从店铺信息中获取相关信息 // 从店铺信息中获取相关信息
uni.getStorage({ uni.getStorage({
key: 'shopInfo', key: 'shopInfo',
@@ -80,8 +81,7 @@ export default {
// 从店铺信息中获取是否启用语言切换 // 从店铺信息中获取是否启用语言切换
this.isLanguageSwitchEnabled = e.data.ischina; this.isLanguageSwitchEnabled = e.data.ischina;
} }
}) })
}, },
computed: { computed: {
currentLangDisplayName() { currentLangDisplayName() {

View File

@@ -136,7 +136,7 @@
</view> </view>
</uni-popup> </uni-popup>
</view> </view>
<hover-nav></hover-nav> <hover-nav :need="true"></hover-nav>
<!-- #ifdef MP-WEIXIN --> <!-- #ifdef MP-WEIXIN -->
<!-- 小程序隐私协议 --> <!-- 小程序隐私协议 -->
<privacy-popup ref="privacyPopup"></privacy-popup> <privacy-popup ref="privacyPopup"></privacy-popup>