2022-03-14 17:09:10 +08:00
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
globalData:{
|
|
|
|
projectname:'', // 项目名称
|
|
|
|
lat:'', // 公司地址维度
|
2022-03-28 18:40:48 +08:00
|
|
|
lng:'' ,// 公司地址经度
|
2022-04-22 18:39:36 +08:00
|
|
|
hostapi:'https://7and5.cn' // 域名配置
|
2022-03-14 17:09:10 +08:00
|
|
|
},
|
|
|
|
// 优先于show方法
|
|
|
|
onLaunch: function() {
|
|
|
|
// 配置全局域名
|
2022-03-22 18:15:22 +08:00
|
|
|
// #ifdef H5
|
2022-05-13 17:39:50 +08:00
|
|
|
// this.globalData.hostapi = 'https://7and5.cn';
|
2022-05-20 17:46:27 +08:00
|
|
|
// this.globalData.hostapi = '/web';
|
2022-04-02 09:42:53 +08:00
|
|
|
// #endif
|
2022-03-14 17:09:10 +08:00
|
|
|
},
|
|
|
|
onShow: function() {
|
2022-04-24 17:35:39 +08:00
|
|
|
if(uni.getStorageSync('token')){
|
2022-04-13 20:36:32 +08:00
|
|
|
// 每十分钟更新用户地理位置
|
|
|
|
this.$toolAll.tools.renewLocationEv();
|
2022-04-24 17:35:39 +08:00
|
|
|
// 检测是否开启GPS定位服务
|
|
|
|
this.$toolAll.tools.checkOpenGPSServiceByAndroidIOS();
|
|
|
|
}
|
2022-03-14 17:09:10 +08:00
|
|
|
},
|
|
|
|
onHide: function() {
|
2022-03-30 18:04:40 +08:00
|
|
|
|
2022-03-14 17:09:10 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
/*每个页面公共css */
|
2022-03-30 18:04:40 +08:00
|
|
|
|
2022-03-14 17:09:10 +08:00
|
|
|
/* 阿里巴巴矢量图标库 start */
|
|
|
|
@import url("./commons/icon-font.css");
|
|
|
|
/* 阿里巴巴矢量图标库 end */
|
2022-03-16 08:58:52 +08:00
|
|
|
/* 项目基础样式 start */
|
2022-03-14 17:09:10 +08:00
|
|
|
@import url("./commons/base.css");
|
2022-03-16 08:58:52 +08:00
|
|
|
/* 项目基础样式 end */
|
|
|
|
/* 项目页面样式 start */
|
|
|
|
@import url("./commons/flying-monkey.css");
|
|
|
|
/* 项目页面样式 end */
|
2022-03-17 13:47:40 +08:00
|
|
|
|
2022-03-14 17:09:10 +08:00
|
|
|
/* 动画样式 start */
|
|
|
|
@import url("./commons/animate.min.css");
|
|
|
|
/* 动画样式 end */
|
|
|
|
|
2022-03-17 15:49:07 +08:00
|
|
|
page {background-color: #f7f7f7;}
|
2022-03-14 17:09:10 +08:00
|
|
|
</style>
|