| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | <script> | 
					
						
							| 
									
										
										
										
											2025-07-14 17:48:22 +08:00
										 |  |  | // import VConsole from 'vconsole'
 | 
					
						
							| 
									
										
										
										
											2025-04-19 11:52:43 +08:00
										 |  |  | import { setToken } from '@/config/auth.js' | 
					
						
							| 
									
										
										
										
											2025-07-14 17:48:22 +08:00
										 |  |  | // const vConsole = new VConsole()
 | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | export default { | 
					
						
							| 
									
										
										
										
											2025-04-19 11:52:43 +08:00
										 |  |  |   onLaunch: function (options) { | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |     // 分享注册
 | 
					
						
							| 
									
										
										
										
											2025-04-19 11:52:43 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |     if (options.query?.token) { | 
					
						
							|  |  |  |       setToken(options.query?.token) | 
					
						
							| 
									
										
										
										
											2025-06-12 17:01:36 +08:00
										 |  |  |       console.log('🌈ad', options.query?.token) | 
					
						
							| 
									
										
										
										
											2025-04-19 11:52:43 +08:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |     const whiteList = [ | 
					
						
							| 
									
										
										
										
											2025-06-10 14:06:32 +08:00
										 |  |  |       'pages/shareRegist/index', | 
					
						
							| 
									
										
										
										
											2025-09-17 16:08:28 +08:00
										 |  |  |       'pages/shareRegist/success', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |       'pages/login/index', | 
					
						
							| 
									
										
										
										
											2025-04-07 18:00:26 +08:00
										 |  |  |       // 'pages/wechatPay/bfPay/',
 | 
					
						
							|  |  |  |       // 'pages/wechatPay/hfPay/',
 | 
					
						
							| 
									
										
										
										
											2025-09-17 16:08:28 +08:00
										 |  |  |       'pages/shareArea/hiList', | 
					
						
							|  |  |  |       'pages/shareArea/hiOrder', | 
					
						
							|  |  |  |       'pages/pay/hiPay', | 
					
						
							| 
									
										
										
										
											2025-09-24 16:52:06 +08:00
										 |  |  |       'pages/pay/success', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |     ] | 
					
						
							| 
									
										
										
										
											2025-04-19 11:52:43 +08:00
										 |  |  |     if (whiteList.indexOf(options.path) !== -1) return | 
					
						
							| 
									
										
										
										
											2025-09-18 09:55:36 +08:00
										 |  |  |     const isRegiestLogin = uni.getStorageSync('regiest-login') | 
					
						
							|  |  |  |     if (isRegiestLogin) { | 
					
						
							|  |  |  |       uni.removeStorageSync('regiest-login') | 
					
						
							|  |  |  |       removeToken() | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2025-04-19 11:52:43 +08:00
										 |  |  |     this.$store.dispatch('GetInfo') | 
					
						
							|  |  |  |     this.$store.dispatch('getCarLength') | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |     uni.hideTabBar({}) | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   onShow: function () { | 
					
						
							|  |  |  |     uni.hideTabBar({}) | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   onHide: function () {}, | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | </script> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <style lang="scss"> | 
					
						
							| 
									
										
										
										
											2025-06-10 14:06:32 +08:00
										 |  |  | body { | 
					
						
							|  |  |  |   background-color: #f2f2f2; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | /*每个页面公共css */ | 
					
						
							|  |  |  | @import '@/uni_modules/uview-ui/index.scss'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-06-10 14:06:32 +08:00
										 |  |  | ::v-deep .uni-picker-container { | 
					
						
							|  |  |  |   z-index: 100000 !important; | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | } | 
					
						
							|  |  |  | </style> |