Commit 53cd2d41 authored by leiqingsong's avatar leiqingsong

区分企业微信端还是微信端

parent bfd85761
...@@ -373,6 +373,15 @@ export default { ...@@ -373,6 +373,15 @@ export default {
} }
} }
); );
let env = window.navigator.userAgent.toLowerCase();
if (
env.match(/MicroMessenger/i) == "micromessenger" &&
env.match(/wxwork/i) == "wxwork"
) {
console.log("企业微信客户端");
} else if (env.match(/micromessenger/i) == "micromessenger") {
console.log("微信客户端");
}
} }
}, },
destroyed() { destroyed() {
......
...@@ -238,7 +238,7 @@ export default { ...@@ -238,7 +238,7 @@ export default {
this.flag = sessionStorage.getItem("role"); this.flag = sessionStorage.getItem("role");
} }
} else { } else {
this.zReadyUserId() // this.zReadyUserId()
this.zTestGetNowUrlInfo() this.zTestGetNowUrlInfo()
} }
this.GET_CurrentActive() this.GET_CurrentActive()
...@@ -256,7 +256,8 @@ export default { ...@@ -256,7 +256,8 @@ export default {
}, },
handleMore() { handleMore() {
this.active_limit += 3; this.active_limit += 3;
if (this.active_limit == this.currentActives.length) { console.log(this.currentActives.length);
if (this.active_limit >= this.currentActives.length) {
this.finished = true; this.finished = true;
} }
}, },
......
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