@@ -196,11 +197,11 @@ export default {
// });
//支付方式
- getapi("/api/app/pay-mode").then((res) => {
- if (res.code == 1) {
- this.dict.payMode = res.data;
- }
- });
+ // getapi("/api/app/pay-mode").then((res) => {
+ // if (res.code == 1) {
+ // this.dict.payMode = res.data;
+ // }
+ // });
//体检类别 树结构
getapi("/api/app/item-type/by-code-all").then((res) => {
diff --git a/src/views/login/Login.vue b/src/views/login/Login.vue
index a2d7749..01dcbfc 100644
--- a/src/views/login/Login.vue
+++ b/src/views/login/Login.vue
@@ -3,7 +3,8 @@
-
+
@@ -86,36 +87,38 @@ export default {
isDevTool: false, // 壳端是否显示打开调试工具的按钮
}
},
- LocalConfigInit:{}
+ LocalConfigInit: {}
};
},
- created() {
- if (this.$peisAPI) {
- this.$peisAPI.lazyLoadMenuContrl()
- .then(res =>{
- console.log('this.$peisAPI.lazyLoadMenuContrl',res)
- })
- .catch(err => {
- console.log('this.$peisAPI.lazyLoadMenuContrl err',err)
- }); // 加载窗口按钮 dll
- }
+ created() {
this.LocalConfigInit = deepCopy(this.LocalConfig)
let LocalConfig = window.localStorage.getItem("LocalConfig") || null
try {
- this.LocalConfig = Object.assign({}, this.LocalConfig, JSON.parse(LocalConfig) || {})
+ this.LocalConfig = Object.assign({}, this.LocalConfig, JSON.parse(LocalConfig) || {})
} catch (error) {
console.log('window.localStorage.getItem("LocalConfig")', error)
}
},
- async mounted() {
- await this.getSysConfig()
+ async mounted() {
+ if (this.$peisAPI) {
+ this.$peisAPI.lazyLoadMenuContrl()
+ .then(res => {
+ console.log('this.$peisAPI.lazyLoadMenuContrl', res)
+ })
+ .catch(err => {
+ console.log('this.$peisAPI.lazyLoadMenuContrl err', err)
+ }); // 加载窗口按钮 dll
+ } else {
+ console.log('this.$peisAPI undefind')
+ }
+ await this.getSysConfig()
},
methods: {
async getSysConfig() {
try {
let res = await axios.get('/sysConfig.json', { timeout: 50000 }) // , { timeout: 50000 }
- console.log('axios.get /sysConfig.json',res)
- if(!res.data.apiurl) this.$message.error({ showClose: true, message: `获取配置参数错误,请重新刷新本页面!` })
+ console.log('axios.get /sysConfig.json', res)
+ if (!res.data.apiurl) this.$message.error({ showClose: true, message: `获取配置参数错误,请重新刷新本页面!` })
this.sysConfig = res.data
window.sessionStorage.setItem('sysConfig', JSON.stringify(res.data))
} catch (error) {
@@ -123,7 +126,7 @@ export default {
}
},
- //打开客户端调试工具
+ //打开客户端调试工具
toggleDevTools() {
if (!this.$peisAPI) {
this.$message.info("此功能,需要在壳客户端才可运行!")