| | |
| | | |
| | | } catch (ex) { |
| | | // console.log(ex); |
| | | let exStr = JSON.stringify(ex) |
| | | if (exStr == "{}") |
| | | exStr = ex |
| | | let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr |
| | | uni.showModal({ |
| | | title: this.translateSys("error") + "1", |
| | | content: ex.errMsg, |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | |
| | | console.log("Detail_UIstyleGetInfo", detailstyledef); |
| | | return detailstyledef |
| | | } catch (ex) { |
| | | // console.log(ex); |
| | | console.log(ex); |
| | | let exStr = JSON.stringify(ex) |
| | | if (exStr == "{}") |
| | | exStr = ex |
| | | let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr |
| | | uni.showModal({ |
| | | title: this.translateSys("error") + "2", |
| | | content: ex.errMsg, |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | |
| | | } |
| | | formItem.dict = list; |
| | | } catch (ex) { |
| | | // console.log(ex); |
| | | console.log(ex); |
| | | let exStr = JSON.stringify(ex) |
| | | if (exStr == "{}") |
| | | exStr = ex |
| | | let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr |
| | | uni.showModal({ |
| | | title: this.translateSys("error") + "3", |
| | | content: ex.errMsg, |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | |
| | | }; |
| | | const result = await runCustomEvent(dataInfo) |
| | | console.log(result) |
| | | if (result.ret != 0) { |
| | | if (result.ret != 0&& result.ret != 1) { |
| | | var tip = result.err_info ? typeof result |
| | | .err_info == 'string' ? result |
| | | .err_info : result.err_info.join('<br/>') : |
| | |
| | | |
| | | } catch (ex) { |
| | | console.log(ex) |
| | | var tip = typeof ex == "string" ? ex : ex.message; |
| | | let exStr = JSON.stringify(ex) |
| | | if (exStr == "{}") |
| | | exStr = ex |
| | | let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr |
| | | uni.showModal({ |
| | | title: this.translateSys("error") + "6.1", |
| | | content: this.translate( |
| | |
| | | }; |
| | | const result = await runCustomEvent(dataInfo) |
| | | console.log(result); |
| | | if (result.ret != 0) { |
| | | if (result.ret != 0&& result.ret != 1) { |
| | | var tip = result.err_info ? typeof result |
| | | .err_info == 'string' ? result |
| | | .err_info : result.err_info.join('<br/>') : |
| | |
| | | |
| | | } |
| | | } catch (ex) { |
| | | var tip = typeof ex == "string" ? ex : ex.message; |
| | | console.log(ex); |
| | | let exStr = JSON.stringify(ex) |
| | | if (exStr == "{}") |
| | | exStr = ex |
| | | let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr |
| | | uni.showModal({ |
| | | title: this.translateSys("error") + "4.2", |
| | | content: this.translate( |
| | |
| | | console.log(dataInfo); |
| | | // return; |
| | | runCustomEvent(dataInfo).then(data => { |
| | | if (data.ret != 0) { |
| | | if (data.ret != 0&& data.ret != 1) { |
| | | var tip = data.err_info ? typeof data.err_info == 'string' ? data |
| | | .err_info : |
| | | data |
| | |
| | | console.log(dataInfo); |
| | | // return; |
| | | runCustomEvent(dataInfo).then(data => { |
| | | if (data.ret != 0) { |
| | | if (data.ret != 0&& data.ret != 1) { |
| | | var tip = data.err_info ? typeof data.err_info == 'string' ? data |
| | | .err_info : |
| | | data |
| | |
| | | console.log(dataInfo); |
| | | runCustomEvent(dataInfo).then(result => { |
| | | console.log(result); |
| | | if (result.ret != 0) { |
| | | if (result.ret != 0&& result.ret != 1) { |
| | | var tip = result.err_info ? typeof result |
| | | .err_info == 'string' ? result.err_info : |
| | | result.err_info.join('<br/>') : ''; |
| | |
| | | |
| | | }).catch(ex => { |
| | | console.log(ex); |
| | | let tip = typeof ex.errMsg == "string" ? ex.errMsg : ex |
| | | let exStr = JSON.stringify(ex) |
| | | if (exStr == "{}") |
| | | exStr = ex |
| | | let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr |
| | | uni.showModal({ |
| | | title: this.translateSys("error") + "8.1", |
| | | content: this.translate("execute_after_ok_event_failed") + |