Commit c50368c0 authored by leiqingsong's avatar leiqingsong

Merge branch 'dev_lqs' into 'master'

Dev lqs

See merge request !153
parents 2d43357c 5058ba1b
# 生产环境 部署生产环境放开这个 # 生产环境 部署生产环境放开这个
# VUE_APP_BASE_URL = "http://app.xitiansen.com" VUE_APP_BASE_URL = "http://app.xitiansen.com"
# 测试环境 部署测试环境放开这个 # 测试环境 部署测试环境放开这个
VUE_APP_BASE_URL = "http://8.131.244.76:81" # VUE_APP_BASE_URL = "http://8.131.244.76:81"
\ No newline at end of file \ No newline at end of file
...@@ -22,7 +22,7 @@ export default { ...@@ -22,7 +22,7 @@ export default {
this.currentTitle = val.meta.title; this.currentTitle = val.meta.title;
} }
}, },
mounted() { created() {
console.log("和App开始交互"); console.log("和App开始交互");
this.$bridgeToAppFun this.$bridgeToAppFun
.getAuthToken() .getAuthToken()
......
...@@ -39,7 +39,6 @@ class bridgeToAppFun { ...@@ -39,7 +39,6 @@ class bridgeToAppFun {
console.log("调ios的方法"); console.log("调ios的方法");
jsBridge.callhandler("getAuthToken", null, data => { jsBridge.callhandler("getAuthToken", null, data => {
if (data) { if (data) {
// localStorage.setItem("token", data);
resolve(data); resolve(data);
} else { } else {
console.log("调用失败"); console.log("调用失败");
...@@ -114,8 +113,10 @@ class bridgeToAppFun { ...@@ -114,8 +113,10 @@ class bridgeToAppFun {
console.log("an"); console.log("an");
version = window.android.getAppVersion(); version = window.android.getAppVersion();
} else { } else {
console.log("ios获取版本号");
jsBridge.callhandler("getAppVersion", null, response => { jsBridge.callhandler("getAppVersion", null, response => {
if (response) { if (response) {
console.log("版本号,获取到的数据", response);
version = response; version = response;
} }
}); });
......
...@@ -89,7 +89,7 @@ export default { ...@@ -89,7 +89,7 @@ export default {
inviteeCodeDialog: false inviteeCodeDialog: false
}; };
}, },
mounted() { created() {
console.log("读取用户信息"); console.log("读取用户信息");
this.imageBaseUrl = process.env.VUE_APP_BASE_URL; this.imageBaseUrl = process.env.VUE_APP_BASE_URL;
this.getUser(); this.getUser();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment