This commit is contained in:
		
							parent
							
								
									9e2b448d28
								
							
						
					
					
						commit
						742d8a4459
					
				|  | @ -4,6 +4,11 @@ const { | |||
| 
 | ||||
| App({ | ||||
|   onLaunch(opts, data) { | ||||
|     if (opts && opts.scene === 1154) { | ||||
|       this.globalData.singlePage = true; | ||||
|     } else { | ||||
|       this.globalData.singlePage = false; | ||||
|     } | ||||
|     this.etmsLogin("onLaunch"); | ||||
|   }, | ||||
|   onShow() { | ||||
|  | @ -23,6 +28,9 @@ App({ | |||
| 
 | ||||
|   }, | ||||
|   async login() { | ||||
|     if (this.globalData.singlePage) { | ||||
|       return; | ||||
|     } | ||||
|     return new Promise((resolve, reject) => { | ||||
|       wx.login({ | ||||
|         success: (res) => { | ||||
|  | @ -65,6 +73,6 @@ App({ | |||
|     microWebHomeUrl: "https://baidu.com", | ||||
|     currentActivityBag: {}, | ||||
|     currentActivityBag2: {}, | ||||
| 
 | ||||
|     singlePage: false | ||||
|   }, | ||||
| }); | ||||
|  | @ -195,7 +195,7 @@ Page({ | |||
| 
 | ||||
|     wx.showShareMenu({ | ||||
|       withShareTicket: true, | ||||
|       menus: ['shareAppMessage'] | ||||
|       menus: ['shareAppMessage', 'shareTimeline'] | ||||
|     }) | ||||
|   }, | ||||
| 
 | ||||
|  | @ -207,7 +207,7 @@ Page({ | |||
|     this.setData({ | ||||
|       isLoadFinish: true | ||||
|     }) | ||||
|     if (!app.globalData.s) { | ||||
|     if (!app.globalData.s && !app.globalData.singlePage) { | ||||
|       setTimeout(() => { | ||||
|         this.setData({ | ||||
|           isLoadFinish: false | ||||
|  |  | |||
|  | @ -227,7 +227,7 @@ Page({ | |||
|     this.setData({ | ||||
|       isLoadFinish: true | ||||
|     }) | ||||
|     if (!app.globalData.s) { | ||||
|     if (!app.globalData.s&& !app.globalData.singlePage) { | ||||
|       setTimeout(() => { | ||||
|         this.setData({ | ||||
|           isLoadFinish: false | ||||
|  |  | |||
|  | @ -136,7 +136,7 @@ Page({ | |||
|     this.setData({ | ||||
|       isLoadFinish: true | ||||
|     }) | ||||
|     if (!app.globalData.s) { | ||||
|     if (!app.globalData.s&& !app.globalData.singlePage) { | ||||
|       setTimeout(() => { | ||||
|         this.setData({ | ||||
|           isLoadFinish: false | ||||
|  |  | |||
|  | @ -228,7 +228,7 @@ Page({ | |||
|     this.setData({ | ||||
|       isLoadFinish: true | ||||
|     }) | ||||
|     if (!app.globalData.s) { | ||||
|     if (!app.globalData.s&& !app.globalData.singlePage) { | ||||
|       setTimeout(() => { | ||||
|         this.setData({ | ||||
|           isLoadFinish: false | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue