ios专用mobling

This commit is contained in:
Dragon
2024-03-20 16:26:59 +08:00
parent 3befdb2473
commit 4b5ca4596b
2 changed files with 14 additions and 7 deletions

View File

@@ -59,6 +59,14 @@ $(function () {
}
]);
}
if (browser.ios) {
MobLink([{
el: '#downloads',
path: '',
params: { mobLinkType: 1, inviteCode, }
}
]);
}
$.copy({
text: "复制成功", //分享提示文案
copyUrl: inviteCode, //自定义复制
@@ -87,12 +95,11 @@ function get () {
}
})
}
$('.box .xz').click(function () {
if (browser.ios) {
// window.location.href = `pikoApp://register?inviteCode=${inviteCode}&type=8`
isAppInstalled(`pikoApp://register?inviteCode=${inviteCode}&type=8`);
}
})
// $('.box .xz').click(function () {
// if (browser.ios) {
// window.location.href = `https://cebg.t4m.cn/`
// }
// })
function isAppInstalled(scheme) {
try {
// 尝试打开应用

View File

@@ -58,4 +58,4 @@
<script src="./js/swiper-bundle.min.js"></script>
<script type="text/javascript" src="//cebg.t4m.cn/applink.js"></script>
<script src="../../common/js/jquery.copy.min.js"></script>
<script src="./js/share.js?v=1.1"></script>
<script src="./js/share.js?v=1.5"></script>