提交 572a3d07 authored 作者: ling's avatar ling

Add invite code

上级 508b7589
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<a <a
target="_blank" target="_blank"
class="down_btn2" class="down_btn2"
href="https://www.yibovip613.com:34225/entry/login" :href="url"
>若无法下载APP,请点击此处使用手机网页版</a >若无法下载APP,请点击此处使用手机网页版</a
> >
</div> </div>
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
<a <a
target="_blank" target="_blank"
class="down_btn2" class="down_btn2"
href="https://www.yibovip613.com:34225/entry/login" :href="url"
>手机网页版</a >手机网页版</a
> >
</div> </div>
...@@ -153,6 +153,8 @@ export default { ...@@ -153,6 +153,8 @@ export default {
data() { data() {
return { return {
isiOS: null, isiOS: null,
code: "",
url: "https://www.yibovip613.com:34225/entry/login",
}; };
}, },
created() { created() {
...@@ -171,6 +173,13 @@ export default { ...@@ -171,6 +173,13 @@ export default {
const isAndroid = u.indexOf("Android") > -1 || u.indexOf("Adr") > -1; //android终端 const isAndroid = u.indexOf("Android") > -1 || u.indexOf("Adr") > -1; //android终端
const isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端 const isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
this.isiOS = isiOS; this.isiOS = isiOS;
this.code =
location.href.split("?")[1] && location.href.split("?")[1].split("=")[1];
if (this.code) {
this.url =
"https://www.yibovip613.com:34225/entry/login?code=" + this.code;
}
}, },
methods: { methods: {
handleDownload() { handleDownload() {
......
...@@ -20,9 +20,5 @@ export default { ...@@ -20,9 +20,5 @@ export default {
isPc: true, isPc: true,
}; };
}, },
mounted() {
this.code = location.href.split("?")[1].split("=")[1];
console.log(this.code)
},
}; };
</script> </script>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论