<script>
import { isMemo } from '@/utils/passwordMemo.js'
import ScanCode from '@/mixins/ScanCode.js'
import Vue from 'vue'
export default {
  mixins: [ScanCode],
  onLaunch: function () {
    //console.log('App Launch')
    // 配置1秒后自动关闭启动页


    
    // #ifdef APP-PLUS
    const apiInfo = uni.getStorageSync('apiInfo')
    if(apiInfo.protocal){
      Vue.prototype.apiUrl = `${apiInfo.protocal}${apiInfo.hostname}:${apiInfo.port}/api`
    }
    setTimeout(() => {
      plus.navigator.closeSplashscreen()
    }, 1000)
    let token = uni.getStorageSync('token')
    // 记住密码
    if (isMemo() && token) {
      console.log('redirectTo')
      uni.reLaunch({
        url: '/pages/home/home'
      })
    }
    // #endif
  },
  onShow: function () {
    console.log('App Show')
  },
  onHide: function () {
    //console.log('App Hide')
  }
}
</script>

<style src="@/static/iconFont/iconfont.css"></style>
<style lang="scss">
@import '@/static/common.scss';

/*每个页面公共css */
/*icon-font  */
@font-face {
  font-family: 'iconfont';
  /* Project id 3211415 */
  src: url('~@/static/font/iconfont.eot?t=1648783395722');
  /* IE9 */
  src: url('~@/static/font/iconfont.eot?t=1648783395722#iefix')
      format('embedded-opentype'),
    /* IE6-IE8 */
      url('data:application/x-font-woff2;charset=utf-8;base64,[encoded data, 12764 characters]')
      format('woff2'),
    url('~@/static/font/iconfont.woff?t=1648783395722') format('woff'),
    url('~@/static/font/iconfont.ttf?t=1648783395722') format('truetype'),
    url('~@/static/font/iconfont.svg?t=1648783395722#iconfont') format('svg');
}

.iconfont {
  font-family: 'iconfont' !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-chanpinchuku:before {
  content: '\e6a1';
}

.icon-chanpinruku:before {
  content: '\e6a2';
}

.icon-guanbi:before {
  content: '\e6a0';
}

.icon-benyuewancheng:before {
  content: '\e697';
}

.icon-yijingfenpai:before {
  content: '\e698';
}

.icon-zhengzaichuli:before {
  content: '\e699';
}

.icon-gongzuoliangzhishushushi:before {
  content: '\e69a';
}

.icon-dangqiangaojing:before {
  content: '\e69b';
}

.icon-yizhihang_1:before {
  content: '\e69c';
}

.icon-benyuezaizhi:before {
  content: '\e69d';
}

.icon-dangqianyanshi:before {
  content: '\e69e';
}

.icon-chexiao:before {
  content: '\e69f';
}

.icon-shanchu:before {
  content: '\e696';
}

.icon-jiahao:before {
  content: '\e694';
}

.icon-jianhao:before {
  content: '\e695';
}

.icon-xiajiantou1:before {
  content: '\e681';
}

.icon-cuiban:before {
  content: '\e682';
}

.icon-shaixuan:before {
  content: '\e683';
}

.icon-youjiantou1:before {
  content: '\e684';
}

.icon-bianji:before {
  content: '\e685';
}

.icon-pifu:before {
  content: '\e686';
}

.icon-a-youjiantou1:before {
  content: '\e687';
}

.icon-tongjibaobiao:before {
  content: '\e688';
}

.icon-kuneipandian:before {
  content: '\e689';
}

.icon-zichanruku:before {
  content: '\e68a';
}

.icon-zuojiantou1:before {
  content: '\e68b';
}

.icon-shangjiantou1:before {
  content: '\e68c';
}

.icon-tuichu:before {
  content: '\e68d';
}

.icon-ditu:before {
  content: '\e68e';
}

.icon-tijiao:before {
  content: '\e68f';
}

.icon-wenjian:before {
  content: '\e690';
}

.icon-mokuai-sousuo:before {
  content: '\e691';
}

.icon-kuneitiaobo:before {
  content: '\e692';
}

.icon-zichanchuku:before {
  content: '\e693';
}

.icon-gouxuan:before {
  content: '\e680';
}

.icon-dayintiaoma:before {
  content: '\e67e';
}

.icon-saoyisao:before {
  content: '\e67f';
}

.icon-caozuo:before {
  content: '\e65b';
}

.icon-gongdanguanli:before {
  content: '\e65c';
}

.icon-shangchuanzhaopian:before {
  content: '\e65d';
}

.icon-shangjiantou:before {
  content: '\e65e';
}

.icon-daizhihangrenwu:before {
  content: '\e65f';
}

.icon-mima:before {
  content: '\e660';
}

.icon-gongzuo:before {
  content: '\e661';
}

.icon-weixiugongdan:before {
  content: '\e662';
}

.icon-shebeichuku:before {
  content: '\e663';
}

.icon-shebeikucun:before {
  content: '\e664';
}

.icon-wodegongdan:before {
  content: '\e665';
}

.icon-shebeiruku:before {
  content: '\e666';
}

.icon-shebeikucuntongji:before {
  content: '\e667';
}

.icon-xiajiantou:before {
  content: '\e668';
}

.icon-wodeyiban:before {
  content: '\e669';
}

.icon-shixiangxinzeng:before {
  content: '\e66a';
}

.icon-shouye:before {
  content: '\e66b';
}

.icon-xundianjian:before {
  content: '\e66c';
}

.icon-wodedaiban:before {
  content: '\e66d';
}

.icon-wuliaoruku:before {
  content: '\e66e';
}

.icon-pandiangongdan:before {
  content: '\e66f';
}

.icon-yichangfankui:before {
  content: '\e670';
}

.icon-zhanghao-wode:before {
  content: '\e671';
}

.icon-wodexiaoxi:before {
  content: '\e672';
}

.icon-zihangchuzhi:before {
  content: '\e673';
}

.icon-youjiantou:before {
  content: '\e674';
}

.icon-a-baoyangputong:before {
  content: '\e675';
}

.icon-xundianjianditu:before {
  content: '\e676';
}

.icon-yizhihang:before {
  content: '\e677';
}

.icon-zhuanpai:before {
  content: '\e678';
}

.icon-baogong:before {
  content: '\e679';
}

.icon-beijian:before {
  content: '\e67a';
}

.icon-zuojiantou:before {
  content: '\e67b';
}

.icon-baoxiu:before {
  content: '\e67c';
}

.icon-a-baoyangrunhua:before {
  content: '\e67d';
}
</style>
