| | |
| | | |
| | | function onPostMessage(data) { |
| | | if (data.type === 'back'){ |
| | | // uni.navigateTo({ |
| | | // url: `/subPackages/inProgress/index?wayLineJobInfoId=${data.taskDetails.id}` |
| | | // }); |
| | | // #ifdef H5 |
| | | window.history.back() |
| | | // #endif |
| | | |
| | | // #ifdef APP-PLUS |
| | | uni.navigateBack({ |
| | | delta: 1 // 返回的页面数,默认1(返回上一页) |
| | | }); |
| | | // #endif |
| | | } |
| | | } |
| | | |
| | |
| | | }) |
| | | |
| | | |
| | | // onShow(() => { |
| | | // // #ifdef APP-PLUS |
| | | // plus.screen.lockOrientation("landscape-primary"); |
| | | // // #endif |
| | | // }); |
| | | // |
| | | // onHide(() => { |
| | | // // #ifdef APP-PLUS |
| | | // plus.screen.lockOrientation("portrait-primary"); |
| | | // // #endif |
| | | // }); |
| | | onShow(() => { |
| | | // #ifdef APP-PLUS |
| | | plus.navigator.setFullscreen(true); // 加入全屏 |
| | | plus.screen.lockOrientation("landscape-primary");//横屏 |
| | | // #endif |
| | | }); |
| | | |
| | | onHide(() => { |
| | | // #ifdef APP-PLUS |
| | | plus.navigator.setFullscreen(false); |
| | | plus.screen.lockOrientation("portrait-primary"); |
| | | // #endif |
| | | }); |
| | | </script> |
| | | <style scoped lang="scss"> |
| | | |