2022-03-14 09:09:10 +00:00
|
|
|
|
<template>
|
|
|
|
|
<view style="display: flex;justify-content: center;align-items: center;height: 100vh;">
|
|
|
|
|
引导页
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onLoad() {
|
2022-03-16 00:58:52 +00:00
|
|
|
|
console.log(16);
|
2022-03-14 09:09:10 +00:00
|
|
|
|
this.checkContext();
|
2022-03-16 00:58:52 +00:00
|
|
|
|
// this.$requst.post('/universal/api.login/register',{
|
|
|
|
|
// phone:'18888888888',
|
|
|
|
|
// sms_code:'123456',
|
|
|
|
|
// password:'123456',
|
|
|
|
|
// confirm_password:'123456',
|
|
|
|
|
// affiliation:'中国中铁七局'
|
|
|
|
|
// }).then(res=>{
|
|
|
|
|
// console.log(res,25);
|
|
|
|
|
// })
|
2022-03-14 09:09:10 +00:00
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
// 检测是否是微信端
|
|
|
|
|
checkContext(){
|
2022-03-16 00:58:52 +00:00
|
|
|
|
// #ifdef APP-PLUS
|
2022-03-14 09:09:10 +00:00
|
|
|
|
if(uni.getSystemInfoSync().platform != "devtools"){//devtools:开发版 值域为:ios、android、mac(3.1.10+)、windows(3.1.10+)、linux(3.1.10+)
|
|
|
|
|
console.log = () =>{}
|
|
|
|
|
}
|
2022-03-16 00:58:52 +00:00
|
|
|
|
console.log(35);
|
2022-03-14 09:09:10 +00:00
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
uni.reLaunch({
|
|
|
|
|
url:'/pages/login/login'
|
|
|
|
|
})
|
|
|
|
|
},3000)
|
|
|
|
|
// #endif
|
|
|
|
|
// #ifdef H5
|
2022-03-16 00:58:52 +00:00
|
|
|
|
if(uni.getSystemInfoSync().platform != "development"){//devtools:开发版 值域为:ios、android、mac(3.1.10+)、windows(3.1.10+)、linux(3.1.10+)
|
2022-03-14 09:09:10 +00:00
|
|
|
|
console.log = () =>{}
|
|
|
|
|
}
|
2022-03-16 00:58:52 +00:00
|
|
|
|
console.log(46);
|
2022-03-14 09:09:10 +00:00
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
uni.reLaunch({
|
|
|
|
|
url:'/pages/login/login'
|
|
|
|
|
})
|
|
|
|
|
},3000)
|
|
|
|
|
// #endif
|
|
|
|
|
// 微信小程序原生API性能优化
|
|
|
|
|
// #ifdef MP-WEIXIN
|
|
|
|
|
let hInfo = wx.getAccountInfoSync();
|
|
|
|
|
// console.log(hInfo.envVersion);//develop:开发版 trial:体验版 release:正式版
|
|
|
|
|
if(hInfo.miniProgram.envVersion == "develop" || hInfo.miniProgram.envVersion == "trial"){
|
|
|
|
|
// (开发版,体验版)-配置全局域名
|
|
|
|
|
// uni.setStorageSync('hostapi','https://hengmei.scdxtc.cn/api/');
|
|
|
|
|
} else {
|
|
|
|
|
// 清除所有输出日志
|
|
|
|
|
console.log = () =>{};
|
|
|
|
|
// 正式版-配置全局域名
|
|
|
|
|
// uni.setStorageSync('hostapi','https://hm.hmzfyy.cn/api/');
|
|
|
|
|
}
|
2022-03-16 00:58:52 +00:00
|
|
|
|
console.log(66);
|
2022-03-14 09:09:10 +00:00
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
uni.reLaunch({
|
|
|
|
|
url:'/pages/tabbar/pagehome/pagehome'
|
|
|
|
|
})
|
|
|
|
|
},3000)
|
|
|
|
|
// #endif
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
|
|
</style>
|