<script> export default { onLaunch: function() { console.log('App Launch') // if(!this.$store.state.token){ // this.$store.dispatch('WXLogin') // } }, onShow: function() { console.log('App Show') }, onHide: function() { console.log('App Hide') } } </script> <style> @import "/wxcomponents/vant/common/index.wxss"; /*每个页面公共css */ page{ font-size: 14px; color: #333333; width: 100%; min-height: 100%; background-color: #f5f5f5; } view{ box-sizing: border-box; } .flex{ display: flex; } .white-wrap{ background-color: #fff; } /* 固定屏幕底部区域 */ .fix-bottom-wrap{ background: #FFFFFF; border: 1px solid #F2F2F2; box-shadow: 0px -2px 6px rgba(110, 119, 141, 0.07); position: fixed; left: 0; right: 0; bottom: 0; z-index: 99; padding-top: 25rpx; padding-bottom: calc(20rpx + constant(safe-area-inset-bottom)); padding-bottom: calc(20rpx + env(safe-area-inset-bottom)); padding-left: 32rpx; padding-right: 32rpx; } /* 空页面 */ .van-empty{ margin-top: 200rpx; } /* 审批列表页状态颜色 */ .approve-list-status-wait{ color: #3385FF; } .approve-list-status-success{ color: #63D594; } .approve-list-status-fail{ color:#FF4444; } .approve-list-status-back{ color: #999999; } .approve-list-status-cancel{ color: #999999; } .approve-list-status-doing{ color: #FFA244; } </style>