1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <script>
- export default {
- globalData: {
- baseUrl: '',
- token: '',
- version: '',
- buildType: 'uat',
- envTips: '',
- theme: 'default',
- isIphoneXup: false
- },
- mounted() {
-
- if (this.$scope) {
- this.$scope.globalData.token = this.$store.state.vuex_token;
- } else {
-
- 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";
-
- page {
- min-height: 100%;
- display: flex;
- background-color: #F8F8F8;
- }
-
- uni-checkbox.login-form-checkbox .uni-checkbox-input{
- width: 24upx !important;
- height: 24upx !important;
- }
- </style>
|