113 lines
1.9 KiB
Vue
113 lines
1.9 KiB
Vue
<script>
|
|
import config from './config'
|
|
import store from '@/store'
|
|
import {
|
|
getToken
|
|
} from '@/utils/auth'
|
|
|
|
|
|
export default {
|
|
onLaunch() {
|
|
this.initApp()
|
|
},
|
|
mounted() {
|
|
|
|
},
|
|
methods: {
|
|
// 初始化应用
|
|
initApp() {
|
|
// 初始化应用配置
|
|
this.initConfig()
|
|
this.getSys()
|
|
|
|
// this.$tab.switchTab('/pages/tab/tab')
|
|
// if (uni.getStorageSync('userType') == 'driver') this.$tab.switchTab('/pages/driver/home/home')
|
|
// if (uni.getStorageSync('userType') == 'repair') this.$tab.switchTab('/pages/repair/tabbar/repair')
|
|
// if (uni.getStorageSync('userType') == 'carDealers') this.$tab.switchTab(
|
|
// '/pages/carShop/community/community')
|
|
|
|
uni.getSystemInfo({
|
|
success: function(res) {
|
|
uni.setStorageSync('appDetail', res)
|
|
}
|
|
})
|
|
},
|
|
//获取角标数量
|
|
|
|
getSys() {
|
|
uni.getSystemInfo({
|
|
success: res => {
|
|
this.globalData.sys = res
|
|
}
|
|
})
|
|
},
|
|
initConfig() {
|
|
this.globalData.config = config
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
@import "@/uni_modules/uview-ui/index.scss";
|
|
@import "@/uni_modules/uview-ui/libs/css/flex.scss";
|
|
/* #ifndef APP-PLUS-NVUE */
|
|
@import '@/static/scss/index.scss';
|
|
@import '@/static/scss/currency.css';
|
|
@import '@/static/font/common.css';
|
|
|
|
page {
|
|
background-color: #fff;
|
|
}
|
|
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
}
|
|
|
|
.flex {
|
|
display: flex;
|
|
}
|
|
|
|
.f-jce {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.f-jcsa {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
}
|
|
|
|
.f-jcsb {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
.f-jc-c {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.f-a-i {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.f-a-e {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.flex-center {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.ma-top {
|
|
margin-top: 16rpx;
|
|
}
|
|
|
|
/* #endif */
|
|
</style> |