Compare commits

..

2 Commits

Author SHA1 Message Date
dragon
a1ea33d64c 修复支付后弹窗依旧存在的问题 2024-07-18 15:16:40 +08:00
dragon
19726981ed 新增周卡 2024-07-18 15:16:40 +08:00
618 changed files with 6120 additions and 38473 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 236 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 212 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 215 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 602 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 311 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 492 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 480 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1012 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1013 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 462 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 478 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 506 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

View File

@@ -1,334 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title class="text1"></title>
<link rel="stylesheet" href="../../common/css/reset.css">
<link rel="stylesheet" href="./css/index.css">
</head>
<body>
<!-- 頂部返回 -->
<div class="back">
<img src="./images/travel/back.png" alt="">
</div>
<!-- 头部 -->
<div class="header">
<div class="ruleIcon"><i class="text2"></i></div>
<div class="tiem text3"></div>
</div>
<!-- 活动礼物 -->
<div class="giftBox">
<h3 class="text4"></h3>
<div class="textBox">
<img src="./images/VIP.png" alt="" class="vip">
<div class="p1 text5"></div>
<div class="p2 text6"></div>
</div>
<div class="giftList">
<div>
<div class="exp text48"></div>
<img src="./images/giftList1.png" alt="" class="gift newIMg1">
<p class="text7"></p>
<span>
<img src="./images/gold.png" alt="" class="gold">
<i class="text44"></i>
</span>
</div>
<div>
<div class="exp text49"></div>
<img src="./images/giftList2.png" alt="" class="gift newIMg2">
<p class="text8"></p>
<span>
<img src="./images/gold.png" alt="" class="gold">
<i class="text45"></i>
</span>
</div>
<div>
<div class="exp text50"></div>
<img src="./images/giftList3.png" alt="" class="gift newIMg3">
<p class="text9"></p>
<span>
<img src="./images/gold.png" alt="" class="gold">
<i class="text46"></i>
</span>
</div>
<div>
<div class="exp text51"></div>
<img src="./images/giftList4.png" alt="" class="gift newIMg4">
<p class="text10"></p>
<span>
<img src="./images/gold.png" alt="" class="gold">
<i class="text47"></i>
</span>
</div>
</div>
</div>
<!-- 等级 -->
<div class="listBox listBox1">
<div class="tab">
<div class="tab1 text19"></div>
<div class="tab2 text20"></div>
</div>
<h3><strong class="text21"> </strong><img src="./images/why.png" alt=""></h3>
<div class="expBox">
<img src="./images/dam.png" alt="" class="dam">
<div class="top">
<div class="l text11"></div>
<div class="r text12"></div>
</div>
<!-- == -->
<div class="bottom">
<div class="l">15<b class="text13"></b></div>
<div class="r">
<div class="gift_sbox">
<div class="title"><strong class="newtext1">7</strong><strong class="text22"></strong></div>
<img src="./images/ts.png" alt="" class="gift ts">
<p class="text14">头饰</p>
</div>
<div class="gift_sbox">
<div class="title"><strong class="newtexts1">7</strong><strong class="text22"></strong></div>
<img src="./images/qp.png" alt="" class="gift qp">
<p class="text15">气泡</p>
</div>
<div class="but act"></div>
</div>
</div>
<!-- == -->
<div class="bottom">
<div class="l">20<b class="text13"></b></div>
<div class="r">
<div class="gift_sbox">
<div class="title"><strong class="newtext2">7</strong><strong class="text22"></strong></div>
<img src="./images/ts.png" alt="" class="gift ts">
<p class="text14">头饰</p>
</div>
<div class="gift_sbox">
<!-- <div class="title">7<strong class="text22">天</strong></div> -->
<img src="./images/bigGold.png" alt="" class="gift">
<p><b class="newText11">*50</b></p>
</div>
<div class="but">已领取</div>
</div>
</div>
<!-- == -->
<div class="bottom">
<div class="l">25<b class="text13"></b></div>
<div class="r">
<div class="gift_sbox">
<div class="title"><strong class="newtext3">7</strong><strong class="text22"></strong></div>
<img src="./images/zj.png" alt="" class="gift zj">
<p class="text16">座駕</p>
</div>
<div class="gift_sbox">
<!-- <div class="title">7<strong class="text22">天</strong></div> -->
<img src="./images/bigGold.png" alt="" class="gift">
<p><b class="newText22">*100</b></p>
</div>
<div class="but">已领取</div>
</div>
</div>
<!-- == -->
<div class="bottom">
<div class="l">30<b class="text13"></b></div>
<div class="r">
<div class="gift_sbox">
<div class="title"><strong class="newtext4">7</strong><strong class="text22"></strong></div>
<img src="./images/xz.png" alt="" class="gift xz">
<p class="text17">勳章</p>
</div>
<div class="gift_sbox">
<!-- <div class="title">7<strong class="text22">天</strong></div> -->
<img src="./images/bigGold.png" alt="" class="gift">
<p><b class="newText33">*300</b></p>
</div>
<div class="but">已领取</div>
</div>
</div>
<!-- == -->
<div class="bottom">
<div class="l">35<b class="text13"></b></div>
<div class="r">
<div class="gift_sbox">
<div class="title"><strong class="newtext5">7</strong><strong class="text22"></strong></div>
<img src="./images/qp.png" alt="" class="gift qp">
<p class="text18">氣泡</p>
</div>
<div class="gift_sbox">
<!-- <div class="title">7<strong class="text22">天</strong></div> -->
<img src="./images/bigGold.png" alt="" class="gift">
<p><b class="newText44">*500</b></p>
</div>
<div class="but">已领取</div>
</div>
</div>
<!-- == -->
<div class="bottom">
<div class="l">40<b class="text13"></b></div>
<div class="r">
<div class="gift_sbox">
<div class="title"><strong class="newtext6">7</strong><strong class="text22"></strong></div>
<img src="./images/ts.png" alt="" class="gift ts">
<p class="text14">頭飾</p>
</div>
<div class="gift_sbox">
<!-- <div class="title">7<strong class="text22">天</strong></div> -->
<img src="./images/bigGold.png" alt="" class="gift">
<p><b class="newText55">*1000</b></p>
</div>
<div class="but">已领取</div>
</div>
</div>
<!-- == -->
<div class="bottom">
<div class="l">45<b class="text13"></b></div>
<div class="r">
<div class="gift_sbox">
<div class="title"><strong class="newtext7">7</strong><strong class="text22"></strong></div>
<img src="./images/zj.png" alt="" class="gift">
<p class="text16"></p>
</div>
<div class="gift_sbox">
<!-- <div class="title">7<strong class="text22">天</strong></div> -->
<img src="./images/bigGold.png" alt="" class="gift zj">
<p><b class="newText66">*1500</b></p>
</div>
<div class="but">已领取</div>
</div>
</div>
<!-- == -->
<div class="bottom">
<div class="l">50<b class="text13"></b></div>
<div class="r">
<div class="gift_sbox">
<div class="title"><strong class="newtext8">7</strong><strong class="text22"></strong></div>
<img src="./images/xz.png" alt="" class="gift xz">
<p class="text17">勳章</p>
</div>
<div class="gift_sbox">
<!-- <div class="title">7<strong class="text22">天</strong></div> -->
<img src="./images/bigGold.png" alt="" class="gift">
<p><b class="newText77">*2000</b></p>
</div>
<div class="but">已领取</div>
</div>
</div>
<div class="my">
<img src="./images/logo.png" alt="" class="tx">
<div class="user">
<p></p>
<div class="lineBox">
<img src="./images/line.png" alt="" class="line">
<div class="content"><strong class="text23"></strong> <b>70%</b></div>
</div>
<div class="exp">
<div><strong class="text24"></strong><b class="b1">0</b></div>
<div>LV.<b class="b2">0</b></div>
</div>
</div>
</div>
</div>
</div>
<!-- 榜单 -->
<div class="listBox2">
<!-- 切换 -->
<div class="tab">
<div class="tab1 text19"></div>
<div class="tab2 text20"></div>
</div>
<!-- 榜一奖励 -->
<div class="topReward">
<div class="listRule text25"></div>
</div>
<!-- 文案描述 -->
<div class="content1 text26"></div>
<div class="content2 text27"></div>
<!-- 前三 -->
<div class="top1">
<img src="./images/top1.png" alt="" class="ts">
<img src="./images/logo.png" alt="" class="tx">
<div class="nick"></div>
<div class="score">EXP:<b>0</b></div>
</div>
<div class="top2">
<img src="./images/top2.png" alt="" class="ts">
<img src="./images/logo.png" alt="" class="tx">
<div class="nick"></div>
<div class="score">EXP:<b>0</b></div>
</div>
<div class="top3">
<img src="./images/top3.png" alt="" class="ts">
<img src="./images/logo.png" alt="" class="tx">
<div class="nick"></div>
<div class="score">EXP:<b>0</b></div>
</div>
<!-- 非前三 -->
<ul>
<!-- <li>
<div class="num">TOP04</div>
<img src="./images/logo.png" alt="" class="tx">
<div class="nick"></div>
<div class="right">
<p>EXP值</p>
<span class="score">0</span>
</div>
</li> -->
</ul>
<!-- 自己 -->
<div class="my">
<div class="rank"></div>
<div class="num"></div>
<img src="./images/logo.png" alt="" class="tx">
<div class="nick"></div>
<div class="right">
<p></p>
<span class="score">0</span>
</div>
</div>
</div>
<!-- EXP疑问弹窗 -->
<div class="exp_pub">
<div class="exp_pub_in">
<div class="title text28"></div>
<h3 class="text29"></h3>
<div class="box">
<div class="top">
<div class="l text12">等级</div>
<div class="r text30"></div>
</div>
<!-- <div class="bottom">
<div class="l">1级</div>
<div class="r">5000</div>
</div> -->
</div>
</div>
</div>
<!-- 规则弹窗 -->
<div class="rule">
<div class="rule_in">
<div class="tab">
<div class="stab1 act1 text31"></div>
<div class="stab2 text32"></div>
</div>
<div class="box">
<img src="./images/rule1.png" alt="" class="img1">
<img src="./images/rule2.png" alt="" class="img2">
</div>
</div>
</div>
</body>
</html>
<script src="../../common/js/flexible.js"></script>
<script src="../../common/js/jquery-3.2.1.min.js"></script>
<script src="../../common/js/common2.js"></script>
<script src="../../common/js/layer.js"></script>
<script src="../../common/js/vconsole.min.js"></script>
<script src="../../common/js/route-constant.js"></script>
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./js/index.js?v=1.1"></script>
<script src="../../common/local/langHandler.js"></script>

