<script>
import encrypt from './common/js/aes.js'
export default {
    onLaunch: function () {
        let cidAES = uni.getStorageSync('cidAES') || 'nnvmhMk8626D8QHhJefm+W9rTAJWuBPRxcnRm4+9bWXdSLRIyTnTruoYfLxGK3Oy'
        uni.setStorageSync('cidAES', cidAES);
        if (!cidAES) {
            document.addEventListener('plusready', () => {
                // 页面加载时触发
                let pinf = plus.push.getClientInfo();
                let cid = pinf.clientid;//客户端标识
                cidAES = encrypt.Encrypt(cid, this.$config.key);
                uni.setStorageSync('cidAES', cidAES);
            }, false);
        }
  
    },
    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>
