接口环境设置
This commit is contained in:
23
App.vue
23
App.vue
@@ -1,7 +1,22 @@
|
||||
<script>
|
||||
import encrypt from './common/js/aes.js'
|
||||
export default {
|
||||
onLaunch: function () {
|
||||
console.log('App Launch')
|
||||
let cidAES = uni.getStorageSync('cidAES')
|
||||
if (!cidAES) {
|
||||
uni.getPushClientId({
|
||||
success: (res) => {
|
||||
console.log(res.cid);
|
||||
uni.setStorageSync('cid', res.cid);
|
||||
var cidAES = encrypt.Encrypt(res.cid, this.$config.key);
|
||||
uni.setStorageSync('cidAES', cidAES);
|
||||
},
|
||||
fail (err) {
|
||||
console.log(err)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
onShow: function () {
|
||||
console.log('App Show')
|
||||
@@ -15,7 +30,8 @@ export default {
|
||||
<style lang="scss">
|
||||
/*每个页面公共css */
|
||||
@import './common/css/base.scss';
|
||||
/deep/ uni-tabbar .uni-tabbar__badge{
|
||||
|
||||
/deep/ uni-tabbar .uni-tabbar__badge {
|
||||
width: auto;
|
||||
height: 28rpx;
|
||||
line-height: 28rpx;
|
||||
@@ -24,7 +40,4 @@ export default {
|
||||
font-size: 20rpx;
|
||||
padding: 0 8rpx;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user