| | |
| | | Base64 |
| | | } from '@/js/Base64.js'; |
| | | import utils from "@/js/utils.js" |
| | | import {showInfo, |
| | | showError} from "@/js/Page.js" |
| | | import { |
| | | areaFunc |
| | | } from "@/api/index.js" |
| | |
| | | } |
| | | } 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"), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | showError(ex,this.translateSys("error")) |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | else |
| | | return undefined |
| | | } 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"), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | showError( tip) |
| | | return undefined |
| | | } |
| | | }, |
| | |
| | | } |
| | | |
| | | if (!param) { |
| | | uni.showModal({ |
| | | title: this.translateSys("tip"), |
| | | content: this.translate('tip_no_app_param'), |
| | | showCancel: false, |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | showInfo(this.translate('tip_no_app_param')) |
| | | |
| | | return; |
| | | } |
| | | if (defCode == '3018') { |