1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <script>
- export default {
- globalData: {
- baseUrl: '',
- token: '',
- version: '', // 当前版本号
- buildType: 'uat', // 打包环境对应类型,pro 生产 uat 预发布 dev 本地开发
- envTips: '', // 环境文字提示
- theme: 'default', // 主题,default
- isIphoneXup: false //是否iphonex以及以上的版本
- },
- mounted() {
- // 非V3模式
- if (this.$scope) {
- this.$scope.globalData.token = this.$store.state.vuex_token;
- } else {
- // V3模式
- getApp({ allowDefault: true }).globalData.token = this.$store.state.vuex_token;
- }
- this.$config('init');
- },
- onLaunch: function() {
- const theme = getApp().globalData.theme
- uni.setTabBarStyle({
- color: this.$config("topBarTitleColors"),
- selectedColor: this.$config("primaryColor"),
- borderStyle: 'white'
- })
- uni.setTabBarItem({
- "index": 0,
- "iconPath": "static/"+theme+"/tabbar/record.png",
- "selectedIconPath": "static/"+theme+"/tabbar/record-active.png",
- })
- uni.setTabBarItem({
- "index": 1,
- "iconPath": "static/"+theme+"/tabbar/user.png",
- "selectedIconPath": "static/"+theme+"/tabbar/user-active.png",
- })
- },
- onShow: function() {
- console.log('App Show')
- },
- onHide: function() {
- console.log('App Hide')
- },
- }
- </script>
- <style lang="scss">
- @import "uview-ui/index.scss";
- /*每个页面公共css */
- page {
- min-height: 100%;
- display: flex;
- background-color: #F8F8F8;
- }
- /* 登录页是否记住密码多选框样式 */
- uni-checkbox.login-form-checkbox .uni-checkbox-input{
- width: 24upx !important;
- height: 24upx !important;
- }
- </style>
|