初始化分享落地页

This commit is contained in:
chenruiye
2025-03-13 15:53:56 +08:00
parent 6ea6a2a8fc
commit 3ca21d1be7
21 changed files with 997 additions and 674 deletions

View File

@@ -1,6 +1,175 @@
@charset "UTF-8";
html,
body {
width: 100%;
background: #bbb; }
background: #E01F3F;
}
/*# sourceMappingURL=index.css.map */
.game_boxwrap {
padding: 0 0.4rem;
position: relative;
}
.game_boxwrap .gameImg {
width: 100%;
}
.game_boxwrap .wrap {
background: linear-gradient(0deg, #FEFEFD, #FFF4CD);
border-radius: 0.4266666667rem;
position: absolute;
top: 90%;
width: 9.2rem;
}
.game_boxwrap .wrap .game_item {
background: linear-gradient(0deg, #FFFCED, #FEF3BD);
border-radius: 0.3466666667rem;
border: 0.0266666667rem solid #FFAB6B;
margin: 0.2666666667rem;
margin-bottom: 0;
}
.game_boxwrap .wrap .game_content {
margin: 0.2666666667rem 0.2666666667rem 0.2666666667rem 0.4rem;
}
.game_boxwrap .wrap .game_content .flex_box {
display: flex;
align-items: center;
}
.game_boxwrap .wrap .game_content .flex_box .info img {
width: 1.0666666667rem;
height: 1.0666666667rem;
border-radius: 50%;
}
.game_boxwrap .wrap .game_content .flex_box .info .name {
font-family: PingFang SC;
font-weight: 400;
font-size: 0.32rem;
color: #381600;
text-align: center;
}
.game_boxwrap .wrap .game_content .flex_box .right {
display: flex;
align-items: center;
justify-content: center;
}
.game_boxwrap .wrap .game_content .flex_box .right .win {
width: 1.3333333333rem;
height: 0.5333333333rem;
margin: 0 0.2133333333rem;
}
.game_boxwrap .wrap .game_content .flex_box .right .game_link {
width: 1.28rem;
height: 1.28rem;
}
.game_boxwrap .wrap .game_content .flex_box .right .coins {
font-family: PingFang SC;
font-weight: 600;
font-size: 0.6666666667rem;
color: #D9000A;
margin: 0 0.2133333333rem;
}
.game_boxwrap .wrap .game_content .tip {
font-family: PingFang SC;
font-weight: 400;
font-size: 0.32rem;
color: #A7A493;
text-align: center;
margin-top: 0.2666666667rem;
}
.gift_boxwrap {
padding: 0 0.4rem;
position: relative;
margin-top: 2rem;
}
.gift_boxwrap .giftImg {
width: 100%;
}
.gift_boxwrap .wrap {
background: linear-gradient(0deg, #FEFEFD, #FFF4CD);
border-radius: 0.4266666667rem;
position: absolute;
top: 90%;
width: 9.2rem;
}
.gift_boxwrap .wrap #gift_item {
height: 2.6666666667rem;
/* 设置一个固定高度 */
overflow: hidden;
}
.gift_boxwrap .wrap .gift_content {
position: relative;
transition: top 1s ease-in-out;
will-change: transform;
margin-top: 0.3466666667rem;
}
.gift_boxwrap .wrap .gift_content .flex_box {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: 0.64rem;
left: 0.4rem;
z-index: 99;
}
.gift_boxwrap .wrap .gift_content .flex_box .left img {
width: 1.1733333333rem;
height: 1.1733333333rem;
border-radius: 50%;
}
.gift_boxwrap .wrap .gift_content .flex_box .right {
margin-left: 0.2666666667rem;
}
.gift_boxwrap .wrap .gift_content .flex_box .right .txt,
.gift_boxwrap .wrap .gift_content .flex_box .right .txt2 {
font-family: PingFang SC;
font-weight: 500;
font-size: 0.3733333333rem;
color: #FFFFFF;
}
.gift_boxwrap .wrap .gift_content .flex_box .right .txt2 {
margin-top: 0.1333333333rem;
}
.gift_boxwrap .wrap .gift_content .yuan_box {
position: absolute;
left: 6.6666666667rem;
bottom: -0.1333333333rem;
}
.gift_boxwrap .wrap .gift_content .yuan_box .gift_yuan {
width: 2.4533333333rem;
position: relative;
}
.gift_boxwrap .wrap .gift_content .yuan_box .yuan_txt {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.gift_boxwrap .wrap .gift_content .yuan_box .yuan_txt .yuan_num {
font-family: PingFang SC;
font-weight: 500;
font-size: 0.48rem;
color: #FDF565;
}
.gift_boxwrap .wrap .gift_content .yuan_box .yuan_txt .yuan_coins {
font-family: PingFang SC;
font-weight: 500;
font-size: 0.32rem;
color: #FFFFFF;
text-align: center;
}
.gift_boxwrap .wrap .content.show {
transform: translateY(0);
}
.gift_boxwrap .wrap .content.hide {
transform: translateY(-100%);
}
.txt_bottom {
font-family: PingFang SC;
font-weight: 400;
font-size: 0.3466666667rem;
color: #A7A493;
padding: 0.4266666667rem 0.2933333333rem;
}
.txt_bottom div {
margin-bottom: 0.1333333333rem;
}

View File

@@ -1,9 +1,228 @@
@function px2rem($px) {
@return $px / 75 + rem;
@return $px / 75+rem;
}
html,
body {
width: 100%;
background: #bbb;
background: #E01F3F;
// padding: 0 px2rem(30);
}
.header {
.headerImg {
// width: 100%;
}
}
.game_boxwrap {
padding: 0 px2rem(30);
position: relative;
// height: px2rem(500);
.gameImg {
width: 100%;
}
.wrap {
background: linear-gradient(0deg, #FEFEFD, #FFF4CD);
border-radius: px2rem(32);
position: absolute;
top: 90%;
width: px2rem(690);
.game_item {
background: linear-gradient(0deg, #FFFCED, #FEF3BD);
border-radius: px2rem(26);
border: px2rem(2) solid #FFAB6B;
margin: px2rem(20);
margin-bottom: 0;
}
.game_content {
margin: px2rem(20) px2rem(20) px2rem(20) px2rem(30);
.flex_box {
display: flex;
align-items: center;
.info {
img {
width: px2rem(80);
height: px2rem(80);
border-radius: 50%;
}
.name {
font-family: PingFang SC;
font-weight: 400;
font-size: px2rem(24);
color: #381600;
text-align: center;
}
}
.right {
display: flex;
align-items: center;
justify-content: center;
.win {
width: px2rem(100);
height: px2rem(40);
margin: 0 px2rem(16);
}
.game_link {
width: px2rem(96);
height: px2rem(96);
}
.coins {
font-family: PingFang SC;
font-weight: 600;
font-size: px2rem(50);
color: #D9000A;
margin: 0 px2rem(16);
}
}
}
.tip {
font-family: PingFang SC;
font-weight: 400;
font-size: px2rem(24);
color: #A7A493;
text-align: center;
margin-top: px2rem(20);
}
}
}
}
.gift_boxwrap {
padding: 0 px2rem(30);
position: relative;
margin-top: px2rem(150);
.giftImg {
width: 100%;
}
.wrap {
background: linear-gradient(0deg, #FEFEFD, #FFF4CD);
border-radius: px2rem(32);
position: absolute;
top: 90%;
width: px2rem(690);
#gift_item {
height: px2rem(200);
/* 设置一个固定高度 */
overflow: hidden;
}
.gift_content {
// margin-top: px2rem(30);
position: relative;
transition: top 1s ease-in-out;
will-change: transform;
// transition: transform 1s ease;
// transform: translateY(0);
margin-top: px2rem(26);
.flex_box {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: px2rem(48);
left: px2rem(30);
z-index: 99;
.left {
img {
width: px2rem(88);
height: px2rem(88);
border-radius: 50%;
}
}
.right {
margin-left: px2rem(20);
.txt,
.txt2 {
font-family: PingFang SC;
font-weight: 500;
font-size: px2rem(28);
color: #FFFFFF;
}
.txt2 {
margin-top: px2rem(10);
}
}
}
.gift_chang {}
.yuan_box {
position: absolute;
left: px2rem(500);
bottom: px2rem(-10);
.gift_yuan {
width: px2rem(184);
position: relative;
}
.yuan_txt {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
.yuan_num {
font-family: PingFang SC;
font-weight: 500;
font-size: px2rem(36);
color: #FDF565;
}
.yuan_coins {
font-family: PingFang SC;
font-weight: 500;
font-size: px2rem(24);
color: #FFFFFF;
text-align: center;
}
}
}
}
.content.show {
transform: translateY(0);
}
.content.hide {
transform: translateY(-100%);
}
}
}
.txt_bottom {
font-family: PingFang SC;
font-weight: 400;
font-size: px2rem(26);
color: #A7A493;
padding: px2rem(32) px2rem(22);
div {
margin-bottom: px2rem(10);
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -1,25 +1,75 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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="../../common/css/animate.css">
<link rel="stylesheet" href="./css/countNumber.css">
<link rel="stylesheet" href="./css/index.css?v=1.1">
</head>
<link rel="stylesheet" href="../../common/css/reset.css" />
<link rel="stylesheet" href="../../common/css/animate.css" />
<link rel="stylesheet" href="./css/index.css?v=1.1" />
</head>
<body>
<!-- 頂部返回 -->
<div class="back">
测试
<body>
<div class="header">
<img src="./images/top-en.png" id="headerImg" alt="" class="headerImg" />
</div>
</body>
<!-- 小游戏 -->
<div class="game_boxwrap">
<img src="./images/gift-en.png" id="gameImg" alt="" class="gameImg" />
<div class="wrap">
<div class="game_item">
<div class="game_content">
<div class="flex_box">
<div class="info">
<img
src="https://image.molistar.xyz/b0cb0f37-7eec-4013-9cd7-f041d97d47a2.jpg"
alt=""
/>
<div class="name">A****</div>
</div>
<div class="right">
<img src="./images/win.png" alt="" class="win" />
<img
src="https://image.molistar.xyz/DragonandTiger.png"
alt=""
class="game_link"
/>
<div class="coins">10000</div>
</div>
</div>
<div class="tip">Spend 120 Coins Win 54 Times</div>
</div>
</div>
<div class="txt_bottom">
<div id="gift_txt1">
* Display data comes from real records in the App
</div>
<div id="gift_txt2">* 1$=7K coins in the App</div>
<div id="gift_txt3">
* Coins obtained in luck can only be used in the app and cannot be
exchanged for cash
</div>
</div>
</div>
</div>
<!-- 幸运礼物 -->
<!-- <div class="gift_boxwrap">
<img src="./images/gift-en.png" id="giftImg" alt="" class="giftImg" />
<div class="wrap">
<div id="gift_item"></div>
<div class="txt_bottom">
<div id="gift_txt1">
* Display data comes from real records in the App
</div>
<div id="gift_txt2">* 1$=7K coins in the App</div>
<div id="gift_txt3">
* Coins obtained in luck can only be used in the app and cannot be
exchanged for cash
</div>
</div>
</div>
</div> -->
</body>
</html>
<script src="../../common/js/flexible.js"></script>
<script src="../../common/js/jquery-3.2.1.min.js"></script>
@@ -34,5 +84,4 @@
<script src="./local/tr.js"></script>
<script src="../../common/local/langHandler.js"></script>
<script src="../../common/js/svga.min.js"></script>
<script src="./js/countNumber.js"></script>
<script src="./js/index.js?v=1.11"></script>
<script src="./js/index.js?v=1.0"></script>

View File

@@ -8,26 +8,26 @@ if (env == 'test') {
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'
})
}
// 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 loadedCount = 0; // 已加載的數據數量
var pageSize = 7; // 每次加載的數據數量
@@ -46,21 +46,11 @@ $(function () {
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();
getInit();
getHisRank()
// render()
renderLuckGiftOption();
}, 100)
})
@@ -68,426 +58,457 @@ $(function () {
function translateFun() {
var langReplace = window.lang.replace;
var localLang = window.lang;
$('.header .receive').html(langReplace(localLang.demoModule.receive));
$('.coins_pop .btn').html(langReplace(localLang.demoModule.receive));
$('.text1').html(langReplace(localLang.demoModule.text1));
$('.text2').html(langReplace(localLang.demoModule.text2));
$('.text3').html(langReplace(localLang.demoModule.text3));
$('.text4').html(langReplace(localLang.demoModule.text4));
$('.text5').html(langReplace(localLang.demoModule.text5));
$('.text55').html(langReplace(localLang.demoModule.text55));
$('.text6').html(langReplace(localLang.demoModule.text6));
$('.text7').html(langReplace(localLang.demoModule.text7));
$('.text8').html(langReplace(localLang.demoModule.text8));
$('.text9').html(langReplace(localLang.demoModule.text9));
$('.text10').html(langReplace(localLang.demoModule.text10));
$('.text11').html(langReplace(localLang.demoModule.text11));
$('.text12').html(langReplace(localLang.demoModule.text12));
// $('.text13').html(langReplace(localLang.demoModule.text13));
// $('.text14').html(langReplace(localLang.demoModule.text14));
$('.text15').html(langReplace(localLang.demoModule.text15));
$('.text16').html(langReplace(localLang.demoModule.text16));
$('.text17').html(langReplace(localLang.demoModule.text17));
$('.text18').html(langReplace(localLang.demoModule.text18));
$('.text19').html(langReplace(localLang.demoModule.text19));
$('.text20').html(langReplace(localLang.demoModule.text20));
$('.more').html(langReplace(localLang.demoModule.more));
$('.gift').attr('src', langReplace(localLang.demoModule.gift));
if (browser.ios) {
$('.bottomText').text(langReplace(localLang.demoModule.text12))
} else {
$('.bottomText').text(langReplace(localLang.demoModule.text122))
$('#headerImg').attr('src', langReplace(localLang.demoModule.headerImg))
$('#gameImg').attr('src', langReplace(localLang.demoModule.gameImg))
$('#giftImg').attr('src', langReplace(localLang.demoModule.giftImg))
$('#gift_txt1').html(langReplace(localLang.demoModule.gift_txt1))
$('#gift_txt2').html(langReplace(localLang.demoModule.gift_txt2))
$('#gift_txt3').html(langReplace(localLang.demoModule.gift_txt3))
}
// function renderLuckGiftOption() {
// let currentIndex = 0;
// // 创建 gift-item
// function createGiftItem(item) {
// return `
// <div class="content">
// <img src="./images/giftchang.png" alt="" class="gift_chang" />
// <div class="flex_box">
// <div class="left">
// <img src="${item.avatar}" alt="" />
// </div>
// <div class="right">
// <div class="txt"><span id='Send'>Send</span> ${item.gift_name}</div>
// <div class="txt2">Win ${item.rate} times</div>
// </div>
// </div>
// <div class="yuan_box">
// <img src="./images/giftyuan.png" alt="" class="gift_yuan" />
// <div class="yuan_txt">
// <div class="yuan_num">${item.win}</div>
// <div class="yuan_coins">Coins</div>
// </div>
// </div>
// </div>
// `;
// }
// // 提前创建所有 gift-item
// const giftItems = luckGiftOption.map(item => createGiftItem(item));
// $('.gift_item').html(giftItems.join(''));
// // 初始化第一个 gift-item
// $('.content').eq(currentIndex).addClass('show');
// // 动画函数
// function animateGiftItem() {
// const $currentContent = $('.content').eq(currentIndex);
// const $nextContent = $('.content').eq((currentIndex + 1) % luckGiftOption.length);
// // 隐藏当前显示的 gift-item
// $currentContent.removeClass('show').addClass('hide');
// // 监听动画结束事件
// $currentContent.on('transitionend', function () {
// $(this).removeClass('hide'); // 移除隐藏状态
// currentIndex = (currentIndex + 1) % luckGiftOption.length;
// // 显示下一个 gift-item
// $nextContent.removeClass('hide').addClass('show');
// });
// }
// // 使用 requestAnimationFrame 替代 setInterval
// let lastTime = 0;
// const interval = 3000; // 每 3 秒滚动一次
// function loop(timestamp) {
// if (timestamp - lastTime >= interval) {
// lastTime = timestamp;
// animateGiftItem();
// }
// requestAnimationFrame(loop);
// }
// requestAnimationFrame(loop);
// }
function renderLuckGiftOption(){
var currentIndex = 0;
var contentHtml = '';
function createGiftItem(item){
return `
<div class="gift_content">
<img src="./images/giftchang.png" alt="" class="gift_chang" />
<div class="flex_box">
<div class="left">
<img
src="${item.avatar}"
alt=""
/>
</div>
<div class="right">
<div class="txt">${langReplace(localLang.demoModule.Send)} ${langReplace(localLang.demoModule[item.gift_name])}</div>
<div class="txt2">${langReplace(localLang.demoModule.Won)} ${item.rate} ${langReplace(localLang.demoModule.Times)}</div>
</div>
</div>
<div class="yuan_box">
<img src="./images/giftyuan.png" alt="" class="gift_yuan" />
<div class="yuan_txt">
<div class="yuan_num">${item.win}</div>
<div class="yuan_coins">${langReplace(localLang.demoModule.Coins)}</div>
</div>
</div>
</div>
`;
}
// 初始化第一个 gift-item
contentHtml = createGiftItem(luckGiftOption[currentIndex]);
$('#gift_item').html(contentHtml);
// 定时更新 gift-item
setInterval(function() {
currentIndex = (currentIndex + 1) % luckGiftOption.length;
var newItemHtml = createGiftItem(luckGiftOption[currentIndex]);
// // 添加新的 gift-item 并设置初始位置
// const $newContent = $(newItemHtml).css('transform', 'translateY(100%)');
// $('.gift_item').append($newContent);
// // 移动当前的 gift-item 到顶部
// const $firstContent = $('.content:first');
// $firstContent.css('transition', 'transform 1s ease');
// $firstContent.css('transform', 'translateY(-100%)');
// // 移动新的 gift-item 到顶部
// $newContent.css('transition', 'transform 1s ease');
// $newContent.css('transform', 'translateY(0)');
// // 移除已经滚动出去的 gift-item
// $firstContent.on('transitionend', function() {
// $(this).remove();
// });
// 添加新的 gift-item 并设置初始位置
$('#gift_item').append(newItemHtml);
$('.gift_content:last').css('top', '100%');
// 移动当前的 gift-item 到顶部
$('.gift_content:first').animate({ top: '-100%' }, 1000, function() {
$(this).remove(); // 移除已经滚动出去的 gift-item
});
// 移动新的 gift-item 到顶部
$('.gift_content:last').animate({ top: '0' }, 1000);
setTimeout(function(){
},100)
}, 3000); // 每 3 秒滚动一次
}
var jackpotNum = null // 可领取奖金 0不能领取 大于0可领取 小于0已领取
var jackpotPool = 0 //奖池金币数
var countdownSecond = 0 //本周倒计时秒数
function getInit() {
showLoading()
networkRequest({
type: 'get',
url: urlPrefix + '/miniGame/weekJackpotRank/getRank',
success(res) {
if (res.code === 200) {
// 处理倒计时
countdownSecond = res.data.countdownSecond;
countTime();
// 处理奖金
jackpotNum = res.data.jackpot || 0;
$('.coins_pop .text b').html(Math.abs(jackpotNum).toLocaleString());
if (jackpotNum <= 0) {
$('.header .receive').html(langReplace(localLang.demoModule.done));
$('.header .receive').addClass('done');
$('.coins_pop .btn').html(langReplace(localLang.demoModule.done));
$('.coins_pop .btn').addClass('done');
}
if (jackpotNum !== 0) {
$('.header .coin_bg').show()
$('.header .receive').show()
}
jackpotPool = res.data.jackpotPool.toLocaleString();
$(window).scroll(function () {
if (($("#dataNums").offset().top - $(window).scrollTop()) < $(window).height()) {
$("#dataNums").rollNum({
deVal: jackpotPool
});
};
});
// 处理榜单
let rankList = res.data.rankList;
listTo3 = rankList.slice(0, 3);
notListTo3 = rankList.slice(3);
// 处理前三
if (listTo3.length < 3) {
let arr = new Array(3 - listTo3.length).fill({
avatar: './images/null.png',
nick: langReplace(localLang.demoModule.waiting),
erbanNo: null,
score: null
})
listTo3.push(...arr)
}
let prevScore = null; // 记录上一名的score
listTo3.forEach((res, i) => {
$(`.page1 .top .top${i + 1} .tx`).attr('src', res.avatar);
$(`.page1 .top .top${i + 1} .name`).html(res.nick);
$(`.page1 .top .top${i + 1} .icon`).attr('src', res.vipLevel ? `./images/vip/${res.vipLevel}.png` : '');
$(`.page1 .top .top${i + 1} .id`).html('ID:' + res.erbanNo);
// 计算当前与上一名的差值
let diff = prevScore !== null ? prevScore - res.score : 0; // 计算差值
prevScore = res.score; // 更新上一名的分数
$(`.page1 .top .top${i + 1} .score b`).html(langReplace(localLang.demoModule.Behind) + unitProcessingAr((diff), 2));
if (res.erbanNo == null) {
$(`.page1 .top .top${i + 1} .icon`).hide();
$(`.page1 .top .top${i + 1} .id`).hide();
$(`.page1 .top .top${i + 1} .score`).hide();
}
if (res.vipLevel == 0) {
$(`.page1 .top .top${i + 1} .icon`).hide()
}
})
// 非前三
loadMore();
// 处理自己榜单数据
var my = res.data.meRank;
$('.page1 .my .tx').attr("src", my.avatar);
$('.page1 .my .num').text(my.ranking == 0 ? '30+' : my.ranking);
$('.page1 .my .info p').text(my.nick);
$('.page1 .my .icon').attr('src', `./images/vip/${my.vipLevel}.png`);
$('.page1 .my .info span').text(`ID:${my.erbanNo}`);
if (my.ranking == 0) {
let lastScore = rankList[rankList.length - 1].score;
$('.page1 .my .score b').text(langReplace(localLang.demoModule.Behind) + unitProcessingAr(lastScore - my.score, 2));
} else if(my.ranking == 1){
$('.page1 .my .score').hide();
}else {
let lastScore = rankList[my.ranking - 2].score;
console.log('lastScore', lastScore);
$('.page1 .my .score b').text(langReplace(localLang.demoModule.Behind) + unitProcessingAr((lastScore - my.score), 2));
}
if (my.vipLevel == 0) {
$('.page1 .my .icon').hide();
}
} else {
toastMsg(res.message)
}
hideLoading(layerIndex)
},
error(err) {
hideLoading(layerIndex)
toastMsg(langReplace(localLang.demoModule.layerIndex3))
}
})
}
// 加載數據函數
function loadMore() {
// 計算加載範圍
pageSize = loadedCount == 0 ? 7 : 10;
const nextItems = notListTo3.slice(loadedCount, loadedCount + pageSize);
let str = '';
// 拼接 HTML
let prevScore = loadedCount == 0 ? listTo3[2].score : notListTo3[loadedCount - 1].score;
nextItems.forEach((res, i) => {
// 计算当前与上一名的差值
let diff = prevScore - res.score;
prevScore = res.score;
str += `
<li>
<div class="num">${res.ranking}</div>
<img src="${res.avatar}" alt="" class="tx">
<img src="./images/vip/${res.vipLevel}.png" alt="" class="icon" style="display: ${res.vipLevel == 0 ? 'none' : 'block'}">
<div class="info">
<p>${res.nick}</p>
<span>ID:${res.erbanNo}</span>
</div>
<div class="score">
<b>${langReplace(localLang.demoModule.Behind) + unitProcessingAr(diff, 2)}</b>
<img src="./images/m.png" alt="">
</div>
</li>
`
})
// 將數據插入到列表中
$('.page1 .content ul').append(str);
// 更新已加載的數據數量
loadedCount += nextItems.length;
// 如果數據全部加載完成,隱藏按鈕
console.log(loadedCount >= notListTo3.length);
console.log(notListTo3.length);
if (loadedCount >= notListTo3.length) {
$('.page1 .content .more').hide();
}
}
// 綁定按鈕點擊事件
$('.page1 .content .more').click(function () {
loadMore();
})
// 获取历史排行榜
function getHisRank() {
showLoading()
networkRequest({
type: 'get',
url: urlPrefix + '/miniGame/weekJackpotRank/listHistory',
success(res) {
if (res.code === 200) {
// 处理榜单
let hisRank = res.data;
if (hisRank.length == 0) {
$(".page2 .content .box").append(`<img src="./images/none.png" class="none" alt="">`);
} else {
hisRank.forEach(function (weekData) {
var historyHtml = `
<div class="history_week">
<div class="title">
<img src="./images/left.png" alt="">
<b>${weekData.startDate} - ${weekData.endDate}</b>
<img src="./images/right.png" alt="">
</div>
<ul>
`;
// 遍历 rankList 生成排名列表
weekData.rankList.forEach(user => {
historyHtml += `
<li>
<img src="${user.avatar}" alt="" class="avatar">
<img src="./images/h${user.rank > 3 ? "" : user.rank}.png" alt="" class="tx">
<p class="name">${user.nick}</p>
<P class="id">ID: ${user.erbanNo}</P>
<div class="score">
<b>${langReplace(localLang.demoModule.win)} ${unitProcessingAr(user.jackpot,2)}</b>
<img src="./images/m.png" alt="">
</div>
</li>
`;
})
historyHtml += `
</ul>
</div>
`;
// 添加到容器
$(".page2 .content .box").append(historyHtml);
});
}
} else {
toastMsg(res.message)
}
hideLoading(layerIndex)
},
error(err) {
hideLoading(layerIndex)
toastMsg(langReplace(localLang.demoModule.layerIndex3))
}
})
}
var hisRank = [
var luckGiftOption =[
{
endDate: "03/01/2024",
partitionId: 1,
rankList: [
{
avatar: "./images/null.png",
erbanNo: "12345",
gender: "male",
jackpot: 5000,
nick: "User1",
rank: 1,
uid: "UID123",
vipLevel: 0
},
{
avatar: "./images/null.png",
erbanNo: "67890",
gender: "female",
jackpot: 4000,
nick: "User2",
rank: 2,
uid: "UID456",
vipLevel: 0
}
],
startDate: "01/01/2024"
"id": 863603,
"nick": "رٖيےـاضے",
"erban_no": 500059,
"avatar": "https://image.molistar.xyz/b0cb0f37-7eec-4013-9cd7-f041d97d47a2.jpg",
"gift_name": "500059 I",
"pay": 131400,
"win": 1314000,
"rate": 10
},
{
endDate: "10/01/2024",
partitionId: 2,
rankList: [
{
avatar: "./images/null.png",
erbanNo: "54321",
gender: "male",
jackpot: 7000,
nick: "User3",
rank: 1,
uid: "UID789",
vipLevel: 0
}
],
startDate: "08/01/2024"
"id": 1478193,
"nick": "رٖيےـاضے",
"erban_no": 500059,
"avatar": "https://image.molistar.xyz/b0cb0f37-7eec-4013-9cd7-f041d97d47a2.jpg",
"gift_name": "幸運手錶",
"pay": 2000,
"win": 1000000,
"rate": 500
},
{
"id": 1642027,
"nick": "احمد 77",
"erban_no": 4041019,
"avatar": "https://image.molistar.xyz/ee732806-a34e-4bd5-aac1-79abd1db5ad0.jpg",
"gift_name": "幸運包",
"pay": 500,
"win": 500000,
"rate": 1000
},
{
"id": 348493,
"nick": "👑D'SHA-SHA🌺",
"erban_no": 311114,
"avatar": "https://image.molistar.xyz/8d35118a-22d0-4c78-aa41-fea98a903e9c.jpeg",
"gift_name": "金钥",
"pay": 376,
"win": 376000,
"rate": 1000
},
{
"id": 1477321,
"nick": "رٖيےـاضے",
"erban_no": 500059,
"avatar": "https://image.molistar.xyz/b0cb0f37-7eec-4013-9cd7-f041d97d47a2.jpg",
"gift_name": "幸運手錶",
"pay": 34000,
"win": 340000,
"rate": 10
},
{
"id": 2008089,
"nick": "احمد 77",
"erban_no": 4041019,
"avatar": "https://image.molistar.xyz/ee732806-a34e-4bd5-aac1-79abd1db5ad0.jpg",
"gift_name": "幸運戒",
"pay": 300,
"win": 300000,
"rate": 1000
},
{
"id": 698136,
"nick": "احمد 77",
"erban_no": 4041019,
"avatar": "https://image.molistar.xyz/ee732806-a34e-4bd5-aac1-79abd1db5ad0.jpg",
"gift_name": "幸運戒",
"pay": 300,
"win": 300000,
"rate": 1000
},
{
"id": 1640354,
"nick": "احمد 77",
"erban_no": 4041019,
"avatar": "https://image.molistar.xyz/ee732806-a34e-4bd5-aac1-79abd1db5ad0.jpg",
"gift_name": "幸運戒",
"pay": 300,
"win": 300000,
"rate": 1000
},
{
"id": 1908109,
"nick": "احمد 77",
"erban_no": 4041019,
"avatar": "https://image.molistar.xyz/ee732806-a34e-4bd5-aac1-79abd1db5ad0.jpg",
"gift_name": "幸運戒",
"pay": 300,
"win": 300000,
"rate": 1000
},
{
"id": 1654132,
"nick": "احمد 77",
"erban_no": 4041019,
"avatar": "https://image.molistar.xyz/ee732806-a34e-4bd5-aac1-79abd1db5ad0.jpg",
"gift_name": "幸運戒",
"pay": 300,
"win": 300000,
"rate": 1000
},
{
"id": 715755,
"nick": "احمد 77",
"erban_no": 4041019,
"avatar": "https://image.molistar.xyz/ee732806-a34e-4bd5-aac1-79abd1db5ad0.jpg",
"gift_name": "幸運戒",
"pay": 300,
"win": 300000,
"rate": 1000
},
{
"id": 969632,
"nick": "رٖيےـاضے",
"erban_no": 500059,
"avatar": "https://image.molistar.xyz/b0cb0f37-7eec-4013-9cd7-f041d97d47a2.jpg",
"gift_name": "500059 I",
"pay": 52000,
"win": 260000,
"rate": 5
},
{
"id": 1620697,
"nick": "احمد 77",
"erban_no": 4041019,
"avatar": "https://image.molistar.xyz/ee732806-a34e-4bd5-aac1-79abd1db5ad0.jpg",
"gift_name": "幸運包",
"pay": 500,
"win": 250000,
"rate": 500
},
{
"id": 1625924,
"nick": "احمد 77",
"erban_no": 4041019,
"avatar": "https://image.molistar.xyz/ee732806-a34e-4bd5-aac1-79abd1db5ad0.jpg",
"gift_name": "幸運包",
"pay": 500,
"win": 250000,
"rate": 500
},
{
"id": 1669940,
"nick": "احمد 77",
"erban_no": 4041019,
"avatar": "https://image.molistar.xyz/ee732806-a34e-4bd5-aac1-79abd1db5ad0.jpg",
"gift_name": "幸運包",
"pay": 500,
"win": 250000,
"rate": 500
},
{
"id": 1862408,
"nick": "✯͜͡☚ملك الإحساس",
"erban_no": 117000,
"avatar": "https://image.molistar.xyz/b4f5a2b2-0674-4f44-8c27-079de7473bbc.jpeg",
"gift_name": "幸運戒",
"pay": 2100,
"win": 210000,
"rate": 100
},
{
"id": 1475378,
"nick": "رٖيےـاضے",
"erban_no": 500059,
"avatar": "https://image.molistar.xyz/b0cb0f37-7eec-4013-9cd7-f041d97d47a2.jpg",
"gift_name": "幸運手錶",
"pay": 2000,
"win": 200000,
"rate": 100
},
{
"id": 1467535,
"nick": "رٖيےـاضے",
"erban_no": 500059,
"avatar": "https://image.molistar.xyz/b0cb0f37-7eec-4013-9cd7-f041d97d47a2.jpg",
"gift_name": "幸運手錶",
"pay": 2000,
"win": 200000,
"rate": 100
},
{
"id": 1478055,
"nick": "رٖيےـاضے",
"erban_no": 500059,
"avatar": "https://image.molistar.xyz/b0cb0f37-7eec-4013-9cd7-f041d97d47a2.jpg",
"gift_name": "幸運手錶",
"pay": 2000,
"win": 200000,
"rate": 100
},
{
"id": 1472085,
"nick": "رٖيےـاضے",
"erban_no": 500059,
"avatar": "https://image.molistar.xyz/b0cb0f37-7eec-4013-9cd7-f041d97d47a2.jpg",
"gift_name": "幸運手錶",
"pay": 2000,
"win": 200000,
"rate": 100
},
{
"id": 1475443,
"nick": "رٖيےـاضے",
"erban_no": 500059,
"avatar": "https://image.molistar.xyz/b0cb0f37-7eec-4013-9cd7-f041d97d47a2.jpg",
"gift_name": "幸運手錶",
"pay": 2000,
"win": 200000,
"rate": 100
},
{
"id": 1468795,
"nick": "رٖيےـاضے",
"erban_no": 500059,
"avatar": "https://image.molistar.xyz/b0cb0f37-7eec-4013-9cd7-f041d97d47a2.jpg",
"gift_name": "幸運手錶",
"pay": 2000,
"win": 200000,
"rate": 100
},
{
"id": 1470498,
"nick": "رٖيےـاضے",
"erban_no": 500059,
"avatar": "https://image.molistar.xyz/b0cb0f37-7eec-4013-9cd7-f041d97d47a2.jpg",
"gift_name": "幸運手錶",
"pay": 2000,
"win": 200000,
"rate": 100
},
{
"id": 1468178,
"nick": "رٖيےـاضے",
"erban_no": 500059,
"avatar": "https://image.molistar.xyz/b0cb0f37-7eec-4013-9cd7-f041d97d47a2.jpg",
"gift_name": "幸運手錶",
"pay": 2000,
"win": 200000,
"rate": 100
},
{
"id": 1477844,
"nick": "رٖيےـاضے",
"erban_no": 500059,
"avatar": "https://image.molistar.xyz/b0cb0f37-7eec-4013-9cd7-f041d97d47a2.jpg",
"gift_name": "幸運手錶",
"pay": 2000,
"win": 200000,
"rate": 100
},
{
"id": 1470538,
"nick": "رٖيےـاضے",
"erban_no": 500059,
"avatar": "https://image.molistar.xyz/b0cb0f37-7eec-4013-9cd7-f041d97d47a2.jpg",
"gift_name": "幸運手錶",
"pay": 2000,
"win": 200000,
"rate": 100
},
{
"id": 1467538,
"nick": "رٖيےـاضے",
"erban_no": 500059,
"avatar": "https://image.molistar.xyz/b0cb0f37-7eec-4013-9cd7-f041d97d47a2.jpg",
"gift_name": "幸運手錶",
"pay": 2000,
"win": 200000,
"rate": 100
},
{
"id": 2052835,
"nick": "👑KIKAY QUEEN",
"erban_no": 1143333,
"avatar": "https://image.molistar.xyz/420bbd61-1a23-443e-9d3d-d806499d65fd.jpeg",
"gift_name": "金钥",
"pay": 376,
"win": 188000,
"rate": 500
},
{
"id": 1493012,
"nick": "✯͜͡ڪـᬼريم",
"erban_no": 5860974,
"avatar": "https://image.molistar.xyz/2ab83c64-c561-448c-9c82-690f5eb838b1.jpeg",
"gift_name": "幸運爪",
"pay": 350,
"win": 175000,
"rate": 500
},
{
"id": 1876262,
"nick": "👋آإلـ⚚ﺰ؏يــ⇣ﻢ⇣",
"erban_no": 1112,
"avatar": "https://image.molistar.xyz/74c172f5-a165-437c-be9a-21fbfea69b18.jpeg",
"gift_name": "幸運馬卡龍",
"pay": 1700,
"win": 170000,
"rate": 100
}
];
]
// 领取金币
function getJackpot() {
showLoading()
networkRequest({
type: 'post',
url: urlPrefix + '/miniGame/weekJackpotRank/getJackpot',
success(res) {
if (res.code === 200) {
$('.header .receive').html(langReplace(localLang.demoModule.done));
$('.header .receive').addClass('done');
$('.coins_pop .btn').html(langReplace(localLang.demoModule.done));
$('.coins_pop .btn').addClass('done');
$(`.coins_pop .fadein`).show()
$(`.coins_pop .fadein`).addClass('animate__bounceInRight')
setTimeout(() => {
svgaFun()
}, 1000);
jackpotNum = -Math.abs(jackpotNum)
} else {
toastMsg(res.message)
}
hideLoading(layerIndex)
},
error(err) {
hideLoading(layerIndex)
toastMsg(langReplace(localLang.demoModule.layerIndex3))
}
})
}
// tab切换
$('.tab div').click(function () {
var i = $(this).index() + 1;
$('.page1,.page2').hide();
$(`.page${i}`).show();
$(this).addClass('act');
$(this).siblings().removeClass('act');
if (i == 1) {
$('.bottomText').css('margin', '0.66667rem auto 2.4rem');
} else {
$('.bottomText').css('margin', '0.66667rem auto 0.66667rem');
}
})
// 打开规则
$('.rule').click(function () {
$('.text13').html(langReplace(localLang.demoModule.text13));
$('.text14').html(langReplace(localLang.demoModule.text14));
$('.rules').show();
bodyScroolFun(true);
})
// 关闭规则
$('.rules .rule_in .close').click(function () {
$('.rules').hide();
bodyScroolFun(false);
})
$(".coins_pop .close").click(function () {
$('.coins_pop').hide();
$(`.coins_pop .fadein`).hide()
$(`.coins_pop .fadein`).removeClass('animate__bounceInRight');
bodyScroolFun(false);
})
$(".header .receive").click(function () {
bodyScroolFun(false);
$('.coins_pop').show();
})
$(".coins_pop .btn").click(function () {
if (jackpotNum != 0) {
getJackpot()
}
})
// 查看奖励
$(".page1 .rewards").click(function () {
$('.text13').html(langReplace(localLang.demoModule.rewards));
$('.text14').html(langReplace(localLang.demoModule.text144));
$('.rules').show();
bodyScroolFun(false);
})
// 播放svga
function svgaFun() {
// $(`.svga`).hide();
let player1 = new SVGA.Player(`.svga .svga_in`);
let parser1 = new SVGA.Parser(`.svga .svga_in`);
parser1.load(`./images/coins.svga`, function (videoItem) {
player1.loops = 1;
player1.clearsAfterStop = false;
player1.setVideoItem(videoItem);
player1.startAnimation();
player1.setContentMode('AspectFill')
// player1.onFrame((frame) => {
// if (frame == 1) {
// draw()
// }
// })
player1.onFinished(() => {
// $(`.svga`).hide();
})
})
}
// 倒计时函数
let time = null;
function countTime() {
clearTimeout(time);
if (countdownSecond <= 0) {
console.log("倒计时结束");
clearTimeout(time);
return;
}
// 计算 d, h, m, s
let d = Math.floor(countdownSecond / 86400); // 1天 = 86400秒
let h = Math.floor((countdownSecond % 86400) / 3600);
let m = Math.floor((countdownSecond % 3600) / 60);
let s = countdownSecond % 60;
// 更新页面元素
$(".page1 .timeBox .days span").html(d < 10 ? "0" + d : d);
$(".page1 .timeBox .hours span").html(h < 10 ? "0" + h : h);
$(".page1 .timeBox .mins span").html(m < 10 ? "0" + m : m);
$(".page1 .timeBox .secs span").html(s < 10 ? "0" + s : s);
// 递减秒数
countdownSecond--;
// 递归调用
time = setTimeout(countTime, 1000);
}
// 启动倒计时
countTime();

View File

@@ -2,57 +2,24 @@
langAr = {
// 模块
demoModule: {
layerIndex1: "جارٍ التحميل...",
layerIndex2: "نجاح",
layerIndex3: "خطأ في الشبكة",
text1: "تحدي اللعبة الفائق",
text2: "مرحبًا بك في \"تحدي اللعبة الفائق\"! خلال الحدث، يجمع المشاركون النقاط من خلال المشاركة في الألعاب. كلما زادت نقاطك، زاد استثمارك، وزادت المكافآت التي تحصل عليها. سيحصل أولئك الذين يؤدون أداءً جيدًا على ترتيب شرفي، ويتمتعون بمكانة مرموقة، ويحصلون على فرصة للفوز بجائزة رائعة!",
text3: "القواعد",
text4: "مخزون العملات",
text5: "يتم التحديث كل 5 دقائق",
text55: "يجب المطالبة بالعملات خلال 7 أيام، وإلا ستصبح غير صالحة.",
text6: "أيام",
text7: "ساعات",
text8: "دقائق",
text9: "ثوانٍ",
text10: "الترتيب",
text11: "السجل",
text12: "هذا الحدث ليس له أي علاقة بشركة Apple.",
text122: "هذا الحدث ليس له أي علاقة بشركة Google.",
text13: "القواعد",
text14: `<strong>1. مدة الحدث</strong>
<p><b>الفترة:</b> يبدأ كل يوم اثنين الساعة 00:00 وينتهي يوم الأحد الساعة 23:59.</p>
<p><b>الوصف:</b> فقط الذين يشاركون في ألعاب الحدث خلال الفترة المحددة يمكنهم كسب النقاط والعملات وإضافتها إلى مخزون العملات.</p>
<strong>2. المشاركة في الألعاب وآلية المكافآت</strong>
<p><b>اكتساب النقاط:</b> يتم الحصول على نقطة واحدة مقابل كل عملة واحدة يتم استثمارها في اللعبة.</p>
<p><b>استثمار العملات ومخزون العملات:</b> عند استثمار 1000 عملة، يقوم النظام بسحب عشوائي بين 1 إلى 10 عملات وإضافتها إلى مخزون العملات لهذا الأسبوع. مما يعني أنه كلما زاد استثمار اللاعبين، زاد حجم المخزون.</p>
<strong>3. ترتيب النقاط</strong>
<p><b>أساس الترتيب:</b> يعتمد الترتيب على النقاط التي يجمعها اللاعبون خلال الحدث.</p>
<p><b>أهلية المكافأة:</b> في نهاية الحدث، يكون المستخدمون العشرة الأوائل في الترتيب مؤهلين لتقاسم العملات في المخزون.</p>
<p><b>تكرار التحديث:</b> يتم تحديث الترتيب يوميًا، ويمكن للاعبين التحقق من ترتيبهم في أي وقت.</p>
<strong>4. آلية توزيع مخزون العملات</strong>
<p><b>مبدأ التوزيع:</b> يتم توزيع العملات في المخزون على أفضل 10 مستخدمين بناءً على نسبة استثماراتهم خلال الحدث. أي أنه كلما زاد استثمارك، زادت حصتك من المكافأة.</p>
<p><b>وقت التسوية:</b> يتم تسوية العملات الخاصة بالأسبوع السابق في الساعة 00:30 من يوم الاثنين. يجب المطالبة بالعملات خلال 7 أيام وإلا ستعتبر غير صالحة.</p>
<strong>5. ملاحظات</strong>
<p>جميع حقوق تفسير هذا الحدث تعود إلى المنصة، وليس له أي علاقة بـ Google/Apple.</p>`,
text144: `<img src="./images/reward-ar.png" alt="">`,
rewards: "المكافآت",
receive: "استلام",
done: "تم",
Behind: "خلف",
win: `الفوز`,
more: "المزيد",
month: "شهر",
day: "يوم",
waiting: "في الانتظار",
text15: `يعرض الترتيب فقط أفضل 10 مستخدمين في السجل.<br>
(بغض النظر عما إذا كانوا قد حصلوا على العملات أم لا)`,
text16: "تم إرسال العملات إلى محفظتك!",
text17: "تهانينا",
text18: "تهانينا! لقد حصلت على",
text19: "يجب المطالبة بالعملات خلال 7 أيام، وإلا ستصبح غير صالحة.",
text20: "عرض جميع المكافآت",
gift: "./images/gift-ar.png",
headerImg: "./images/top-ar.png",
gameImg: "./images/game-ar.png",
giftImg: "./images/gift-ar.png",
gift1:'500059 I',
Send:'أرسل',
Won:'عدد',
Times:'الأوقات',
Coins:'العملات',
'500059 I':'500059 I',
幸運手錶:'ساعة الحظ',
幸運包:'حقيبة الحظ',
金钥:'المفتاح الذهبي',
幸運戒:'خاتم الحظ',
幸運爪:'مخلب الحظ',
幸運馬卡龍:'ماكارون الحظ',
gift_txt1:'* تأتي بيانات العرض من سجلات حقيقية في التطبيق',
gift_txt2:'* 1$=7K coin في التطبيق',
gift_txt3:'* يمكن استخدام العملات التي تم الحصول عليها في اللعبة فقط في التطبيق ولا يمكن استبدالها نقدًا.',
}
}

View File

@@ -1,55 +1,22 @@
langEn = {
demoModule: {
layerIndex1: `Loading...`,
layerIndex2: `Success`,
layerIndex3: `Network error`,
text1: `Super game challenge`,
text2: `Welcome to the "Super Game Challenge"! During the event, participants accumulate points by participating in games.The more points you have, the more you invest, and the more rewards you get. Those who perform well will also be on the honor ranking, enjoy a distinguished ranking, and have the opportunity to win an enviable prize!`,
text3: `Rule`,
text4: `Coins Pool`,
text5: `Update every 5 minutes`,
text55: `The coins must be claimed within 7 days. Otherwise, they will be invalid.`,
text6: `Days`,
text7: `Hours`,
text8: `Mins`,
text9: `Secs`,
text10: `Ranking`,
text11: `History`,
text12: `Event has nothing to do with Apple.`,
text122: `Event has nothing to do with Google.`,
text13: `Rules`,
text14: `<strong>1. Activity Time</strong>
<p><b>Period:</b> Every Monday 00:00 starts and ends at Sunday 23:59.</p>
<p><b>Description:</b> Only those who participate in the games of the activity within the specified time period can get points and coins to enter the coins pool.</p>
<strong>2. Game Participation and Reward Mechanism</strong>
<p><b>Points Acquisition:</b> 1 point can be obtained for every 1 coin invested in the game.</p>
<p><b>Coin investment and coins pool:</b> Each time you invest 1,000 coins, the system will randomly draw 1 to 10 coins and add them to the coins pool for this week. This means that the more players invest, the more the bonus pool will accumulate.</p>
<strong>3. Points ranking</strong>
<p><b>Ranking basis:</b> Ranking based on the points accumulated by players during the event.</p>
<p><b>Reward qualification: </b>At the end of the actibity, the top 10 users on the points ranking are eligible to share the coins in the coins pool.</p>
<p><b>Update frequency: </b>The ranking is updated daily, and players can check their ranking at any time.</p>
<strong>4. Coins pool division logic</strong>
<p><b>Distribution principle:</b> The coins in the coins pool will be distributed to the Top 10 users according to the total investment ratio of the top 10 players during the activity. That is, the more you invest, the greater the proportion, and thus you can share more bonuses.</p>
<p><b>Settlement time: </b>00:30 on Monday to settle the coins of the previous week. Coins must be claimed within 7 days, otherwise they will be deemed invalid.</p>
<strong>5. Notes</strong>
<p>All interpretation rights of this activity belong to the platform and have nothing to do with Google/Apple</p>`,
text144: `<img src="./images/reward.png" alt="">`,
rewards: `Rewards`,
receive: `Receive`,
done: `Done`,
Behind: `Behind`,
win: `Win`,
more: 'More',
month: 'Month',
day: 'Day',
waiting: 'Waiting',
text15: `Ranking only shows theTop10 users in the history.<br>
(Regardless of whether they have received coins)`,
text16: `Coins have been sent to your wallet!`,
text17: `Congratulations`,
text18: `Congratulations on Getting`,
text19: `The coins must be claimed within 7 days. Otherwise, they will be invalid.`,
text20: `View all Rewards`,
gift: "./images/gift.png",
headerImg: "./images/top-en.png",
gameImg: "./images/game-en.png",
giftImg: "./images/gift-en.png",
gift1:'500059 I',
Send:'Send',
Won:'Won',
Times:'Times',
Coins:'Coins',
'500059 I':'500059 I',
幸運手錶:'Lucky Watch',
幸運包:'Lucky Bag',
金钥:'Golden Key',
幸運戒:'Lucky Ring',
幸運爪:'Lucky Claw',
幸運馬卡龍:'Lucky Macaron',
gift_txt1:'* Display data comes from real records in the App',
gift_txt2:'* 1$=7K coins in the App',
gift_txt3:'* Coins obtained in the game can only be used in the app and cannot be exchanged for cash.',
},
}

View File

@@ -1,56 +1,23 @@
langTr = {
demoModule: {
layerIndex1: "Yükleniyor...",
layerIndex2: "Başarılı",
layerIndex3: "Ağ hatası",
text1: "Süper Oyun Mücadelesi",
text2: "\"Süper Oyun Mücadelesi\"ne hoş geldiniz! Etkinlik süresince katılımcılar oyunlara katılarak puan toplar. Ne kadar çok puanınız olursa, o kadar çok yatırım yaparsınız ve daha fazla ödül kazanırsınız. İyi performans gösterenler onur sıralamasında yer alacak, prestijli bir konuma sahip olacak ve kıskanılacak ödülleri kazanma şansı elde edecek!",
text3: "Kurallar",
text4: "Jeton Havuzu",
text5: "Her 5 dakikada bir güncellenir",
text55: "Jetonlar 7 gün içinde talep edilmelidir, aksi takdirde geçersiz hale gelir.",
text6: "Gün",
text7: "Saat",
text8: "Dakika",
text9: "Saniye",
text10: "Sıralama",
text11: "Geçmiş",
text12: "Etkinliğin Apple ile hiçbir ilgisi yoktur.",
text122: "Etkinliğin Google ile hiçbir ilgisi yoktur.",
text13: "Kurallar",
text14: `<strong>1. Etkinlik Süresi</strong>
<p><b>Dönem:</b> Her Pazartesi 00:00'da başlar ve Pazar 23:59'da sona erer.</p>
<p><b>Açıklama:</b> Belirtilen süre içinde etkinlik oyunlarına katılanlar puan ve jeton kazanarak jeton havuzuna ekleyebilir.</p>
<strong>2. Oyun Katılımı ve Ödül Mekanizması</strong>
<p><b>Puan Kazanımı:</b> Oyunda yatırılan her 1 jeton için 1 puan kazanılır.</p>
<p><b>Jeton yatırımı ve jeton havuzu:</b> Her 1.000 jeton yatırıldığında, sistem rastgele 1 ila 10 jeton çeker ve o haftanın jeton havuzuna ekler. Bu, oyuncuların yatırımı arttıkça ödül havuzunun büyüyeceği anlamına gelir.</p>
<strong>3. Puan Sıralaması</strong>
<p><b>Sıralama Kriteri:</b> Etkinlik boyunca oyuncuların topladığı puanlara göre sıralama yapılır.</p>
<p><b>Ödül Hakkı:</b> Etkinlik sonunda, puan sıralamasındaki ilk 10 kullanıcı jeton havuzundaki jetonları paylaşmaya hak kazanır.</p>
<p><b>Güncelleme Sıklığı:</b> Sıralama günlük olarak güncellenir ve oyuncular sıralamalarını istedikleri zaman kontrol edebilirler.</p>
<strong>4. Jeton Havuzu Dağıtım Mantığı</strong>
<p><b>Dağıtım İlkesi:</b> Jeton havuzundaki jetonlar, etkinlik süresince en çok yatırım yapan ilk 10 oyuncunun toplam yatırım oranına göre dağıtılır. Yani, ne kadar çok yatırım yaparsanız, o kadar büyük bir pay alırsınız.</p>
<p><b>Ödeme Zamanı:</b> Önceki haftanın jetonları Pazartesi günü saat 00:30'da ödenir. Jetonlar 7 gün içinde talep edilmelidir, aksi takdirde geçersiz sayılır.</p>
<strong>5. Notlar</strong>
<p>Bu etkinliğin tüm yorumlama hakları platforma aittir ve Google/Apple ile ilgisi yoktur.</p>`,
text144: `<img src="./images/reward-tr.png" alt="">`,
rewards: "Ödüller",
receive: "Al",
done: "Tamamlandı",
Behind: "Geride",
win: `Kazan`,
more: "Daha fazla",
month: "Ay",
day: "Gün",
waiting: "Bekleniyor",
text15: `Sıralama yalnızca geçmişteki en iyi 10 kullanıcıyı gösterir.<br>
(Jeton alıp almadıklarına bakılmaksızın)`,
text16: "Jetonlar cüzdanınıza gönderildi!",
text17: "Tebrikler",
text18: "Şunu Kazandınız",
text19: "Jetonlar 7 gün içinde talep edilmelidir, aksi takdirde geçersiz hale gelir.",
text20: "Tüm Ödülleri Görüntüle",
gift: "./images/gift-tr.png",
headerImg: "./images/top-tr.png",
gameImg: "./images/game-tr.png",
giftImg: "./images/gift-tr.png",
gift1:'500059 I',
Send:'Gönder',
Won:'Kazanılan',
Times:'Zaman',
Coins:'Jetonlar',
'500059 I':'500059 I',
幸運手錶:'Şanslı Saat',
幸運包:'Şanslı Çanta',
金钥:'Altın Anahtar',
幸運戒:'Şanslı Yüzük',
幸運爪:'Şanslı Pençe',
幸運馬卡龍:'Şanslı Makaron',
gift_txt1:'* Görüntülenen veriler Uygulamadaki gerçek kayıtlardan gelir',
gift_txt2:'* 1$=Uygulamadaki 7K jeton',
gift_txt3:'* Oyunda elde edilen jetonlar yalnızca uygulamada kullanılabilir ve nakitle değiştirilemez.',
}
}

View File

@@ -2,58 +2,22 @@
langZh = {
// 模塊
demoModule: {
layerIndex1: "加载中...",
layerIndex2: "成功",
layerIndex3: "网络错误",
text1: "超级游戏挑战",
text2: "欢迎来到“超级游戏挑战”!在活动期间,参与者通过参加游戏累积积分。积分越多,投入越多,获得的奖励就越多。表现优秀的玩家还将登上荣誉排行榜,享受尊贵排名,并有机会赢得令人羡慕的奖品!",
text3: "规则",
text4: "金币池",
text5: "每5分钟更新一次",
text55: "金币需在7天内领取否则将失效。",
text6: "天",
text7: "小时",
text8: "分钟",
text9: "秒",
text10: "排行榜",
text11: "历史记录",
text12: "活动与 Apple 无关。",
text122: "活动与 Google 无关。",
text13: "活动规则",
text14: `<strong>1. 活动时间</strong>
<p><b>周期:</b> 每周一00:00开始周日23:59结束。</p>
<p><b>说明:</b> 只有在规定时间内参与活动游戏的用户,才能获得积分和金币,并将其计入金币池。</p>
<strong>2. 游戏参与与奖励机制</strong>
<p><b>积分获取:</b> 每投入1枚金币可获得1点积分。</p>
<p><b>金币投入与金币池:</b> 每投入1000枚金币系统将随机抽取1到10枚金币并加入本周的金币池。这意味着玩家投入越多奖金池累积越多。</p>
<strong>3. 积分排行榜</strong>
<p><b>排名依据:</b> 根据玩家在活动期间累积的积分进行排名。</p>
<p><b>奖励资格:</b> 活动结束后排行榜前10名的用户有资格瓜分金币池中的金币。</p>
<p><b>更新频率:</b> 排行榜每日更新,玩家可随时查看自己的排名。</p>
<strong>4. 金币池分配规则</strong>
<p><b>分配原则:</b> 金币池中的金币将根据前10名玩家的总投入比例进行分配。投入越多所占比例越大因此可获得的奖金也越多。</p>
<p><b>结算时间:</b> 每周一00:30结算上一周的金币。金币需在7天内领取否则将视为无效。</p>
<strong>5. 备注</strong>
<p>本活动的最终解释权归平台所有,与 Google/Apple 无关。</p>`,
text144: `<img src="./images/reward.png" alt="">`,
rewards: "奖励",
receive: "领取",
done: "完成",
Behind: "落后",
win: `赢得`,
more: "更多",
month: "月",
day: "日",
waiting: "等待中",
text15: `排行榜仅显示历史前10名用户。<br>
(无论是否领取金币)`,
text16: "金币已发放至您的钱包!",
text17: "恭喜",
text18: "恭喜获得",
text19: "金币需在7天内领取否则将失效。",
text20: "查看所有奖励",
gift: "./images/gift.png",
headerImg: "./images/top-zh.png",
gift1:'500059 I',
Send:'送出',
Won:'贏了',
Times:'倍數',
Coins:'金幣',
'500059 I':'500059 I',
幸運手錶:'幸運手錶',
幸運包:'幸運包',
金钥:'金钥',
幸運戒:'幸運戒',
幸運爪:'幸運爪',
幸運馬卡龍:'幸運馬卡龍',
gift_txt1:'* 展示數據來自App內真實記錄',
gift_txt2:'* App內1$=7K 金幣',
gift_txt3:'* 遊戲中獲得的金幣僅可在app內使用不支援兌換為現金。',
}
}