Commit 88773bad by dawei

feat: 更新

parent 3dcaa809
.hide2 {
visibility: hidden;
}
body .layui-layer {
background-color: transparent;
box-shadow: none;
border-radius: 0;
}
body .layui-layer.layui-layer-hui {
background-color: #000;
filter: alpha(opacity=80);
background-color: rgba(0, 0, 0, .8);
}
body,
html {
line-height: 1.2;
font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;
background-color: #1D1E2B;
}
.main {
width: 10rem;
position: relative;
font-size: 0;
margin: 0 auto;
overflow: hidden;
height: 100%;
background: url(../img/bg.png) repeat-y;
background-size: 10rem 22.666rem;
}
.mTop, .mTop_hide {
position: absolute;
left: 50%;
top: 0;
margin-left: -5rem;
width: 10rem;
height: 1.866rem;
background-color: #FFFFFF;
z-index: 500;
display: flex;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
padding: 0 .32rem;
}
.mTopLogo {
/* position: absolute;
left: 0.506rem;
top: 0.5rem; */
width: 2.3733rem;
}
.mTopInfo {
position: absolute;
left: 1.946rem;
top: 50%;
transform: translate(0, -50%);
-webkit-transform: translate(0, -50%);
-moz-transform: translate(0, -50%);
-ms-transform: translate(0, -50%);
-o-transform: translate(0, -50%);
font-size: 0;
}
.mTopInfo p {
font-size: 0.373rem;
color: #E6E6E6;
}
.mTopInfo p:nth-child(2) {
margin-top: 0.16rem;
font-size: 0.32rem;
color: #808080;
}
.mTopBtn {
width: 2.2rem;
height: 0.85rem;
line-height: .85rem;
text-align: center;
/* position: absolute;
left: 7.3rem;
top: 0.45rem; */
font-size: 0.346rem;
color: #22222B;
border-radius: 1rem;
background: #00F7FF;
}
.mUserInfo {
position: absolute;
left: 0;
top: 4.24rem;
width: 100%;
text-align: center;
font-size: 0;
z-index: 500;
}
.mUserInfo img {
width: 3.08rem;
height: 3.08rem;
border-radius: 1.533rem;
-webkit-border-radius: 1.533rem;
-moz-border-radius: 1.533rem;
-ms-border-radius: 1.533rem;
-o-border-radius: 1.533rem;
position: absolute;
left: 50%;
top: 0;
margin-left: -1.54rem;
text-align: center;
}
.mUserInfo p.mUserText {
font-size: 0.506rem;
color: #FFF;
position: absolute;
left: 0;
top: 3.426rem;
width: 100%;
text-align: center;
}
.mUserInfo p.mUserText2 {
font-size: 0.4rem;
top: 4.1rem;
}
.mUserBtn {
width: 2.733rem;
height: 0.8rem;
line-height: .8rem;
text-align: center;
position: absolute;
top: 9.493rem;
left: 50%;
margin-left: -1.366rem;
font-size: 0.346rem;
color: #FFF;
border: solid 1px transparent;
border-radius: 1rem;
background-image: linear-gradient(to left, #0e375d, #0f4647), linear-gradient(to left, #00a0e9, #00f088);
background-origin: border-box;
background-clip: content-box, border-box;
}
.mBottom {
background: url(../img/bottom.png) no-repeat;
background-size: 100% 100%;
width: 10rem;
height: 2.506rem;
position: absolute;
left: 50%;
margin-left: -5rem;
bottom: 0;
z-index: 500;
}
.mBottom span {
position: absolute;
left: 1.266rem;
top: 1.24rem;
height: 0.88rem;
line-height: 0.85rem;
font-size: 0.373rem;
color: rgba(0, 0, 0, .6);
}
.mLiveEndBg {
width: 10rem;
position: absolute;
left: 0;
top: 0;
font-size: 0;
overflow: hidden;
height: 100%;
background: url(../img/bg.png) repeat-y;
background-size: 10rem 22.666rem;
}
.mLiveEnd .mUserBtn {
top: 9.44rem;
}
.L_En .mTopInfo p:nth-child(2) {
font-size: .3rem;
}
.L_En .mUserBtn {
width: 3.8rem;
margin-left: -1.9rem;
}
.mLiveText {
font-size: 0.4rem;
position: absolute;
left: 0;
top: 3.773rem;
width: 100%;
height: 0.6rem;
line-height: 0.6rem;
text-align: center;
color: #FFF;
display: flex;
align-items: center;
justify-content: center;
}
.mLiveText::after {
content: '';
display: block;
width: 2.36rem;
height: 0.1rem;
background: url(../img/line.png) no-repeat;
background-size: contain;
margin-left: 0.4rem;
}
.mLiveText::before {
content: '';
display: block;
width: 2.36rem;
height: 0.1rem;
background: url(../img/line2.png) no-repeat;
background-size: contain;
margin-right: 0.4rem;
}
.micRecommendBox {
position: absolute;
top: 4.813rem;
left: 1.187rem;
width: 7.62rem;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
}
.reEach {
width: 3.684rem;
height: 3.676rem;
border-radius: 0.107rem;
position: relative;
margin-top: 0.213rem;
overflow: hidden;
}
.reEach img {
display: block;
width: 100%;
}
.micName {
position: absolute;
bottom: 0.16rem;
left: 0;
padding-left: 0.12rem;
color: #fff;
font-size: 0.28rem;
font-weight: bold;
}
.micLocation {
position: absolute;
bottom: 0.627rem;
left: 0;
padding-left: 0.12rem;
font-size: 0.187rem;
color: #fff;
}
.micLocation::before {
content: '';
display: inline-block;
width: 0.16rem;
height: 0.2rem;
background: url(../img/loc.png) no-repeat;
background-size: contain;
margin-right: 0.12rem;
}
.micHot {
box-sizing: border-box;
padding: 0 0.2rem;
color: #fff;
border-radius: 0.027rem 0.213rem 0.027rem 0.213rem;
background: rgba(0, 0, 0, .24);
font-size: 0.2rem;
position: absolute;
top: 0.107rem;
right: 0.093rem;
}
.micHot img {
width: 0.187rem;
display: inline-block;
vertical-align: middle;
margin-right: 0.08rem;
}
.micHot::before {
content: '';
display: inline-block;
width: 0.32rem;
height: 0.32rem;
background: url(../img/green.webp) no-repeat;
background-size: contain;
vertical-align: middle;
margin-right: 0.08rem;
}
.mBottom2 {
width: 10rem;
height: 2.506rem;
position: absolute;
left: 0;
bottom: 0;
z-index: 500;
}
.mBottom2 p {
width: 100%;
text-align: center;
color: #fff;
font-size: 0.347rem;
}
.goBtn {
color: #000000;
font-size: 0.4rem;
text-align: center;
width: 6.213rem;
height: 1.067rem;
line-height: 1.067rem;
background: #00F7FF;
border-radius: 0.533rem;
margin: 0 auto;
margin-top: 0.44rem;
}
.hide {
display: none;
}
.mLiveStart {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
.box_img {
position: relative;
height: 100%;
width: 10rem;
overflow: hidden;
background: #f3f3f3;
}
.box_img img {
position: absolute;
left: 50%;
margin-left: -300px;
top: 50%;
margin-top: -300px;
width: 600px;
height: 600px;
background-color: rgba(0, 0, 0, 0.3);
-webkit-filter: blur(15px);
-moz-filter: blur(15px);
-ms-filter: blur(15px);
-o-filter: blur(15px);
filter: blur(15px);
}
.mListPlay {
width: 1.066rem;
height: 1.066rem;
position: absolute;
left: 50%;
top: 50%;
margin-left: -.533rem;
margin-top: -.533rem;
z-index: 2000;
}
.mListPlay img {
width: 100%;
height: 100%;
}
.video-play {
position: relative;
overflow: hidden;
width: 10rem;
}
.video-play-bg {
position: absolute;
overflow: hidden;
height: 100%;
width: 10rem;
background-color: rgba(0, 0, 0, 0.3);
-webkit-filter: blur(15px);
-moz-filter: blur(15px);
-ms-filter: blur(15px);
-o-filter: blur(15px);
filter: blur(15px);
}
.video-play-bg1 {
position: absolute;
overflow: hidden;
height: 100%;
width: 10rem;
}
.mLiveBox {
position: absolute;
left: 0.453rem;
top: 2.186rem;
height: 0.946rem;
line-height: 1rem;
font-size: 0.346rem;
color: rgba(255, 255, 255, .6);
background-color: rgba(0, 0, 0, .6);
border-radius: 0.48rem;
-webkit-border-radius: 0.48rem;
-moz-border-radius: 0.48rem;
-ms-border-radius: 0.48rem;
-o-border-radius: 0.48rem;
z-index: 100000;
padding-right: 0.306rem;
display: flex;
align-items: center;
}
.uInfo {
line-height: 0.4rem;
}
.copyBtn {
width: 0.227rem;
height: 0.227rem;
background: url(../img/copy.png) no-repeat;
background-size: contain;
display: inline-block;
margin-left: 0.12rem;
}
.mLiveBox img {
width: 0.773rem;
height: 0.773rem;
border-radius: 0.386rem;
-webkit-border-radius: 0.386rem;
-moz-border-radius: 0.386rem;
-ms-border-radius: 0.386rem;
vertical-align: middle;
margin-top: -.05rem;
margin-left: 0.093rem;
margin-right: 0.146rem;
}
.restrict {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
z-index: 999;
display: flex;
justify-content: center;
align-items: center;
font-size: .4rem;
font-weight: 700;
color: #FFFFFF;
}
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<!-- a标签点击打开的动作,在click事件中注册 -->
<a href="javascript:;" id="openApp">firefly</a>
</body>
<script type="text/javascript">
document.getElementById('openApp').onclick = function(e){
// 通过iframe的方式试图打开APP,如果能正常打开,会直接切换到APP,并自动阻止js其他行为
var ifr = document.createElement('iframe');
ifr.src = 'mitaolive:/';//打开app的协议,有app同事提供
ifr.style.display = 'none';
document.body.appendChild(ifr);
window.setTimeout(function(){
document.body.removeChild(ifr);
window.location.href = "itms-services://?action=download-manifest&url=https://app.ixiulive.com/mitaozhibo-resigned.plist";//打开app下载地址,有app同事提供
},2000)
};
</script>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<script type="text/javascript" src="//res.cdn.openinstall.io/openinstall.js"></script>
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-115294467-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-115294467-1');
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta content="telephone=no" name="format-detection">
<meta name="wap-font-scale" content="no">
<title></title>
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/index.css">
<script src="lib/fsize.js"></script>
</head>
<body>
<div class="bg">
<div class="weixin"></div>
<div class="guanzhu"><span class="add"><img style="width: 0.35rem;" src="images/add.png" alt=""></span> <span class="lang-show"></span></div>
<span class="name-more">
<div class="more">
<!--<img src="images/sister.png" alt="">-->
<!--<span class="name">彼岸花开</span>-->
<!--<span class="hot">200 围观</span>-->
</div>
</span>
<div class="down">
<span class="down-l"><img src="images/sister-b.png" alt=""></span>
<span class="down-font"><span class="lang-show"></span></span>
<div class="down-btn"><span class="lang-show"></span></div>
</div>
<div class="down-bottom">
<span class="down-l"><img src="images/sister-b.png" alt=""></span>
<span class="down-font"><span class="lang-show"></span></span>
<div class="down-btn"><span class="lang-show"></span></div>
</div>
<div class="video-play">
<!--<div class="end">-->
<!--<span class="text1">直播已结束</span>-->
<!--<span class="text2">进入APP看直播</span>-->
<!--</div>-->
<div class="video-play-bg">
<!--<img src="https://zhibocdn.yabolive.net/comm/user/img/434467/222f3e5ea31b43b79efb6a60a2aa2d04.jpg" alt="">-->
</div>
<!--<video id="videoID"webkit-playsinline="true" x-webkit-airplay="true" playsinline="true"x5-video-player-type="h5"x5-video-player-fullscreen="true"style="width: 100%;height: 100%;object-fit: fill;z-index: -1"; preload="auto" autoplay loop poster="" src="https://zhibocdn.yabolive.net/mp4/meetlive.mp4">-->
<!--</video>-->
<div class="play-btn"><img src="images/play.png" alt=""></div>
<div class="play-bottom">
<input class="inp" placeholder="與主播聊聊天吧..." type="text">
<img class="gift" src="images/gift.gif" alt="">
</div>
</div>
<div class="more-video">
<div class="more-h1"><img style="margin-right: .2rem;" src="images/hot.png" alt=""> <span class="lang-show"></span> <img
style="margin-left: .2rem;" src="images/hot.png" alt=""></div>
<ul class="more-ul clearfix">
<!--<li><img src="images/beautiful.png"><div class="live"><span class="dian"></span><span class="live-text">Live</span></div></li>-->
<!--<li><img src="images/beautiful.png"><div class="live"><span class="dian"></span><span class="live-text">Live</span></div></li>-->
<!--<li><img src="images/beautiful.png"><div class="live"><span class="dian"></span><span class="live-text">Live</span></div></li>-->
<!--<li><img src="images/beautiful.png"><div class="live"><span class="dian"></span><span class="live-text">Live</span></div></li>-->
<!--<li><img src="images/beautiful.png"><div class="live"><span class="dian"></span><span class="live-text">Live</span></div></li>-->
<!--<li><img src="images/beautiful.png"><div class="live"><span class="dian"></span><span class="live-text">Live</span></div></li>-->
<!--<li><img src="images/beautiful.png"><div class="live"><span class="dian"></span><span class="live-text">Live</span></div></li>-->
<!--<li><img src="images/beautiful.png"><div class="live"><span class="dian"></span><span class="live-text">Live</span></div></li>-->
<!--<li><img src="images/beautiful.png"><div class="live"><span class="dian"></span><span class="live-text">Live</span></div></li>-->
<!--<li><img src="images/beautiful.png"><div class="live"><span class="dian"></span><span class="live-text">Live</span></div></li>-->
<!--<li><img src="images/beautiful.png"><div class="live"><span class="dian"></span><span class="live-text">Live</span></div></li>-->
<!--<li><img src="images/beautiful.png"><div class="live"><span class="dian"></span><span class="live-text">Live</span></div></li>-->
</ul>
</div>
</div>
<div class="shadow-img"><img src="images/share-img.png" alt=""></div>
</body>
<script src="lib/jquery-3.1.1.min.js"></script>
<script src="js/index.js?v='20190122'"></script>
<script>
var language = (navigator.browserLanguage || navigator.language).toLowerCase();
if(language.indexOf('zh')>-1){
$("title").text('直播分享')
var langJSON={
"langList":[
{"text":"追蹤"},
{"text":"海量正妹 與你 親密互動"},
{"text":"點擊打開"},
{"text":"海量正妹 與你 親密互動"},
{"text":"點擊打開"},
{"text":"更多熱門直播"},
]
}
}else if(language.indexOf('en')>-1){
$("title").text('Live stream sharing')
var langJSON={
"langList":[
{"text":"Follow"},
{"text":"Click here to engage more"},
{"text":"Click to start"},
{"text":"Click here to engage more"},
{"text":"Click to start"},
{"text":"More popular"},
]
}
}else{
$("title").text('Live stream sharing')
var langJSON={
"langList":[
{"text":"追蹤"},
{"text":"海量正妹 與你 親密互動"},
{"text":"點擊打開"},
{"text":"海量正妹 與你 親密互動"},
{"text":"點擊打開"},
{"text":"更多熱門直播"},
]
}
}
for(var i=0;i<langJSON.langList.length;i++){
$(".lang-show").eq(i).text(langJSON.langList[i].text);
}
</script>
</html>
\ No newline at end of file
let urlData = getRequest();
//todo 客户端需要时间去了解universal link的传参方式。
function browserRedirect() {
var ua = navigator.userAgent.toLowerCase();
var userAgent = navigator.userAgent;
if (/android/.test(ua)) {
let param = {
openData: {
paramInfo: urlData.uid,
},
action_type: 2,
fid: urlData.uid,
agentUid: urlData.agentCode,
type: 1,
behaviorLog: {
reqType: 3, /* 1. 官網 2. 邀請鏈接 3. 直播間 */
roomId: urlData.uid,
agentUid: urlData.agentCode,
liveType: 2, /* 1.系统推送进入 2.直播间分享链接进入 3.外部网页进入 */
}
};
if(urlData.password) {
param.password = urlData.password
}
let param2 = JSON.stringify(param);
console.log(param2)
let mBase64 = btoa(param2); //要求要base64的,
window.location.href = "fusiclub://firefly.com/open?openAppEventSchedule=" + mBase64;
// setTimeout(function () {
// window.location.href =
// "https://play.google.com/store/apps/details?id=com.ftsfoss.android";
// }, 1500);
} else {
let param = {
type: 1,
roomId: urlData.uid || "",
agentUid: urlData.agentCode || "",
sid: 0, //预告id,可暂时写死为0
behaviorLog: {
reqType: 3, /* 1. 官網 2. 邀請鏈接 3. 直播間 */
roomId: urlData.uid,
agentUid: urlData.agentCode,
liveType: 2, /* 1.系统推送进入 2.直播间分享链接进入 3.外部网页进入 */
}
};
if(urlData.password) {
param.password = urlData.password
}
let param2 = JSON.stringify(param);
let mBase64 = btoa(param2); //要求要base64的,
// const appScheme =
// "https://firefly.live/fireflyapp?calendarSchedule=" + mBase64; // 应用的 URL Scheme
const appScheme =
"FusiClub://open?calendarSchedule=" + mBase64; // 应用的 URL Scheme
const fallbackUrl =
"https://apps.apple.com/us/app/fusi-club-go-live-video-party/id6648779703"; // 下载链接
// 创建一个用于检测应用是否成功打开的标志
let appOpened = false;
// 尝试打开应用
window.location = appScheme;
// 设置一个超时处理,如果应用未打开,则重定向到备用链接
setTimeout(function () {
if (!appOpened) {
window.location.href = fallbackUrl;
}
}, 1500); // 调整超时时间,根据实际需求调整
}
}
......@@ -28,7 +28,7 @@ $(function () {
else if(/iphone|ipad|ipod/.test(ua)){
key='dzxj4c';
}
// var $ip = "http://ceshi.yabolive.tv/web";
// var $ip = "https://ceshi.yabolive.tv/web";
var $ip = "https://webserver.yabolive.net";
var bilibi=true;
var bbb = location.href;
......
var langList = [
{
'share1':'更多精彩點擊下載APP',
'share2':'下載APP',
'share3':'正在APP中多人聊天',
'share4':'加入聊天',
'share5':'查看更多直播',
'share6':'直播已结束',
'share7':'说点什么吧',
'share8':'直播分享',
'share9': "啓動",
"share10": "推薦主播",
"share11": "啓動FusiYa,發現更多有趣主播",
"share12": "拷貝成功"
},
{
'share1':'Download APP to have more fun',
'share2':'Download APP',
'share3':'Chatting with multiple people in APP',
'share4':'Join the chat ',
'share5':'See more broadcast',
'share6':'The live broadcast is over',
'share7':'Say something...',
'share8':'Live stream sharing',
'share9': "Start",
"share10": "Hot Anchor",
"share11": "Start FusiYa, discover more interesting anchors",
"share12": "Copy successful"
}
]
var langStr = (navigator.language || navigator.browserLanguage).toLowerCase();
var langType = 0;
var langNum = 2;
$('body').removeClass('L_En');
//langType = 1
//$('body').addClass('L_En');
if(langStr.indexOf('zh')>=0){
langType = 0;
langNum = 2;
} else {
$('body').addClass('L_En');
langType = 1;
langNum = 1;
}
// var $ip = "https://ceshi.yabolive.tv/web";
var $ip = "https://webserver.yabolive.net";
var cdn = 'https://big.bgp.ourpow.com/comm';
function getRequest() {
var url = location.href;
var theRequest = new Object();
if (url.indexOf("?") != -1) {
var str = url.substr(url.indexOf("?") + 1);
strs = str.split("&");
for (var i = 0; i < strs.length; i++) {
theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
}
}
return theRequest;
}
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="css/base.css" />
<link rel="stylesheet" href="css/newindex.css?v=1" />
<script src="lib/fsize.js"></script>
<style>
body {
background-color: #FFFFFF;
}
.uid_input {
margin: 0.16rem;
border: .0133rem solid #000000;
}
</style>
</head>
<body>
<div id="app" v-cloak>
<input
class="uid_input"
id="uid_input"
type="text"
placeholder="请输入直播间id"
/>
<div
style="
background-color: #ff6633;
border-radius: 0.32rem;
width: 3rem;
height: 0.6667rem;
display: flex;
justify-content: center;
align-items: center;
margin: 0.16rem;
"
@click="open()"
>
加入直播间
</div>
<div
style="
background-color: #ff6633;
border-radius: 0.32rem;
width: 3rem;
height: 0.6667rem;
display: flex;
justify-content: center;
align-items: center;
margin: 0.16rem;
"
@click="openApp(1)"
>
官网打开App
</div>
<div
style="
background-color: #ff6633;
border-radius: 0.32rem;
width: 3rem;
height: 0.6667rem;
display: flex;
justify-content: center;
align-items: center;
margin: 0.16rem;
"
@click="openApp(2)"
>
邀请链接打开App
</div>
</div>
</body>
<script
type="text/javascript"
src="https://app.ixiulive.com/static/js/vue.js"
></script>
<script
type="text/javascript"
src="https://app.ixiulive.com/static/js/webAppComm.js"
></script>
<script type="text/javascript">
var app = new Vue({
el: "#app",
data() {
return {
uid: "",
};
},
mounted() {},
methods: {
open() {
let that = this;
this.uid = document.getElementById("uid_input").value;
var ua = navigator.userAgent.toLowerCase();
var userAgent = navigator.userAgent;
if (/android/.test(ua)) {
let param = {
openData: {
paramInfo: that.uid,
},
action_type: 2,
fid: that.uid,
agentUid: "",
type: 1,
behaviorLog: {
reqType: 3 /* 1. 官網 2. 邀請鏈接 3. 直播間 */,
roomId: that.uid,
agentUid: "",
liveType: 3 /* 1.系统推送进入 2.直播间分享链接进入 3.外部网页进入 */,
},
};
let param2 = JSON.stringify(param);
let mBase64 = btoa(param2); //要求要base64的,
window.location.href =
"fusiclub://firefly.com/open?openAppEventSchedule=" + mBase64;
} else {
let param = {
type: 1,
roomId: that.uid || "",
agentUid: "",
sid: 0, //预告id,可暂时写死为0
behaviorLog: {
reqType: 3 /* 1. 官網 2. 邀請鏈接 3. 直播間 */,
roomId: that.uid,
agentUid: "",
liveType: 3 /* 1.系统推送进入 2.直播间分享链接进入 3.外部网页进入 */,
},
};
let param2 = JSON.stringify(param);
let mBase64 = btoa(param2); //要求要base64的,
const appScheme = "FusiClub://open?calendarSchedule=" + mBase64; // 应用的 URL Scheme
const fallbackUrl =
"https://apps.apple.com/us/app/fusi-club-go-live-video-party/id6648779703"; // 下载链接
// 创建一个用于检测应用是否成功打开的标志
let appOpened = false;
// 尝试打开应用
window.location = appScheme;
}
},
openApp(t) {
let that = this;
var ua = navigator.userAgent.toLowerCase();
var userAgent = navigator.userAgent;
if (/android/.test(ua)) {
let param = {
type: -1,
behaviorLog: {
reqType: t /* 1. 官網 2. 邀請鏈接 3. 直播間 */,
liveType: 3 /* 1.系统推送进入 2.直播间分享链接进入 3.外部网页进入 */,
},
};
let param2 = JSON.stringify(param);
let mBase64 = btoa(param2); //要求要base64的,
window.location.href =
"fusiclub://firefly.com/open?openAppEventSchedule=" + mBase64;
} else {
let param = {
type: -1,
behaviorLog: {
reqType: t /* 1. 官網 2. 邀請鏈接 3. 直播間 */,
liveType: 3 /* 1.系统推送进入 2.直播间分享链接进入 3.外部网页进入 */,
},
};
let param2 = JSON.stringify(param);
let mBase64 = btoa(param2); //要求要base64的,
const appScheme = "FusiClub://open?calendarSchedule=" + mBase64; // 应用的 URL Scheme
const fallbackUrl =
"https://apps.apple.com/us/app/fusi-club-go-live-video-party/id6648779703"; // 下载链接
// 创建一个用于检测应用是否成功打开的标志
let appOpened = false;
// 尝试打开应用
window.location = appScheme;
}
},
},
});
</script>
</html>
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 sign in to comment