| 
									
										
										
										
											2022-08-01 17:03:10 +08:00
										 |  |  | <script> | 
					
						
							|  |  |  | 	import toolAll from './jsFile/tools.js'; | 
					
						
							|  |  |  | 	export default { | 
					
						
							|  |  |  | 		globalData:{ | 
					
						
							|  |  |  | 			projectname:'', // 项目名称
 | 
					
						
							|  |  |  | 			lat:'', // 公司地址维度
 | 
					
						
							|  |  |  | 			lng:''  ,// 公司地址经度
 | 
					
						
							| 
									
										
										
										
											2023-03-21 09:15:29 +08:00
										 |  |  | 			hostapi:'https://chuanwujia.com' ,// 域名配置
 | 
					
						
							|  |  |  | 			hostapiQi:'http://qiniu.chuanwujia.com' //七牛云的域名
 | 
					
						
							| 
									
										
										
										
											2022-08-01 17:03:10 +08:00
										 |  |  | 		}, | 
					
						
							| 
									
										
										
										
											2023-03-21 09:15:29 +08:00
										 |  |  | 		 | 
					
						
							| 
									
										
										
										
											2022-08-01 17:03:10 +08:00
										 |  |  | 		// 优先于show方法
 | 
					
						
							|  |  |  | 		onLaunch: ()=> { | 
					
						
							|  |  |  | 			toolAll.tools.currentContext(); | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 		onShow: ()=> { | 
					
						
							|  |  |  | 			if(uni.getStorageSync('token')){ | 
					
						
							| 
									
										
										
										
											2022-08-16 18:06:46 +08:00
										 |  |  | 				toolAll.tools.refreshToken();//刷新token
 | 
					
						
							| 
									
										
										
										
											2022-08-01 17:03:10 +08:00
										 |  |  | 			} | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 		onHide: ()=> { | 
					
						
							| 
									
										
										
										
											2022-08-16 18:06:46 +08:00
										 |  |  | 			if(uni.getStorageSync('token')){ | 
					
						
							|  |  |  | 				toolAll.tools.refreshToken();//刷新token
 | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2022-08-01 17:03:10 +08:00
										 |  |  | 		} | 
					
						
							|  |  |  | 	}; | 
					
						
							|  |  |  | </script> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <style> | 
					
						
							|  |  |  | 	/*每个页面公共css */ | 
					
						
							|  |  |  |      | 
					
						
							|  |  |  | 	/* 阿里巴巴矢量图标库 start */ | 
					
						
							|  |  |  | 	@import url("./commons/icon-font.css"); | 
					
						
							|  |  |  | 	/* 阿里巴巴矢量图标库 end */ | 
					
						
							|  |  |  | 	/* 项目基础样式 start */ | 
					
						
							|  |  |  | 	@import url("./commons/base.css"); | 
					
						
							|  |  |  | 	/* 项目基础样式 end */ | 
					
						
							|  |  |  | 	/* 项目页面样式 start */ | 
					
						
							|  |  |  | 	@import url("./commons/style.css"); | 
					
						
							|  |  |  | 	/* 项目页面样式 end */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	/* 动画样式 start */ | 
					
						
							|  |  |  | 	@import url("./commons/animate.min.css"); | 
					
						
							|  |  |  | 	/* 动画样式 end */ | 
					
						
							|  |  |  | 	 | 
					
						
							|  |  |  | 	page {background-color: #fff6f5;} | 
					
						
							|  |  |  | </style> |