You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
high-mini-manage/App.vue

48 lines
1.3 KiB

3 years ago
<script>
export default {
globalData: {
// url: 'http://192.168.3.4:9301/crest',
// brestUrl: 'http://192.168.3.4:9302/brest',
// imgUrl: 'https://192.168.3.4:9301/filesystem/',
//正式
url: 'https://hsg.dctpay.com/brest',
imgUrl: 'https://hsg.dctpay.com/filesystem/',
imageWxImg: 'https://hsg.dctpay.com/filesystem/wxApplets/',
wsssocket:'wss://hsg.dctpay.com/msg/WebSocket/',
//测试
// url: 'https://hsgcs.dctpay.com/brest',
// imgUrl: 'https://hsgcs.dctpay.com/filesystem/',
// imageWxImg: 'https://hsgcs.dctpay.com/filesystem/wxApplets/',
// wsssocket: 'wss://hsgcs.dctpay.com/msg/WebSocket/',
userInfo: "",
openId: '',
code: '',
token: '',
//角色油枪权限
positionType:0,
//角色油品权限
positionGunPrice:0
},
3 years ago
onLaunch: function() {
if(!uni.getStorageSync('oiluser')||!uni.getStorageSync('oiltoken')){
uni.reLaunch({
url:'/pages/login/login/login'
})
}
3 years ago
},
onShow: function() {
this.globalData.userInfo = uni.getStorageSync('oiluser') || '';
this.globalData.token = uni.getStorageSync('oiltoken') || '';
3 years ago
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style lang="scss">
3 years ago
/*每个页面公共css */
@import "/static/iconfont/font.scss";
3 years ago
</style>