| | |
| | | goBack() { |
| | | uni.navigateBack(); |
| | | }, |
| | | // 设置为自动 |
| | | setAuto() { |
| | | if (uni.getSystemInfoSync().platform === 'android' || |
| | | uni.getSystemInfoSync().platform === 'ios') { |
| | | plus.screen.unlockOrientation(); |
| | | } |
| | | }, |
| | | // 设置为竖屏 |
| | | setPortrait() { |
| | | if (uni.getSystemInfoSync().platform === 'android' || |
| | | uni.getSystemInfoSync().platform === 'ios') { |
| | | plus.screen.lockOrientation('portrait'); |
| | | } |
| | | }, |
| | | |
| | | }, |
| | | async onLoad(e) { |
| | | this.setAuto(); |
| | | this.operationType = e.operationType || 1; |
| | | this.hform.HInterID = e.linterid || 0; |
| | | if (this.operationType == 1) { |
| | |
| | | await this.InitHGroup(); |
| | | await this.loadCache(); |
| | | }, |
| | | onUnload(){ |
| | | this.setPortrait(); |
| | | } |
| | | }; |
| | | </script> |
| | | |