新增跳转动态类型

This commit is contained in:
Dragon
2023-09-25 16:40:35 +08:00
parent f4acb25b48
commit 5bbc1e5c68
3 changed files with 11 additions and 8 deletions

View File

@@ -499,7 +499,6 @@ function drawPageRecord (page) {
drawPageSizeLack = false; drawPageSizeLack = false;
hideLoading(layerIndex) hideLoading(layerIndex)
$('.duihuanBg .dividerecordsBg_in .ul').append(str); $('.duihuanBg .dividerecordsBg_in .ul').append(str);
drawPageSizeLack = true;
$('.duihuanBg').show(); $('.duihuanBg').show();
return; return;
} }
@@ -664,15 +663,15 @@ $('.page1 .play2 .playBox2 .task .taks2 .but').click(function () {
return; return;
} }
if (browser.android) { if (browser.android) {
if (JSON.parse(pubInfo.deviceInfo).appVersionCode >= 200) { console.log(pubInfo.deviceInfo.appVersion.replace(".", "").replace(".", ""));
if (androidJsObj && typeof androidJsObj === 'object') { if (pubInfo.deviceInfo.appVersion.replace(".", "").replace(".", "") >= 200) {
tools.nativeUtils.jumpAppointPage('DONG_TAI', dynamicWorldId); tools.nativeUtils.jumpAppointPage('DONG_TAI', dynamicWorldId);
}
} else { } else {
toastMsg('請前往論壇發佈話題圖文'); toastMsg('請前往論壇發佈話題圖文');
} }
} else if (browser.ios) { } else if (browser.ios) {
if (pubInfo.deviceInfo.appVersion.replace(".", "").replace(".", "") >= 1014) { console.log(pubInfo.deviceInfo.appVersion.replace(".", "").replace(".", ""));
if (pubInfo.deviceInfo.appVersion.replace(".", "").replace(".", "") >= 20000) {
window.webkit.messageHandlers.jumpAppointPage.postMessage(JSON.stringify({ routerType: 75, routerVal: dynamicWorldId })) window.webkit.messageHandlers.jumpAppointPage.postMessage(JSON.stringify({ routerType: 75, routerVal: dynamicWorldId }))
} else { } else {
toastMsg('請前往論壇發佈話題圖文'); toastMsg('請前往論壇發佈話題圖文');

View File

@@ -1,5 +1,6 @@
var baba = document.querySelector('body'); var baba = document.querySelector('body');
baba.addEventListener('click', function (e) { baba.addEventListener('click', function (e) {
$('body,html').css({"width":"100%","position": "relative", "overflow": "hidden" });
tianJia(e); tianJia(e);
}) })
@@ -32,7 +33,7 @@ function move () {
// erZi[i].scale = erZi[i].scale + 0.0001; // erZi[i].scale = erZi[i].scale + 0.0001;
erZi[i].el.style.cssText = ` erZi[i].el.style.cssText = `
top: ${erZi[i].top}px; top: ${erZi[i].top}px;
left: ${erZi[i].left+10}px; left: ${erZi[i].left + 10}px;
color: ${erZi[i].color}; color: ${erZi[i].color};
opacity: ${erZi[i].opacity}; opacity: ${erZi[i].opacity};
transform: scale(${erZi[i].scale}); transform: scale(${erZi[i].scale});
@@ -40,5 +41,6 @@ function move () {
` `
} }
$('body,html').css({"width":"100%","position": "relative", "overflow": "auto" });
window.requestAnimationFrame(move); window.requestAnimationFrame(move);
} }

View File

@@ -22,5 +22,7 @@ var routeTypeConstant = {
RECOMMEND_CARD_PAGE: 20, //跳转到推荐卡仓库 RECOMMEND_CARD_PAGE: 20, //跳转到推荐卡仓库
TEACHER_PUPIL_PAGE: 28, //跳转到师徒页面入口 TEACHER_PUPIL_PAGE: 28, //跳转到师徒页面入口
WORLD_GROUND_PAGE: 47, //跳转小世界广场 WORLD_GROUND_PAGE: 47, //跳转小世界广场
VOICE_PAGE: 42 //声音瓶子 VOICE_PAGE: 42, //声音瓶子
DONG_SET: 75, //跳转设置
DONG_TAI: 76 //跳转设置
} }