2024-10-29 19:17:08 +08:00
|
|
|
let urlPrefix = getUrlPrefix()
|
|
|
|
let browser = checkVersion()
|
|
|
|
let env = EnvCheck();
|
|
|
|
if (env == 'test') {
|
|
|
|
new VConsole();
|
|
|
|
}
|
|
|
|
// 封裝layer消息提醒框
|
|
|
|
let layerIndex
|
|
|
|
var langReplace;
|
|
|
|
var localLang;
|
|
|
|
const showLoading = (content = langReplace(localLang.demoModule.layerIndex1)) => {
|
|
|
|
layer.open({
|
|
|
|
type: 2,
|
|
|
|
shadeClose: false,
|
|
|
|
content,
|
|
|
|
success(e) {
|
|
|
|
layerIndex = $(e).attr('index')
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
const hideLoading = (index) => {
|
|
|
|
layer.close(index)
|
|
|
|
}
|
|
|
|
const toastMsg = (content = langReplace(localLang.demoModule.layerIndex2), time = 2) => {
|
|
|
|
layer.open({
|
|
|
|
content,
|
|
|
|
time,
|
|
|
|
skin: 'msg'
|
|
|
|
})
|
|
|
|
}
|
|
|
|
var countupTime;//倒计时容器
|
|
|
|
var page = 0;
|
|
|
|
var maxPage = 0;
|
|
|
|
var arr = [];
|
|
|
|
var music = true;
|
|
|
|
// 初始化函數
|
|
|
|
$(function () {
|
|
|
|
getInfoFromClient();
|
|
|
|
fuzzyMatchUpdateQueryStringParameterFun(); // 判断语言
|
|
|
|
setTimeout(function () {
|
|
|
|
// 頁面全屏
|
|
|
|
if (browser.app) {
|
|
|
|
if (browser.android) {
|
|
|
|
window.androidJsObj.initShowNav(false)
|
|
|
|
} else {
|
|
|
|
window.webkit.messageHandlers.initShowNav.postMessage(0)
|
|
|
|
}
|
|
|
|
};
|
|
|
|
// 頂部返回事件
|
|
|
|
$('.back .backIcon').click(() => {
|
|
|
|
window.history.back()
|
|
|
|
})
|
|
|
|
fuzzyMatchUpdateQueryStringParameterFun(); // 判断语言
|
|
|
|
langReplace = window.lang.replace;
|
|
|
|
localLang = window.lang;
|
|
|
|
translateFun();
|
|
|
|
}, 100)
|
|
|
|
})
|
|
|
|
function translateFun() {
|
|
|
|
var langReplace = window.lang.replace;
|
|
|
|
var localLang = window.lang;
|
|
|
|
$('.text1').text(langReplace(localLang.weeklyRewardsRule.text1));
|
2025-09-02 14:42:54 +08:00
|
|
|
$('.text3').attr('src', langReplace(localLang.weeklyRewardsRule.text3));
|
|
|
|
$('.text2').html(langReplace(localLang.weeklyRewardsRule.text2));
|
|
|
|
$('.textNew').html(langReplace(localLang.weeklyRewardsRule.textNew));
|
|
|
|
|
|
|
|
// if(window.localStorage.getItem('partitionId') == 16){
|
|
|
|
// $('.text2').html(langReplace(localLang.weeklyRewardsRule.text22));
|
|
|
|
// }else{
|
|
|
|
// $('.text2').html(langReplace(localLang.weeklyRewardsRule.text2));
|
|
|
|
// if (window.localStorage.getItem('partitionId') == 2) {
|
|
|
|
// $('.text3').attr('src', langReplace(localLang.weeklyRewardsRule.text3));
|
|
|
|
// } else if (window.localStorage.getItem('partitionId') == 8) {
|
|
|
|
// $('.text3').attr('src', langReplace(localLang.weeklyRewardsRule.text33));
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
2024-12-09 17:46:53 +08:00
|
|
|
|
2024-10-29 19:17:08 +08:00
|
|
|
}
|