提交 508b7589 authored 作者: ling's avatar ling

Add app download link

上级 69cbdeac
......@@ -53,10 +53,8 @@
<div>
<div class="install_btn_wrap">
<div class="process_box"></div>
<a
class="down_btn"
href="/d50232e4a3e846cabcd0877c05678902.mobileprovision"
>立即下载</a
<span class="down_btn" @click="handleDownload()"
>立即下载</span
>
</div>
</div>
......@@ -87,10 +85,8 @@
<div v-else>
<div style="display: flex; justify-content: space-evenly">
<div class="install_btn_wrap" style="width: 10.8rem">
<a
class="down_btn"
href="/d50232e4a3e846cabcd0877c05678902.mobileprovision"
>立即下载</a
<span class="down_btn" @click="handleDownload()"
>立即下载</span
>
</div>
<div class="open_h5_wrap" style="width: 8rem">
......@@ -159,12 +155,29 @@ export default {
isiOS: null,
};
},
created() {
ShareTrace.init({
appkey: "a4a9e45dc76e096a",
success: function () {
console.log("init success...");
},
error: function (msg) {
console.log(msg);
},
});
},
mounted() {
const u = navigator.userAgent;
const isAndroid = u.indexOf("Android") > -1 || u.indexOf("Adr") > -1; //android终端
const isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
this.isiOS = isiOS;
},
methods: {
handleDownload() {
// 请在用户点击下载按钮时,触发此函数
ShareTrace.download();
},
},
};
</script>
<style scoped>
......
......@@ -22,6 +22,9 @@ export default {
{ hid: 'description', name: 'description', content: '' },
{ name: 'format-detection', content: 'telephone=no' }
],
script: [{
src: 'https://res.sharetrace.com/sharetrace.min.js'
}],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
......
......@@ -20,5 +20,9 @@ export default {
isPc: true,
};
},
mounted() {
this.code = location.href.split("?")[1].split("=")[1];
console.log(this.code)
},
};
</script>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论