Commit 8126112d authored by leiqingsong's avatar leiqingsong

测试ios的问题

parent 30bc2452
...@@ -18,6 +18,7 @@ class bridgeToAppFun { ...@@ -18,6 +18,7 @@ class bridgeToAppFun {
} }
// 获取Token // 获取Token
getAuthToken() { getAuthToken() {
console.log('系统:', this.userAgent);
if (this.userAgent === "android") { if (this.userAgent === "android") {
// android // android
let token = null; let token = null;
...@@ -37,6 +38,7 @@ class bridgeToAppFun { ...@@ -37,6 +38,7 @@ class bridgeToAppFun {
} else if (this.userAgent === "ios") { } else if (this.userAgent === "ios") {
// ios // ios
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
console.log('调ios的方法');
jsBridge.callhandler("getAuthToken", null, data => { jsBridge.callhandler("getAuthToken", null, data => {
localStorage.setItem("token", data); localStorage.setItem("token", data);
if (data) { if (data) {
......
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