苹果内购调整,苹果端隐藏vip相关内容

This commit is contained in:
@fawn-nine
2024-07-09 16:39:48 +08:00
parent 545fd9cc75
commit 7f49331372
7 changed files with 186 additions and 160 deletions

View File

@@ -122,9 +122,9 @@
</view>
</view>
<!-- <view class="youKeL" style="margin-bottom: 80rpx;">
<view class="youKeL" style="margin-bottom: 80rpx;" v-if="!isAndorid">
<view @click="onPageJump('/pages/user/visitor')">免登陆体验</view>
</view> -->
</view>
<z-popup v-model="HealthOpen" type="center" :hideOnBlur="false">
@@ -251,6 +251,7 @@
quCodeList: [], // 国家区域码
quCode: '86',
submitClickNum:0, // 登陆按钮点击次数
isAndorid : true
};
},
//第一次加载
@@ -264,6 +265,7 @@
pname: 'com.tencent.mm',
action: "weixin://"
});
this.getOS()
// #endif
},
//页面显示
@@ -277,6 +279,17 @@
methods: {
...mapMutations(['setUserInfo']),
...mapMutations(['setHealthMes']),
// 获得操作系统
getOS() {
let oprateOs = "";
oprateOs = uni.getSystemInfoSync().platform;
// console.log(oprateOs)
if (oprateOs == "android") {
this.isAndorid = true;
} else {
this.isAndorid = false;
}
},
closeMusic() {
this.$music.setCloseBgm() // 关闭音频
uni.setStorage({