接口环境设置

This commit is contained in:
仲么了
2023-03-16 15:26:25 +08:00
parent 7e9cfadb23
commit c5ed54924b
20 changed files with 6480 additions and 37 deletions

23
App.vue
View File

@@ -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>