View File

@@ -1,363 +0,0 @@
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 isLock = true;
var page = 1;
// 初始化函數
$(function () {
getInfoFromClient();
fuzzyMatchUpdateQueryStringParameterFun(); // 判断语言
setTimeout(function () {
// 頁面全屏
if (browser.app) {
if (browser.android) {
window.androidJsObj.initShowNav(false)
} else {
window.webkit.messageHandlers.initShowNav.postMessage(0)
}
};
// 頂部返回事件
$('.back img').click(() => {
if (browser.android) {
window.androidJsObj.closeWebView()
} else {
window.webkit.messageHandlers.closeWebView.postMessage(null)
}
})
fuzzyMatchUpdateQueryStringParameterFun(); // 判断语言
langReplace = window.lang.replace;
localLang = window.lang;
translateFun();
getConfig();
}, 100)
})
function translateFun() {
var langReplace = window.lang.replace;
var localLang = window.lang;
$('.text1').text(langReplace(localLang.demoModule.text1));
$('.text2').text(langReplace(localLang.demoModule.text2));
$('.text3').text(langReplace(localLang.demoModule.text3));
$('.text4').text(langReplace(localLang.demoModule.text4));
$('.text5').text(langReplace(localLang.demoModule.text5));
$('.text6').text(langReplace(localLang.demoModule.text6));
$('.text7').text(langReplace(localLang.demoModule.text7));
$('.text8').text(langReplace(localLang.demoModule.text8));
$('.text9').text(langReplace(localLang.demoModule.text9));
$('.text10').text(langReplace(localLang.demoModule.text10));
$('.text11').text(langReplace(localLang.demoModule.text11));
$('.text12').text(langReplace(localLang.demoModule.text12));
$('.text13').text(langReplace(localLang.demoModule.text13));
$('.text14').text(langReplace(localLang.demoModule.text14));
$('.text15').text(langReplace(localLang.demoModule.text15));
$('.text16').text(langReplace(localLang.demoModule.text16));
$('.text17').text(langReplace(localLang.demoModule.text17));
$('.text18').text(langReplace(localLang.demoModule.text18));
$('.text19').text(langReplace(localLang.demoModule.text19));
$('.text20').text(langReplace(localLang.demoModule.text20));
$('.text21').text(langReplace(localLang.demoModule.text21));
$('.text22').text(langReplace(localLang.demoModule.text22));
$('.text23').text(langReplace(localLang.demoModule.text23));
$('.text24').text(langReplace(localLang.demoModule.text24));
$('.text25').text(langReplace(localLang.demoModule.text25));
$('.text26').text(langReplace(localLang.demoModule.text26));
$('.text27').text(langReplace(localLang.demoModule.text27));
$('.text28').text(langReplace(localLang.demoModule.text28));
$('.text29').text(langReplace(localLang.demoModule.text29));
$('.text30').text(langReplace(localLang.demoModule.text30));
$('.text31').text(langReplace(localLang.demoModule.text31));
$('.text32').text(langReplace(localLang.demoModule.text32));
$('.text43').text(langReplace(localLang.demoModule.text43));
$('.text44').text(langReplace(localLang.demoModule.text44));
$('.text45').text(langReplace(localLang.demoModule.text45));
$('.text46').text(langReplace(localLang.demoModule.text46));
$('.text47').text(langReplace(localLang.demoModule.text47));
$('.text48').text(langReplace(localLang.demoModule.text48));
$('.text49').text(langReplace(localLang.demoModule.text49));
$('.text50').text(langReplace(localLang.demoModule.text50));
$('.text51').text(langReplace(localLang.demoModule.text51));
$('.newtext1').text(langReplace(localLang.demoModule.newtext1));
$('.newtexts1').text(langReplace(localLang.demoModule.newtexts1));
$('.newtext2').text(langReplace(localLang.demoModule.newtext2));
$('.newtext3').text(langReplace(localLang.demoModule.newtext3));
$('.newtext4').text(langReplace(localLang.demoModule.newtext4));
$('.newtext5').text(langReplace(localLang.demoModule.newtext5));
$('.newtext6').text(langReplace(localLang.demoModule.newtext6));
$('.newtext7').text(langReplace(localLang.demoModule.newtext7));
$('.newtext8').text(langReplace(localLang.demoModule.newtext8));
$('.newText11').text(langReplace(localLang.demoModule.newText11));
$('.newText22').text(langReplace(localLang.demoModule.newText22));
$('.newText33').text(langReplace(localLang.demoModule.newText33));
$('.newText44').text(langReplace(localLang.demoModule.newText44));
$('.newText55').text(langReplace(localLang.demoModule.newText55));
$('.newText66').text(langReplace(localLang.demoModule.newText66));
$('.newText77').text(langReplace(localLang.demoModule.newText77));
$('.header').attr('style', langReplace(localLang.demoModule.img1))
$('.giftBox').attr('style', langReplace(localLang.demoModule.img2))
$('.listBox2 .topReward').attr('style', langReplace(localLang.demoModule.img5))
$('.rule .rule_in .box .img1').attr('src', langReplace(localLang.demoModule.img3))
$('.rule .rule_in .box .img2').attr('src', langReplace(localLang.demoModule.img4))
$('.newIMg1').attr('src', langReplace(localLang.demoModule.newIMg1))
$('.newIMg2').attr('src', langReplace(localLang.demoModule.newIMg2))
$('.newIMg3').attr('src', langReplace(localLang.demoModule.newIMg3))
$('.newIMg4').attr('src', langReplace(localLang.demoModule.newIMg4))
}
// 配置接口
function getConfig() {
showLoading()
networkRequest({
type: 'get',
url: urlPrefix + '/act/expBattle/getConfig',
success(res) {
if (res.code === 200) {
// 活动结束
if ((res.data.endTime - res.timestamp) <= 0) {
$('.header .tiem').text(langReplace(localLang.demoModule.text33));
}
var me = res.data.me
// 处理自己
$('.listBox .expBox .my .tx').attr('src', me.avatar);
$('.listBox .expBox .my .user p').text(me.nick);
$('.listBox .expBox .my .user .exp .b1').text(me.level);
$('.listBox .expBox .my .user .exp .b2').text(me.level + 1);
if (me.level >= 50) {
$('.listBox .expBox .my .user .exp .b2').text(me.level);
}
// 处理任务状态
var levelTaskStatusMap = res.data.levelTaskStatusMap;
const sortedKeys = Object.keys(levelTaskStatusMap).sort((a, b) => Number(a) - Number(b));
const sortedObj = {};
sortedKeys.forEach(key => {
sortedObj[key] = levelTaskStatusMap[key];
});
Object.getOwnPropertyNames(sortedObj).forEach((res, i) => {
if (sortedObj[res] == 0) {
$(`.listBox .expBox .bottom`).eq(i).children('.r').children('.but').removeClass('act');
$(`.listBox .expBox .bottom`).eq(i).children('.r').children('.but').text(langReplace(localLang.demoModule.text34));
} else if (sortedObj[res] == 1) {
$(`.listBox .expBox .bottom`).eq(i).children('.r').children('.but').addClass('act');
$(`.listBox .expBox .bottom`).eq(i).children('.r').children('.but').text(langReplace(localLang.demoModule.text34));
$(`.listBox .expBox .bottom`).eq(i).children('.r').children('.but').attr("status", sortedObj[res]);
$(`.listBox .expBox .bottom`).eq(i).children('.r').children('.but').attr("leve", Object.keys(sortedObj)[i]);
} else {
$(`.listBox .expBox .bottom`).eq(i).children('.r').children('.but').removeClass('act');
$(`.listBox .expBox .bottom`).eq(i).children('.r').children('.but').text(langReplace(localLang.demoModule.text35));
}
})
// 处理等级
var expLevelMap = res.data.expLevelMap;
const sortedKeys1 = Object.keys(expLevelMap).sort((a, b) => Number(a) - Number(b));
const sortedObj1 = {};
sortedKeys1.forEach(key => {
sortedObj1[key] = expLevelMap[key];
});
var str = '';
$('.exp_pub .exp_pub_in .box .bottom').remove();
for (const key in sortedObj1) {
if (sortedObj1.hasOwnProperty(key)) { // 仅遍历对象自身的属性,不包括继承的属性
const value = sortedObj1[key];
str += `
<div class="bottom">
<div class="l">${value}${langReplace(localLang.demoModule.text13)}</div>
<div class="r">${key}</div>
</div>
`
}
}
$('.exp_pub .exp_pub_in .box').append(str)
console.log(sortedKeys1);
$(`.listBox .expBox .my .user .lineBox .content b`).text(`${me.score}/${sortedKeys1[me.level]}`)
$('.listBox .expBox .my .user .lineBox .line').css('width', `${(me.score / sortedKeys1[me.level] * 100) > 100 ? 100 : me.score / sortedKeys1[me.level] * 100}%`)
if (me.level >= 50) {
$(`.listBox .expBox .my .user .lineBox .content b`).text(me.score);
$('.listBox .expBox .my .user .lineBox .line').css('width', `${100}%`)
}
} else {
toastMsg(res.message)
}
hideLoading(layerIndex)
},
error(err) {
hideLoading(layerIndex)
toastMsg(langReplace(localLang.demoModule.layerIndex3))
}
})
}
// 打开EXP疑问弹窗
$('.listBox h3 img').click(function () {
$('.exp_pub').show();
bodyScroolFun(true);
})
// 关闭EXP疑问弹窗
$('.exp_pub').click(function () {
$('.exp_pub').hide();
bodyScroolFun(false);
})
// 榜单接口
function getRank() {
showLoading()
networkRequest({
type: 'get',
url: urlPrefix + '/act/expBattle/getRank',
success(res) {
if (res.code === 200) {
var my = res.data.meRank;
var listTo3 = res.data.rankList.slice(0, 3);
var notListTo3 = res.data.rankList.slice(3);
if (listTo3.length < 3) {
let arr = new Array(3 - listTo3.length).fill({
avatar: './images/logo.png',
nick: langReplace(localLang.demoModule.text36),
score: 0
})
listTo3.push(...arr)
}
// 处理前三
listTo3.forEach((res, i) => {
$(`.listBox2 .top${i + 1} .tx`).attr('src', res.avatar);
$(`.listBox2 .top${i + 1} .nick`).text(res.nick);
$(`.listBox2 .top${i + 1} .score b`).text(unitProcessingAr(res.score, 1));
})
// 非前三
$('.listBox2 ul li').remove();
var str = '';
notListTo3.forEach(res => {
str += `
<li>
<div class="num">TOP${res.ranking}</div>
<img src="${res.avatar}" alt="" class="tx">
<div class="nick">${res.nick}</div>
<div class="right">
<p>${langReplace(localLang.demoModule.text37)}</p>
<span class="score">${unitProcessingAr(res.score, 1)}</span>
</div>
</li>
`
})
$('.listBox2 ul').append(str);
// 处理自己
if (my.ranking == 0) {
if (res.data.rankList.length == 0) {
$('.listBox2 .my .rank').text(`${langReplace(localLang.demoModule.text38)}0EXP`);
} else {
$('.listBox2 .my .rank').text(`${langReplace(localLang.demoModule.text39)}${unitProcessingAr(res.data.rankList[res.data.rankList.length - 1].score - my.score)}EXP`);
}
} else {
if (my.ranking == 1) {
$('.listBox2 .my .rank').text(`${langReplace(localLang.demoModule.text40)}${unitProcessingAr(my.score - res.data.rankList[1].score, 1)}EXP`);
} else {
$('.listBox2 .my .rank').text(`${langReplace(localLang.demoModule.text41)}${unitProcessingAr(res.data.rankList[my.ranking - 2].score - my.score)}EXP`);
}
}
$('.listBox2 .my .num').text(my.ranking == 0 ? langReplace(localLang.demoModule.text42) : `TOP${my.ranking}`)
$('.listBox2 .my .tx').attr('src', my.avatar);
$('.listBox2 .my .nick').text(my.nick)
$('.listBox2 .my .score').text(unitProcessingAr(my.score, 1))
} else {
toastMsg(res.message)
}
hideLoading(layerIndex)
},
error(err) {
hideLoading(layerIndex)
toastMsg(langReplace(localLang.demoModule.layerIndex3))
}
})
}
// 切换等级和榜单
$('.listBox .tab div,.listBox2 .tab div').click(function () {
var i = $(this).index() + 1;
$('.listBox2,.listBox1').hide()
$(`.listBox${i}`).show();
if (i == 2) {
getRank();
}
})
// 领取奖励按钮
$('.listBox .expBox .bottom .r .but').click(function () {
var status = $(this).attr('status');
var leve = $(this).attr('leve');
if (status == 1) {
getReward(leve);
}
})
// 领取接口
function getReward(level) {
showLoading()
networkRequest({
type: 'post',
url: urlPrefix + '/act/expBattle/getReward',
data: { level },
success(res) {
if (res.code === 200) {
getConfig();
toastMsg(langReplace(localLang.demoModule.text43));
} else {
toastMsg(res.message)
}
hideLoading(layerIndex)
},
error(err) {
hideLoading(layerIndex)
toastMsg(langReplace(localLang.demoModule.layerIndex3))
}
})
}
// 打开活动规则
$('.header .ruleIcon').click(function () {
$('.rule .rule_in .tab div').removeClass('act1').removeClass('act2');
$('.rule .rule_in .tab .stab1 ').addClass(`act1`);
$(`.rule .rule_in .box .img1`).show().siblings().hide();
$('.rule').show();
bodyScroolFun(true);
})
// 打开榜单规则
$('.listBox2 .topReward .listRule').click(function () {
$('.rule .rule_in .tab div').removeClass('act1').removeClass('act2');
$('.rule .rule_in .tab .stab2 ').addClass(`act2`);
$(`.rule .rule_in .box .img2`).show().siblings().hide();
$('.rule').show();
bodyScroolFun(true);
})
// 关闭活动规则
$('.rule').click(function () {
$('.rule').hide();
bodyScroolFun(false);
return false
})
// 切换规则
$('.rule .rule_in .tab div').click(function () {
var i = $(this).index() + 1;
$('.rule .rule_in .tab div').removeClass('act1').removeClass('act2');
$(this).addClass(`act${i}`);
$(`.rule .rule_in .box .img${i}`).show().siblings().hide();
return false
})

