| | |
| | | saving: false, |
| | | }; |
| | | }, |
| | | onReady() { |
| | | uni.setNavigationBarTitle({ |
| | | title: this.title |
| | | }); //设置顶部标题 |
| | | }, |
| | | onLoad(options) { |
| | | // console.log(options); |
| | | uni.setNavigationBarTitle({ |
| | | title: options.titlename |
| | | }); //设置顶部标题 |
| | | |
| | | this.title = options.titlename; |
| | | this.param = JSON.parse(options.param); |
| | | const paramValue = options.paramValue ? JSON.parse(options.paramValue) : undefined |
| | |
| | | // return; |
| | | runCustomEvent(dataInfo).then(data => { |
| | | hideLoading() |
| | | $this.onFormEventResult(data, button_callback, item) |
| | | $this.onFormEventResult(data, button_callback, item,req) |
| | | |
| | | }).catch(ex => { |
| | | // console.log(ex); |
| | |
| | | } |
| | | |
| | | }, |
| | | async onFormEventResult(data, callbackEventId, item) { |
| | | async onFormEventResult(data, callbackEventId, item,req) { |
| | | try { |
| | | const $this = this |
| | | var enviroment = { |