flying-monkey/App.vue

56 lines
1.4 KiB
Vue
Raw Normal View History

<script>
export default {
globalData:{
projectname:'', // 项目名称
lat:'', // 公司地址维度
2022-03-28 10:40:48 +00:00
lng:'' ,// 公司地址经度
hostapi:'' // 域名配置
},
// 优先于show方法
onLaunch: function() {
// 配置全局域名
// #ifdef APP-PLUS
2022-03-28 10:40:48 +00:00
// uni.setStorageSync('hostapi','http://maintain.7and5.cn');
getApp().globalData.hostapi = 'http://maintain.7and5.cn';
// #endif
// #ifdef MP-WEIXIN
2022-03-28 10:40:48 +00:00
// uni.setStorageSync('hostapi','http://maintain.7and5.cn');
getApp().globalData.hostapi = 'http://maintain.7and5.cn';
// #endif
// #ifdef H5
2022-03-28 10:40:48 +00:00
// uni.setStorageSync('hostapi','/web');
getApp().globalData.hostapi = '/web';
// #endif
},
onShow: function() {
if(uni.getStorageSync('phone_active')){
// 刷新token
this.$toolAll.tools.refreshToken();
}
},
onHide: function() {
2022-03-30 10:04:40 +00:00
}
};
</script>
<style>
/*每个页面公共css */
2022-03-30 10:04:40 +00:00
/* 阿里巴巴矢量图标库 start */
@import url("./commons/icon-font.css");
/* 阿里巴巴矢量图标库 end */
2022-03-16 00:58:52 +00:00
/* 项目基础样式 start */
@import url("./commons/base.css");
2022-03-16 00:58:52 +00:00
/* 项目基础样式 end */
/* 项目页面样式 start */
@import url("./commons/flying-monkey.css");
/* 项目页面样式 end */
2022-03-17 05:47:40 +00:00
/* 动画样式 start */
@import url("./commons/animate.min.css");
/* 动画样式 end */
page {background-color: #f7f7f7;}
</style>