Files
app-govern/App.vue

44 lines
1.1 KiB
Vue
Raw Normal View History

2023-01-11 16:33:13 +08:00
<script>
2023-07-06 14:24:03 +08:00
import { queryDictDataCache } from './common/api/dictionary.js'
2023-03-16 15:26:25 +08:00
import encrypt from './common/js/aes.js'
2023-01-11 16:33:13 +08:00
export default {
onLaunch: function () {
2023-03-30 09:04:07 +08:00
// this.connect()
2023-07-06 14:24:03 +08:00
console.log('App Launch')
let devCode = uni.getStorageSync('devCode')
2023-07-03 20:29:24 +08:00
if (!devCode) {
2023-07-06 14:24:03 +08:00
uni.getSystemInfo({
success: (result) => {
uni.setStorageSync('devCode', result.deviceId)
},
})
2023-03-16 15:26:25 +08:00
}
2023-03-30 09:04:07 +08:00
2023-07-06 14:24:03 +08:00
queryDictDataCache().then((res) => {
uni.setStorageSync(this.$cacheKey.dictData, res.data)
})
2023-01-11 16:33:13 +08:00
},
onShow: function () {
console.log('App Show')
},
onHide: function () {
console.log('App Hide')
2023-07-06 14:24:03 +08:00
},
2023-01-11 16:33:13 +08:00
}
</script>
<style lang="scss">
/*每个页面公共css */
@import './common/css/base.scss';
2023-03-16 15:26:25 +08:00
/deep/ uni-tabbar .uni-tabbar__badge {
2023-02-09 08:50:01 +08:00
width: auto;
height: 28rpx;
line-height: 28rpx;
border-radius: 28rpx;
min-width: 28rpx;
font-size: 20rpx;
padding: 0 8rpx;
}
2023-01-11 16:33:13 +08:00
</style>