View File

@@ -1,86 +0,0 @@
// 阿拉伯
langAr = {
// 模块
demoModule: {
layerIndex1: `جار التحميل...`,
layerIndex2: `تم العملية بنجاح`,
layerIndex3: `خطأ في الشبكة`,
img1: `background: url(./images/header_ar.png) no-repeat;background-size: 100% 100%;`,
img2: `background: url(./images/giftBg_ar.png) no-repeat;background-size: 100% 100%;`,
img5: `background: url(./images/topReward_ar.png) no-repeat;background-size: 100% 100%;`,
img3: `./images/rule1_ar.png`,
img4: `./images/rule2_ar.png`,
newIMg1:`./images/giftList1_ar.png`,
newIMg2:`./images/giftList2_ar.png`,
newIMg3:`./images/giftList3_ar.png`,
newIMg4:`./images/giftList4_ar.png`,
text1: `تحدى زيادة المستوى`,
text2: `قاعدة`,
text3: `وقت النشاط:2024.08.13 إلى 08.22`,
text4: `ارسال هديا ،لزيادة المستوى`,
text5: `مستخدم vip:يمكنه ارسال هديا الحدث والحصول على اعلي نقاط`,
text6: `509564EXP!`,
text7: `خاتم القمر`,
text8: `نجوم الفضاء `,
text9: `الفضائى`,
text10: `ملك الفضاء`,
text11: `مستوى`,
text12: `مكافئات`,
text13: `مستوى`,
text14: `اطارات`,
text15: `فقاعة محادثة`,
text16: `دخولية`,
text17: `وسام`,
text18: `فقاعة محادثة`,
text19: `مكافئة الحدث`,
text20: `ترتيب `,
text21: `(الوصول للمستوايات التالية يمكنك الحصول علي مكافئة)`,
text22: `سماء`,
// text23: `باقى على المستوى القادم`,
text23: ` `,
text24: `الحالي:LV.`,
text25: `قراءة المزيد`,
text26: `تبعا لهدايا الحدث المرسلة هيكون هناك ترتيب للحدث`,
text27: `(اول 50 مستخدم في قائمة الحدث يمكنهم الحصول علي جوائز)`,
text28: `نقاط المستوى `,
text29: `(ارسال هدايا وازداد فى نقاط المستوى)`,
text30: `جميع النقاط`,
text31: `قواعد الحدث`,
text32: `مكافئات الترتيب`,
text33: `انتهاء الحدث`,
text34: `احصل على `,
text35: `تم الحصول `,
text36: ` `,
text37: `قيمة الخبرة`,
text38: `باقى على الظهور في الترتيب :`,
text39: `باقى على الظهور في الترتيب :`,
text40: `لازالت تحتاج الى : لتظهر بقائمة الترتيب`,
text41: `باقى على الظهور في الترتيب :`,
text42: `غير مدرج`,
text43: `لقد حصلت علي المكافئة بنجاح`,
text44: `30`,
text45: `150`,
text46: `1200`,
text47: `13999`,
text48: `300 EXP`,
text49: `2250 EXP`,
text50: `26400 EXP`,
text51: `391972 EXP`,
newtext1:`7`,
newtexts1:`7`,
newtext2:`7`,
newtext3:`14`,
newtext4:`14`,
newtext5:`30`,
newtext6:`30`,
newtext7:`30`,
newtext8:`30`,
newText11:`*50`,
newText22:`*100`,
newText33:`*300`,
newText44:`*500`,
newText55:`*1000`,
newText66:`*1500`,
newText77:`*2000`,
}
}

