| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -85,29 +85,32 @@ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										const pages = getCurrentPages() //获取加载的页面 | 
					 | 
					 | 
					 | 
										const pages = getCurrentPages() //获取加载的页面 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										const view = pages[pages.length - 1] //获取当前页面的对象 | 
					 | 
					 | 
					 | 
										const view = pages[pages.length - 1] //获取当前页面的对象 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										if (!view) return false //如果不存在页面对象 则返回 | 
					 | 
					 | 
					 | 
										if (!view) return false //如果不存在页面对象 则返回 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										// 若想给个别页面做特殊处理 可以给特殊页面加isOverShare为true 就不会重写了 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										// const data = view.data | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										// if (!data.isOverShare) { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										// data.isOverShare = true | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										view.onShareAppMessage = () => { //重写分享配置 | 
					 | 
					 | 
					 | 
										view.onShareAppMessage = () => { //重写分享配置 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
											return { | 
					 | 
					 | 
					 | 
											return { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												title: '一路油你,星油能源', | 
					 | 
					 | 
					 | 
												title: '一路油你,星油能源', | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												path: "/pages/index/startPage/startPage", //若无path 默认跳转分享页 | 
					 | 
					 | 
					 | 
												path: "/pages/index/startPage/startPage",  | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												// imageUrl:'/image/onshowMessage.png' //若无imageUrl 截图当前页面 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												imageUrl: 'https://xoi-support.oss-cn-hangzhou.aliyuncs.com/星油admin小程序/xxxxx.png', | 
					 | 
					 | 
					 | 
												imageUrl: 'https://xoi-support.oss-cn-hangzhou.aliyuncs.com/星油admin小程序/xxxxx.png', | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
											} | 
					 | 
					 | 
					 | 
											} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										} | 
					 | 
					 | 
					 | 
										} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										if (view.route != 'pages/index/startPage/startPage' && view.route.indexOf('BagAuth') == -1) { | 
					 | 
					 | 
					 | 
										 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
											const token = uni.getStorageSync('Authorization') | 
					 | 
					 | 
					 | 
										let white = ['pages/index/startPage/startPage'] | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
											const openid = uni.getStorageSync('openid') | 
					 | 
					 | 
					 | 
										if(view.route === 'BagStation/pages/stationDetail/stationDetail') { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
											if (token && openid) { | 
					 | 
					 | 
					 | 
											uni.removeStorageSync('refuseLogin') | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
										} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
										// // 是否跳过登陆 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
										let isRefuseLogin = uni.getStorageSync('refuseLogin') | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
										if(isRefuseLogin || white.includes(view.route) || view.route.includes('BagAuth')) return 	 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										 this.getAmount() | 
					 | 
					 | 
					 | 
										 this.getAmount() | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												onlineTimer = setTimeout(() => { | 
					 | 
					 | 
					 | 
									}) | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
													if (this.loginStatus == 'offline') { | 
					 | 
					 | 
					 | 
								}, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
														uni.clearStorageSync() | 
					 | 
					 | 
					 | 
								// 是否token过期或ip更改 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
								getAmount() { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
									// clearTimeout(loginTimer) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
									accountApi.getTotalOilCardInfo().then(res => { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
										if (res.code == 42011) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
											uni.showModal({ | 
					 | 
					 | 
					 | 
											uni.showModal({ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												title: '需要您重新登录', | 
					 | 
					 | 
					 | 
												title: '需要您重新登录', | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
															content: this.msg, | 
					 | 
					 | 
					 | 
												content: res.msg, | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												duration: '3000', | 
					 | 
					 | 
					 | 
												duration: '3000', | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												success: function(res) { | 
					 | 
					 | 
					 | 
												success: function(res) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
													if (res.confirm) { | 
					 | 
					 | 
					 | 
													if (res.confirm) { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -115,45 +118,8 @@ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
															url: '/BagAuth/pages/login/login' | 
					 | 
					 | 
					 | 
															url: '/BagAuth/pages/login/login' | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
														}) | 
					 | 
					 | 
					 | 
														}) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
													} | 
					 | 
					 | 
					 | 
													} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
															}, | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
															complete: () => { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
																clearTimeout(onlineTimer) | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
															} | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
														}) | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
													} | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												}, 1000) | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
											} else { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												// loginTimer = setTimeout(() => { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												// 	uni.showModal({ | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												// 		title: '请您登录', | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												// 		content: '您还没有登录,暂时查不到油站哦', | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												// 		duration: '3000', | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												// 		success: function(res) { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												// 			if (res.confirm) { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												// 				uni.redirectTo({ | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												// 					url: '/BagAuth/pages/login/login' | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												// 				}) | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												// 			} | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												// 		} | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												// 	}) | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												// }, 1000) | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
											} | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
												} | 
					 | 
					 | 
					 | 
												} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										// } | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
											}) | 
					 | 
					 | 
					 | 
											}) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								}, | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								// 是否token过期或ip更改 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								getAmount() { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
									clearTimeout(loginTimer) | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
									accountApi.getTotalOilCardInfo().then(res => { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										if (res.code == 20000) { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
											this.loginStatus = 'online' | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										} else if (res.code == 42011) { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
											this.loginStatus = 'offline' | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
											this.msg = res.msg | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										} | 
					 | 
					 | 
					 | 
										} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
									}) | 
					 | 
					 | 
					 | 
									}) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								}, | 
					 | 
					 | 
					 | 
								}, | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |