ios真机调试

This commit is contained in:
zy
2024-03-29 09:46:05 +08:00
parent db360cbefb
commit 17039a7ee6
23 changed files with 107 additions and 53 deletions

View File

@@ -223,6 +223,8 @@
email: '',
phoneEmail: '',
password: '',
phoneEmail: '2227572976@qq.com',
password: 'zm123456',
//验证码
codeText: '获取验证码',
//验证码已发
@@ -251,6 +253,7 @@
},
//第一次加载
onLoad(e) {
// #ifdef APP-PLUS
this.isIos = (plus.os.name == "iOS");
let systemInfo = uni.getSystemInfoSync();
@@ -263,6 +266,7 @@
},
//页面显示
onShow() {
this.closeMusic()
this.getCountyCode()
this.getSettlement()
},
@@ -270,6 +274,16 @@
methods: {
...mapMutations(['setUserInfo']),
...mapMutations(['setHealthMes']),
closeMusic(){
this.$music.setCloseBgm()    // 关闭音频
uni.setStorage({
                    key: 'playVisible',
                    data: false,
                    success: function () {
                        console.log('success');
                    }
                }); this.setUserInfo({'playVisible':false})
},
// 获取国家区域编码
getCountyCode() {
$http.request({
@@ -523,6 +537,10 @@
title: '登录成功',
duration: 1000,
});
setTimeout(() => {
uni.switchTab({
url: '/pages/peanut/home'