| | |
| | | onBackPress(e) { |
| | | this.beforeNavigateBack() |
| | | }, |
| | | onReady() { |
| | | uni.setNavigationBarTitle({ |
| | | title: this.title |
| | | }); //设置顶部标题 |
| | | }, |
| | | async onLoad(options) { |
| | | try { |
| | | showLoading("loading...") |
| | | console.log(options); |
| | | uni.setNavigationBarTitle({ |
| | | title: options.titlename |
| | | }); //设置顶部标题 |
| | | |
| | | this.title = options.titlename; |
| | | this.param = JSON.parse(options.param); |
| | | this.head_styledef = { |
| | |
| | | try { |
| | | var $this = this; |
| | | |
| | | runCustomEvent(dataInfo).then(result => { |
| | | const result = await runCustomEvent(dataInfo) |
| | | console.log(result); |
| | | |
| | | if (result.ret != 0 && result.ret != 1) { |
| | |
| | | } |
| | | |
| | | } |
| | | }).catch(ex => { |
| | | console.log(ex); |
| | | showError(ex, this.translateSys("error") + "9.1") |
| | | |
| | | }); |
| | | } catch (ex) { |
| | | showError(ex, this.translateSys('error') + "9.2") |
| | | |