flying-monkey/App.vue

50 lines
1.2 KiB
Vue

<script>
export default {
globalData:{
projectname:'', // 项目名称
lat:'', // 公司地址维度
lng:'' ,// 公司地址经度
hostapi:'https://7and5.cn' // 域名配置
},
// 优先于show方法
onLaunch: function() {
// 配置全局域名
// #ifdef H5
// this.globalData.hostapi = 'https://7and5.cn';
// this.globalData.hostapi = '/web';
// #endif
},
onShow: function() {
if(uni.getStorageSync('token')){
// 每十分钟更新用户地理位置
this.$toolAll.tools.renewLocationEv();
// 检测是否开启GPS定位服务
this.$toolAll.tools.checkOpenGPSServiceByAndroidIOS();
}
},
onHide: function() {
}
};
</script>
<style>
/*每个页面公共css */
/* 阿里巴巴矢量图标库 start */
@import url("./commons/icon-font.css");
/* 阿里巴巴矢量图标库 end */
/* 项目基础样式 start */
@import url("./commons/base.css");
/* 项目基础样式 end */
/* 项目页面样式 start */
@import url("./commons/flying-monkey.css");
/* 项目页面样式 end */
/* 动画样式 start */
@import url("./commons/animate.min.css");
/* 动画样式 end */
page {background-color: #f7f7f7;}
</style>