<script>
import { queryDictDataCache } from './common/api/dictionary.js'
import encrypt from './common/js/aes.js'
export default {
    onLaunch: function () {
        // this.connect()
        console.log('App Launch')
        let devCode = uni.getStorageSync('devCode')
        if (!devCode) {
            uni.getSystemInfo({
                success: (result) => {
                    uni.setStorageSync('devCode', result.deviceId)
                },
            })
        }

        queryDictDataCache().then((res) => {
            uni.setStorageSync(this.$cacheKey.dictData, res.data)
        })
    },
    onShow: function () {
        console.log('App Show')
    },
    onHide: function () {
        console.log('App Hide')
    },
}
</script>

<style lang="scss">
/*每个页面公共css */
@import './common/css/base.scss';

/deep/ uni-tabbar .uni-tabbar__badge {
    width: auto;
    height: 28rpx;
    line-height: 28rpx;
    border-radius: 28rpx;
    min-width: 28rpx;
    font-size: 20rpx;
    padding: 0 8rpx;
}
</style>
