|
@@ -46,19 +46,19 @@
|
|
background: rgba(0, 0, 0, 0.5);
|
|
background: rgba(0, 0, 0, 0.5);
|
|
display: none;
|
|
display: none;
|
|
}
|
|
}
|
|
-
|
|
|
|
- .try-use-container{
|
|
|
|
|
|
+
|
|
|
|
+ .try-use-container {
|
|
width: 80%;
|
|
width: 80%;
|
|
height: 409px;
|
|
height: 409px;
|
|
- position: absolute;
|
|
|
|
- top: 50%;
|
|
|
|
- left: 50%;
|
|
|
|
- transform: translate(-50%, -50%);
|
|
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 50%;
|
|
|
|
+ left: 50%;
|
|
|
|
+ transform: translate(-50%, -50%);
|
|
background-color: #FFFFFF;
|
|
background-color: #FFFFFF;
|
|
border-radius: 0.66em;
|
|
border-radius: 0.66em;
|
|
}
|
|
}
|
|
|
|
|
|
- .time-close-wrap{
|
|
|
|
|
|
+ .time-close-wrap {
|
|
width: 5.46em;
|
|
width: 5.46em;
|
|
height: 2em;
|
|
height: 2em;
|
|
line-height: 2em;
|
|
line-height: 2em;
|
|
@@ -72,18 +72,18 @@
|
|
color: #FFFFFF;
|
|
color: #FFFFFF;
|
|
}
|
|
}
|
|
|
|
|
|
- .bug-wrap{
|
|
|
|
|
|
+ .bug-wrap {
|
|
width: 90%;
|
|
width: 90%;
|
|
height: 115px;
|
|
height: 115px;
|
|
background: #FFFFFF;
|
|
background: #FFFFFF;
|
|
border-radius: 10px;
|
|
border-radius: 10px;
|
|
position: absolute;
|
|
position: absolute;
|
|
- top: 50%;
|
|
|
|
- left: 50%;
|
|
|
|
- transform: translate(-50%, -50%);
|
|
|
|
|
|
+ top: 50%;
|
|
|
|
+ left: 50%;
|
|
|
|
+ transform: translate(-50%, -50%);
|
|
}
|
|
}
|
|
|
|
|
|
- .bug-title{
|
|
|
|
|
|
+ .bug-title {
|
|
text-align: center;
|
|
text-align: center;
|
|
margin: 25px 0;
|
|
margin: 25px 0;
|
|
font-size: 18px;
|
|
font-size: 18px;
|
|
@@ -91,11 +91,11 @@
|
|
color: #333333;
|
|
color: #333333;
|
|
}
|
|
}
|
|
|
|
|
|
- .btn-list{
|
|
|
|
|
|
+ .btn-list {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 44px;
|
|
height: 44px;
|
|
line-height: 44px;
|
|
line-height: 44px;
|
|
- border-top: 1px solid rgba(238,238,238,1);
|
|
|
|
|
|
+ border-top: 1px solid rgba(238, 238, 238, 1);
|
|
position: absolute;
|
|
position: absolute;
|
|
bottom: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
left: 0;
|
|
@@ -103,20 +103,20 @@
|
|
align-items: center;
|
|
align-items: center;
|
|
}
|
|
}
|
|
|
|
|
|
- .btn{
|
|
|
|
|
|
+ .btn {
|
|
flex: 1;
|
|
flex: 1;
|
|
text-align: center;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
|
|
- .cannel-btn{
|
|
|
|
|
|
+ .cannel-btn {
|
|
font-size: 18px;
|
|
font-size: 18px;
|
|
color: #666666;
|
|
color: #666666;
|
|
}
|
|
}
|
|
|
|
|
|
- .go-bug{
|
|
|
|
|
|
+ .go-bug {
|
|
font-size: 18px;
|
|
font-size: 18px;
|
|
color: #3B7FFF;
|
|
color: #3B7FFF;
|
|
- border-left: 1px solid rgba(238,238,238,1);
|
|
|
|
|
|
+ border-left: 1px solid rgba(238, 238, 238, 1);
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
</head>
|
|
</head>
|
|
@@ -220,6 +220,7 @@
|
|
<script type="text/javascript" src="webgl.js"></script>
|
|
<script type="text/javascript" src="webgl.js"></script>
|
|
<script type="text/javascript" src="https://cdn.bootcss.com/vConsole/3.2.0/vconsole.min.js"></script>
|
|
<script type="text/javascript" src="https://cdn.bootcss.com/vConsole/3.2.0/vconsole.min.js"></script>
|
|
<script type="text/javascript" src="WXdraw.js"></script>
|
|
<script type="text/javascript" src="WXdraw.js"></script>
|
|
|
|
+ <script type="text/javascript" src="https://unpkg.com/@dcloudio/uni-webview-js@0.0.2/index.js"></script>
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$(function () {
|
|
//手指滑动多少距离就认为是滑成功
|
|
//手指滑动多少距离就认为是滑成功
|
|
@@ -342,7 +343,7 @@
|
|
});
|
|
});
|
|
//云机倒计时
|
|
//云机倒计时
|
|
let validTime = parameters['validTime'] || 10000;
|
|
let validTime = parameters['validTime'] || 10000;
|
|
- if(validTime > 32000) {
|
|
|
|
|
|
+ if (validTime > 32000) {
|
|
validTime = 32000;
|
|
validTime = 32000;
|
|
}
|
|
}
|
|
let detailTime = validTime * 60 * 1000;
|
|
let detailTime = validTime * 60 * 1000;
|
|
@@ -676,7 +677,7 @@
|
|
tt.miniProgram.switchTab({
|
|
tt.miniProgram.switchTab({
|
|
url: '/pages/home/home'
|
|
url: '/pages/home/home'
|
|
})
|
|
})
|
|
- } else if(window.__wxjs_environment === 'miniprogram') {
|
|
|
|
|
|
+ } else if (window.__wxjs_environment === 'miniprogram') {
|
|
wx.miniProgram.switchTab({
|
|
wx.miniProgram.switchTab({
|
|
url: '/pages/home/home'
|
|
url: '/pages/home/home'
|
|
})
|
|
})
|
|
@@ -736,7 +737,7 @@
|
|
var decodeWoker = new Worker('decoder.js');
|
|
var decodeWoker = new Worker('decoder.js');
|
|
var myVideo = document.getElementById("playCanvas");
|
|
var myVideo = document.getElementById("playCanvas");
|
|
var logicWidth = 720;
|
|
var logicWidth = 720;
|
|
- var logicHeight = 1280;
|
|
|
|
|
|
+ var logicHeight = 1280;
|
|
decodeWoker.onmessage = function (event) {
|
|
decodeWoker.onmessage = function (event) {
|
|
var objData = event.data;
|
|
var objData = event.data;
|
|
|
|
|
|
@@ -746,7 +747,7 @@
|
|
case 1:
|
|
case 1:
|
|
if (logicWidth != objData.width || logicHeight != objData.height) {
|
|
if (logicWidth != objData.width || logicHeight != objData.height) {
|
|
logicWidth = objData.width;
|
|
logicWidth = objData.width;
|
|
- logicHeight = objData.height;
|
|
|
|
|
|
+ logicHeight = objData.height;
|
|
}
|
|
}
|
|
webglPlayer.renderFrame(objData.data, logicWidth, logicHeight, logicWidth * logicHeight, (logicWidth / 2) * (logicHeight / 2));
|
|
webglPlayer.renderFrame(objData.data, logicWidth, logicHeight, logicWidth * logicHeight, (logicWidth / 2) * (logicHeight / 2));
|
|
$('.weui-mask_transparent').hide()
|
|
$('.weui-mask_transparent').hide()
|
|
@@ -809,12 +810,12 @@
|
|
tt.miniProgram.switchTab({
|
|
tt.miniProgram.switchTab({
|
|
url: '/pages/home/home'
|
|
url: '/pages/home/home'
|
|
})
|
|
})
|
|
- } else if(window.__wxjs_environment === 'miniprogram') {
|
|
|
|
|
|
+ } else if (window.__wxjs_environment === 'miniprogram') {
|
|
wx.miniProgram.switchTab({
|
|
wx.miniProgram.switchTab({
|
|
url: '/pages/home/home'
|
|
url: '/pages/home/home'
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
- location.href = `${baseUrl}/cloud/phone/web/#/pages/index/index`
|
|
|
|
|
|
+ location.href = `${baseUrl}/cloud/phone/web/#/pages/index/index`
|
|
// document.addEventListener('UniAppJSBridgeReady', function() {
|
|
// document.addEventListener('UniAppJSBridgeReady', function() {
|
|
// uni.navigateTo({
|
|
// uni.navigateTo({
|
|
// url: '/pages/index/index'
|
|
// url: '/pages/index/index'
|
|
@@ -849,7 +850,7 @@
|
|
tt.miniProgram.switchTab({
|
|
tt.miniProgram.switchTab({
|
|
url: '/pages/home/home'
|
|
url: '/pages/home/home'
|
|
})
|
|
})
|
|
- } else if(window.__wxjs_environment === 'miniprogram') {
|
|
|
|
|
|
+ } else if (window.__wxjs_environment === 'miniprogram') {
|
|
wx.miniProgram.switchTab({
|
|
wx.miniProgram.switchTab({
|
|
url: '/pages/home/home'
|
|
url: '/pages/home/home'
|
|
})
|
|
})
|
|
@@ -905,7 +906,7 @@
|
|
if (res.status === 0) {
|
|
if (res.status === 0) {
|
|
let list = res.data;
|
|
let list = res.data;
|
|
list.map((item) => {
|
|
list.map((item) => {
|
|
- if(item.phoneType === parameters['mealType']){
|
|
|
|
|
|
+ if (item.phoneType === parameters['mealType']) {
|
|
resolve(item)
|
|
resolve(item)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -919,12 +920,12 @@
|
|
//广告信息
|
|
//广告信息
|
|
function adInit() {
|
|
function adInit() {
|
|
sourceType = parameters['sourceType'];
|
|
sourceType = parameters['sourceType'];
|
|
- if(sourceType == 1) {
|
|
|
|
|
|
+ if (sourceType == 1) {
|
|
getSetmealList().then((res) => {
|
|
getSetmealList().then((res) => {
|
|
- if(res.pushFlowAdvert === 1){
|
|
|
|
|
|
+ if (res.pushFlowAdvert === 1) {
|
|
getAdList(15);
|
|
getAdList(15);
|
|
}
|
|
}
|
|
- if(res.intervalSwitch === 1) {
|
|
|
|
|
|
+ if (res.intervalSwitch === 1) {
|
|
let time = res.intervalAdvertDuration * 60 * 1000;
|
|
let time = res.intervalAdvertDuration * 60 * 1000;
|
|
setInterval(() => {
|
|
setInterval(() => {
|
|
$('.try-use-wrap').eq(0).hide();
|
|
$('.try-use-wrap').eq(0).hide();
|
|
@@ -932,19 +933,19 @@
|
|
}, time);
|
|
}, time);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- }else if(sourceType == 2) {
|
|
|
|
|
|
+ } else if (sourceType == 2) {
|
|
getConfigByPhoneType().then((res) => {
|
|
getConfigByPhoneType().then((res) => {
|
|
- if(res.isDisconnectionTime === 1){
|
|
|
|
|
|
+ if (res.isDisconnectionTime === 1) {
|
|
let time = res.disconnectionTime * 60 * 1000;
|
|
let time = res.disconnectionTime * 60 * 1000;
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
disconnectionFlag = true;
|
|
disconnectionFlag = true;
|
|
$('.buy-phone-wrap').eq(0).show();
|
|
$('.buy-phone-wrap').eq(0).show();
|
|
}, time);
|
|
}, time);
|
|
}
|
|
}
|
|
- if(res.isShowAd === 1){
|
|
|
|
|
|
+ if (res.isShowAd === 1) {
|
|
getAdList(15);
|
|
getAdList(15);
|
|
}
|
|
}
|
|
- if(res.isIntervalPlayAd === 1) {
|
|
|
|
|
|
+ if (res.isIntervalPlayAd === 1) {
|
|
let time = res.intervalPlayAdTime * 60 * 1000;
|
|
let time = res.intervalPlayAdTime * 60 * 1000;
|
|
setInterval(() => {
|
|
setInterval(() => {
|
|
$('.try-use-wrap').eq(0).hide();
|
|
$('.try-use-wrap').eq(0).hide();
|
|
@@ -955,46 +956,46 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// 广告接口
|
|
// 广告接口
|
|
- function getAdList(type){
|
|
|
|
|
|
+ function getAdList(type) {
|
|
adType = type;
|
|
adType = type;
|
|
$.ajax({
|
|
$.ajax({
|
|
- url: baseUrl + "/api/public/v5/advertising/getAdInfoByAdPlace",
|
|
|
|
- headers: {
|
|
|
|
- 'Authorization': form.token
|
|
|
|
- },
|
|
|
|
- data: JSON.stringify({
|
|
|
|
- adPlace: type,
|
|
|
|
- os: 0
|
|
|
|
- }),
|
|
|
|
- type: 'POST',
|
|
|
|
- dataType: 'json',
|
|
|
|
- contentType: "application/json;charset=UTF-8",
|
|
|
|
- success: function (res) {
|
|
|
|
- if (res.status === 0) {
|
|
|
|
- let list = res.data;
|
|
|
|
- let indexs = Math.floor(Math.random()*list.length);
|
|
|
|
- videoTime = list[indexs].forcedTime;
|
|
|
|
- // $('#source').src = list[0].adVideoBase.videoUrl;
|
|
|
|
- $("#source").attr("src", list[indexs].adVideoBase.videoUrl);//更新url
|
|
|
|
- $("#source").attr("autoplay", "true");//直接播放
|
|
|
|
- videoTimer = setInterval(() =>{
|
|
|
|
- if(videoTime > 0) {
|
|
|
|
- videoTime--;
|
|
|
|
- $('.time-node').eq(0).text(videoTime + 's');
|
|
|
|
- } else {
|
|
|
|
- clearInterval(videoTimer);
|
|
|
|
- $('.time-node').eq(0).text('');
|
|
|
|
- }
|
|
|
|
- },1000)
|
|
|
|
- if (adType === 16 && sourceType == 1) { // 间隔广告和试用才上报
|
|
|
|
- report(0);
|
|
|
|
- }
|
|
|
|
- $('.try-use-wrap').eq(0).show();
|
|
|
|
|
|
+ url: baseUrl + "/api/public/v5/advertising/getAdInfoByAdPlace",
|
|
|
|
+ headers: {
|
|
|
|
+ 'Authorization': form.token
|
|
|
|
+ },
|
|
|
|
+ data: JSON.stringify({
|
|
|
|
+ adPlace: type,
|
|
|
|
+ os: 0
|
|
|
|
+ }),
|
|
|
|
+ type: 'POST',
|
|
|
|
+ dataType: 'json',
|
|
|
|
+ contentType: "application/json;charset=UTF-8",
|
|
|
|
+ success: function (res) {
|
|
|
|
+ if (res.status === 0) {
|
|
|
|
+ let list = res.data;
|
|
|
|
+ let indexs = Math.floor(Math.random() * list.length);
|
|
|
|
+ videoTime = list[indexs].forcedTime;
|
|
|
|
+ // $('#source').src = list[0].adVideoBase.videoUrl;
|
|
|
|
+ $("#source").attr("src", list[indexs].adVideoBase.videoUrl);//更新url
|
|
|
|
+ $("#source").attr("autoplay", "true");//直接播放
|
|
|
|
+ videoTimer = setInterval(() => {
|
|
|
|
+ if (videoTime > 0) {
|
|
|
|
+ videoTime--;
|
|
|
|
+ $('.time-node').eq(0).text(videoTime + 's');
|
|
} else {
|
|
} else {
|
|
- $.toast(res.msg, "text");
|
|
|
|
|
|
+ clearInterval(videoTimer);
|
|
|
|
+ $('.time-node').eq(0).text('');
|
|
}
|
|
}
|
|
|
|
+ }, 1000)
|
|
|
|
+ if (adType === 16 && sourceType == 1) { // 间隔广告和试用才上报
|
|
|
|
+ report(0);
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ $('.try-use-wrap').eq(0).show();
|
|
|
|
+ } else {
|
|
|
|
+ $.toast(res.msg, "text");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
//间隔广告上报
|
|
//间隔广告上报
|
|
function report(type) {
|
|
function report(type) {
|
|
@@ -1010,7 +1011,7 @@
|
|
type: 'POST',
|
|
type: 'POST',
|
|
dataType: 'json',
|
|
dataType: 'json',
|
|
contentType: "application/json;charset=UTF-8",
|
|
contentType: "application/json;charset=UTF-8",
|
|
- success: function (res) {}
|
|
|
|
|
|
+ success: function (res) { }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
//关闭广告
|
|
//关闭广告
|
|
@@ -1028,13 +1029,13 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
let pointName = '';
|
|
let pointName = '';
|
|
- if(sourceType == 1){
|
|
|
|
|
|
+ if (sourceType == 1) {
|
|
pointName = videoTime == 0 ? '免费试用-关闭-取消' : '免费试用-强制关闭-取消';
|
|
pointName = videoTime == 0 ? '免费试用-关闭-取消' : '免费试用-强制关闭-取消';
|
|
} else {
|
|
} else {
|
|
pointName = videoTime == 0 ? '激活码-关闭-取消' : '激活码-强制关闭-取消';
|
|
pointName = videoTime == 0 ? '激活码-关闭-取消' : '激活码-强制关闭-取消';
|
|
}
|
|
}
|
|
systemBuriedPoint(pointName);
|
|
systemBuriedPoint(pointName);
|
|
- if(videoTime == 0) {
|
|
|
|
|
|
+ if (videoTime == 0) {
|
|
if (adType === 16 && sourceType == 1) {
|
|
if (adType === 16 && sourceType == 1) {
|
|
report(1);
|
|
report(1);
|
|
}
|
|
}
|
|
@@ -1046,15 +1047,15 @@
|
|
// 点击去购买
|
|
// 点击去购买
|
|
$('.go-bug')[0].addEventListener('click', () => {
|
|
$('.go-bug')[0].addEventListener('click', () => {
|
|
let pointName = '';
|
|
let pointName = '';
|
|
- if(disconnectionFlag) {
|
|
|
|
|
|
+ if (disconnectionFlag) {
|
|
pointName = '激活码-断线-去购买';
|
|
pointName = '激活码-断线-去购买';
|
|
- } else if(sourceType == 1){
|
|
|
|
|
|
+ } else if (sourceType == 1) {
|
|
pointName = videoTime == 0 ? '免费试用-关闭-去购买' : '免费试用-强制关闭-去购买';
|
|
pointName = videoTime == 0 ? '免费试用-关闭-去购买' : '免费试用-强制关闭-去购买';
|
|
} else {
|
|
} else {
|
|
pointName = videoTime == 0 ? '激活码-关闭-去购买' : '激活码-强制关闭-去购买';
|
|
pointName = videoTime == 0 ? '激活码-关闭-去购买' : '激活码-强制关闭-去购买';
|
|
}
|
|
}
|
|
systemBuriedPoint(pointName);
|
|
systemBuriedPoint(pointName);
|
|
- if(getDate){
|
|
|
|
|
|
+ if (getDate) {
|
|
wx.miniProgram.navigateTo({
|
|
wx.miniProgram.navigateTo({
|
|
url: '/packageA/order/buy/index'
|
|
url: '/packageA/order/buy/index'
|
|
})
|
|
})
|
|
@@ -1066,7 +1067,7 @@
|
|
})
|
|
})
|
|
// 放弃
|
|
// 放弃
|
|
$('.cannel-ad-btn')[0].addEventListener('click', () => {
|
|
$('.cannel-ad-btn')[0].addEventListener('click', () => {
|
|
- if(sourceType == 1){
|
|
|
|
|
|
+ if (sourceType == 1) {
|
|
systemBuriedPoint('免费试用-强制关闭-放弃');
|
|
systemBuriedPoint('免费试用-强制关闭-放弃');
|
|
} else {
|
|
} else {
|
|
systemBuriedPoint('激活码-强制关闭-放弃');
|
|
systemBuriedPoint('激活码-强制关闭-放弃');
|
|
@@ -1078,7 +1079,7 @@
|
|
// 继续观看
|
|
// 继续观看
|
|
$('.looking')[0].addEventListener('click', () => {
|
|
$('.looking')[0].addEventListener('click', () => {
|
|
$('.look-wrap').eq(0).hide();
|
|
$('.look-wrap').eq(0).hide();
|
|
- if(sourceType == 1){
|
|
|
|
|
|
+ if (sourceType == 1) {
|
|
systemBuriedPoint('免费试用-强制关闭-继续观看');
|
|
systemBuriedPoint('免费试用-强制关闭-继续观看');
|
|
} else {
|
|
} else {
|
|
systemBuriedPoint('激活码-强制关闭-继续观看');
|
|
systemBuriedPoint('激活码-强制关闭-继续观看');
|
|
@@ -1086,19 +1087,19 @@
|
|
})
|
|
})
|
|
|
|
|
|
// 埋点
|
|
// 埋点
|
|
- function systemBuriedPoint(pointName){
|
|
|
|
|
|
+ function systemBuriedPoint(pointName) {
|
|
$.ajax({
|
|
$.ajax({
|
|
url: baseUrl + "/api/public/v1/systemBuriedPoint/stat",
|
|
url: baseUrl + "/api/public/v1/systemBuriedPoint/stat",
|
|
headers: {
|
|
headers: {
|
|
'Authorization': form.token
|
|
'Authorization': form.token
|
|
},
|
|
},
|
|
type: 'post',
|
|
type: 'post',
|
|
- data:JSON.stringify({
|
|
|
|
- pointName: pointName
|
|
|
|
- }),
|
|
|
|
- contentType:"application/json",
|
|
|
|
|
|
+ data: JSON.stringify({
|
|
|
|
+ pointName: pointName
|
|
|
|
+ }),
|
|
|
|
+ contentType: "application/json",
|
|
dataType: 'json',
|
|
dataType: 'json',
|
|
- success: function (res) {}
|
|
|
|
|
|
+ success: function (res) { }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1133,6 +1134,38 @@
|
|
level = 0;
|
|
level = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ var hidden, visibilityChange;
|
|
|
|
+ if (typeof document.hidden !== "undefined") { // Opera 12.10 and Firefox 18 and later support
|
|
|
|
+ hidden = "hidden";
|
|
|
|
+ visibilityChange = "visibilitychange";
|
|
|
|
+ } else if (typeof document.msHidden !== "undefined") {
|
|
|
|
+ hidden = "msHidden";
|
|
|
|
+ visibilityChange = "msvisibilitychange";
|
|
|
|
+ } else if (typeof document.webkitHidden !== "undefined") {
|
|
|
|
+ hidden = "webkitHidden";
|
|
|
|
+ visibilityChange = "webkitvisibilitychange";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // 处理页面可见属性的改变
|
|
|
|
+ document.addEventListener("visibilitychange", function () {
|
|
|
|
+ if (document[hidden]) {
|
|
|
|
+ if (navigator.userAgent.toLowerCase().includes('toutiaomicroapp')) {
|
|
|
|
+ tt.miniProgram.switchTab({
|
|
|
|
+ url: '/pages/home/home'
|
|
|
|
+ })
|
|
|
|
+ } else if (window.__wxjs_environment === 'miniprogram') {
|
|
|
|
+ wx.miniProgram.switchTab({
|
|
|
|
+ url: '/pages/home/home'
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ document.addEventListener('UniAppJSBridgeReady', function () {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/index/index'
|
|
|
|
+ });
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }, false);
|
|
window.onbeforeunload = function () {
|
|
window.onbeforeunload = function () {
|
|
wsss.close();
|
|
wsss.close();
|
|
decodeWoker.postMessage('close');
|
|
decodeWoker.postMessage('close');
|