View File

@@ -1,84 +0,0 @@
langEn = {
demoModule: {
layerIndex1: `Loading...`,
layerIndex2: `Success`,
layerIndex3: `Network error`,
img1: `background: url(./images/header_en.png) no-repeat;background-size: 100% 100%;`,
img2: `background: url(./images/giftBg_en.png) no-repeat;background-size: 100% 100%;`,
img5: `background: url(./images/topReward_en.png) no-repeat;background-size: 100% 100%;`,
img3: `./images/rule1_en.png`,
img4: `./images/rule2_en.png`,
newIMg1:`./images/giftList1_en.png`,
newIMg2:`./images/giftList2_en.png`,
newIMg3:`./images/giftList3_en.png`,
newIMg4:`./images/giftList4_en.png`,
text1: `level event`,
text2: `rule`,
text3: `the time of event :2024.08.13-2024.08.22`,
text4: `Send following gifts to get EXP`,
text5: ` VIP5-9 can get additional EXP, UP TO`,
text6: `1001000EXP!`,
text7: `Moon ring`,
text8: `Crystal Moon`,
text9: `Interstellar`,
text10: `Interstellar Overlord`,
text11: `level`,
text12: `reward`,
text13: `Level`,
text14: `AvatarFr`,
text15: `Chat bubble`,
text16: `Mount`,
text17: `Medal`,
text18: `Chat bubble`,
text19: `Level's rewards`,
text20: `Ranking`,
text21: `(When u reach these levels ,u can get these gifts)`,
text22: `days`,
// text23: `u still need ....exp to reach the next level`,
text23: ` `,
text24: `Current:LV.`,
text25: `more detalis`,
text26: `Ranked according to the EXP increased by sending event gifts. the higher the EXP, the higher the rank`,
text27: `(The top 50 will receive more rewards)`,
text28: `EXP Points`,
text29: `(Send following gifts to get EXP ,and get rewards)`,
text30: `The all expx points`,
text31: `The event rules`,
text32: `Leaderboard rewards`,
text33: `End of event`,
text34: `get it`,
text35: `Received`,
text36: ` `,
text37: `EXP value`,
text38: `u still need points to surpass the next user:`,
text39: `u still need points to surpass the next user:`,
text40: `u are Ahead of second place by points `,
text41: `u still need points to be in the ranking list:`,
text42: `not ranked`,
text43: `You've successfully claimed your reward!`,
text44: `1333`,
text45: `5000`,
text46: `12000`,
text47: `27500`,
text48: `13330 EXP`,
text49: `75000 EXP`,
text50: `264000 EXP`,
text51: `770000 EXP`,
newtext1:`7`,
newtexts1:`7`,
newtext2:`7`,
newtext3:`14`,
newtext4:`14`,
newtext5:`30`,
newtext6:`30`,
newtext7:`30`,
newtext8:`30`,
newText11:`*50`,
newText22:`*100`,
newText33:`*300`,
newText44:`*500`,
newText55:`*1000`,
newText66:`*1500`,
newText77:`*2000`,
}
}

