Browse Source

修改白屏

master
torsenli 3 years ago
parent
commit
964b89979a
  1. 64
      App.vue

64
App.vue

@ -1,59 +1,23 @@
<script>
import {
defaultRequest,
defaultRequest4
} from 'api/index.js'
import {defaultRequest,defaultRequest4} from 'api/index.js'
var jpushModule = uni.requireNativePlugin("JG-JPush");
export default {
data(){
return {
globalData:{
},
backButtonPress:0,
}
},
onLaunch: function() {
// (IOS)
// uni.getNetworkType({
// success: function (res) {
// console.log(res.networkType);// wifi2g3g4gethernetunknownnone
// if(res.networkType === "none"){
// console.log("");
// this.globalData.typee = 1;
// console.log('=====', this.globalData.typee)
// }else{
// this.globalData.typee = 0
// console.log('==',this.globalData.typee)
// }
// }
// });
// alert(this.globalData.type)
// ios
// uni.getSystemInfo({
// success: (res) => {
// if (res.platform == 'ios') {
// const query = uni.createSelectorQuery().in(this);
// var isRecovery = true;
// query
// .select('#containerId')
// .boundingClientRect(data => {
// isRecovery = false;
// })
// .exec();
// var timer = setTimeout(() => {
// if (isRecovery) {
// uni.reLaunch({
// url: '/pages/tabbar/user/user'
// })
// clearTimeout(timer);
// timer = null;
// }
// }, 500)
// }
// },
// })
// ios
let channel=plus.runtime.channel || '';
let channelName='';
let isInstall=0;
let firstTime=uni.getStorageSync('firstTime') || '';
if(!firstTime){
isInstall=1;
uni.setStorageSync('firstTime','1');
}
addAppCount({channel:channel,is_install:isInstall});
// console.log('App Launch')
uni.hideTabBar()
// uni.onTabBarMidButtonTap(()=>{
@ -65,9 +29,9 @@
// animationType:'slide-in-bottom'
// })
// })
// plus.screen.lockOrientation("portrait-primary");
plus.screen.lockOrientation("portrait-primary");
setTimeout(() => {
// plus.navigator.closeSplashscreen();
plus.navigator.closeSplashscreen();
}, 2400);
//#ifdef APP-PLUS
@ -135,9 +99,9 @@
</script>
<style lang="scss">
/*每个页面公共css */
@import "@/common/common.scss";
page{
overflow-x: hidden;
}

Loading…
Cancel
Save