View File

@@ -1,86 +0,0 @@
// 中文
langZh = {
// 模塊
demoModule: {
layerIndex1: `加載中...`,
layerIndex2: `操作成功`,
layerIndex3: `網絡錯誤`,
img1: `background: url(./images/header.png) no-repeat;background-size: 100% 100%;`,
img2: `background: url(./images/giftBg.png) no-repeat;background-size: 100% 100%;`,
img5: `background: url(./images/topReward.png) no-repeat;background-size: 100% 100%;`,
img3: `./images/rule1.png`,
img4: `./images/rule2.png`,
newIMg1: `./images/giftList1.png`,
newIMg2: `./images/giftList2.png`,
newIMg3: `./images/giftList3.png`,
newIMg4: `./images/giftList4.png`,
text1: `加速之戰`,
text2: `規則`,
text3: `活動時間:2024.08.13-08.22`,
text4: `送禮物,增加EXP`,
text5: `VIP用戶送出活動禮物最高可獲得`,
text6: `1892800EXP!`,
text7: `星芒石`,
text8: `聖魔權杖`,
text9: `浩瀚星河`,
text10: `星辰之力`,
text11: `等級`,
text12: `獎勵`,
text13: ``,
text14: `頭飾`,
text15: `氣泡`,
text16: `座駕`,
text17: `勳章`,
text18: `氣泡`,
text19: `等級獎勵`,
text20: `榜單`,
text21: `(達到以下等級即可領取獎勵)`,
text22: ``,
// text23: `距離下一等級還差`,
text23: ` `,
text24: `當前:LV.`,
text25: `查看更多`,
text26: `根據送出活動禮物增加的EXP進行排名EXP越高排序越靠前`,
text27: `(EXP最多的前TOP50名用戶將會獲得活動獎勵)`,
text28: `EXP等級`,
text29: `(送禮物增加EXP達到等級領取獎勵)`,
text30: `需要的EXP`,
text31: `活動規則`,
text32: `榜單獎勵`,
text33: `活動結束`,
text34: `領取`,
text35: `已領取`,
text36: `虛位以待`,
text37: `EXP值`,
text38: `距離上榜還差:`,
text39: `距離上榜還差:`,
text40: `領先第二名:`,
text41: `距上一名還差:`,
text42: `未上榜`,
text43: `您已成功領取獎勵`,
text44: `990`,
text45: `5200`,
text46: `13140`,
text47: `52000`,
text48: `9900 EXP`,
text49: `78000 EXP`,
text50: `289080 EXP`,
text51: `1456000 EXP`,
newtext1: `7`,
newtexts1: `7`,
newtext2: `7`,
newtext3: `14`,
newtext4: `14`,
newtext5: `30`,
newtext6: `30`,
newtext7: `30`,
newtext8: `30`,
newText11: `*100`,
newText22: `*500`,
newText33: `*1000`,
newText44: `*5000`,
newText55: `*10000`,
newText66: `*15000`,
newText77: `*20000`,
},
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1002 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1004 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 327 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 490 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 222 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 643 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 641 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Some files were not shown because too many files have changed in this diff Show More