diff --git a/view/peko/activity/2024-aprilFoolsDay/js/index.js b/view/peko/activity/2024-aprilFoolsDay/js/index.js
index 26b840b..fe5025a 100644
--- a/view/peko/activity/2024-aprilFoolsDay/js/index.js
+++ b/view/peko/activity/2024-aprilFoolsDay/js/index.js
@@ -61,7 +61,7 @@ $(function () {
}, 100)
})
-// 獲取任务接口
+// 獲取任務接口
function getTaskUser () {
showLoading()
networkRequest({
@@ -70,7 +70,7 @@ function getTaskUser () {
data: { componentCode: "QI_HUAN_MO_HE" },
success (res) {
if (res.code === 200) {
- // 渲染愚人盛典礼物
+ // 渲染愚人盛典禮物
$('.page1 .box1 .giftBoxs div').remove();
var str = '';
res.data[0].children.forEach((res, i) => {
@@ -94,7 +94,7 @@ function getTaskUser () {
})
}
-// 獲取倒计时接口
+// 獲取倒計時接口
function getTime () {
showLoading()
networkRequest({
@@ -154,7 +154,7 @@ function getzf (num) {
return num;
}
-// tab切换
+// tab切換
$('.tabs div').click(function () {
var i = $(this).index() + 1;
$('.tabs div').removeClass('act1').removeClass('act2').removeClass('act3').removeClass('act4');
@@ -170,7 +170,7 @@ $('.tabs div').click(function () {
}
})
-// 更新房间接口按钮
+// 更新房間接口按鈕
$('.page2 .upDate').click(function () {
getRooms();
})
@@ -214,7 +214,7 @@ function getRank () {
`
})
$('.page1 .box2 ul').append(str);
- // 处理自己榜单
+ // 處理自己榜單
$('.page1 .my .num').text(res.data.meRank.ranking == 0 ? '未上榜' : res.data.meRank.ranking);
$('.page1 .my .tx').attr('src', res.data.meRank.avatar);
$('.page1 .my .nick').text(res.data.meRank.nick);
@@ -231,7 +231,7 @@ function getRank () {
})
}
-// 页面2切换
+// 頁面2切換
$('.page2 .tab div').click(function () {
var i = $(this).index() + 1;
$('.page2 .tab div').removeClass('act1').removeClass('act2');
@@ -240,7 +240,7 @@ $('.page2 .tab div').click(function () {
getRooms();
})
-// 獲取房间榜接口
+// 獲取房間榜接口
function getRooms () {
showLoading()
networkRequest({
@@ -262,7 +262,7 @@ function getRooms () {
}
console.log(top);
var notTop = res.data.slice(1);
- // 第一房间
+ // 第一房間
$('.page2 .topRoom .tx').attr('src', top[0].roomAvatar);
$('.page2 .topRoom .roomName').text(top[0].roomTitle);
$('.page2 .topRoom .score b').text(top[0].percentage + '%');
@@ -271,7 +271,7 @@ function getRooms () {
$('.page2 .page2ToRoomBut').attr("uid", top[0].roomUid);
$('.page2 .page2ToRoomBut').attr("src", top[0].isUnderway ? './images/page2ToRoomBut.png' : './images/page2ToRoomBut2.png');
$('.page2 .page2ToRoomBut').attr("isUnderway", top[0].isUnderway);
- // 其他房间
+ // 其他房間
$('.page2 ul li').remove();
var str = '';
notTop.forEach(res => {
@@ -302,7 +302,7 @@ function getRooms () {
}
})
}
-// 房间最前面的跳转按钮
+// 房間最前面的跳轉按鈕
$('.page2 .page2ToRoomBut').click(function () {
var uid = $(this).attr('uid');
var isUnderway = $(this).attr('isUnderway');
@@ -316,7 +316,7 @@ $('.page2 .page2ToRoomBut').click(function () {
}
}
})
-// 其他房间跳转房间按钮
+// 其他房間跳轉房間按鈕
$('.page2 ul').on('click', ' li .go', function () {
var uid = $(this).attr('uid');
if (browser.ios) {
@@ -328,7 +328,7 @@ $('.page2 ul').on('click', ' li .go', function () {
}
})
-// 页面4切换
+// 頁面4切換
$('.page4 .page4_tab div').click(function () {
var i = $(this).index() + 1;
$('.page4').removeClass('page41').removeClass('page42');
@@ -343,7 +343,7 @@ $('.page4 .page4_tab div').click(function () {
giftGetRank(rankType, data);
})
-// 页面4 日榜/总榜切换
+// 頁面4 日榜/總榜切換
$('.page4 .dayTab div').click(function () {
var i = $(this).index() + 1;
$(this).addClass('act').siblings().removeClass('act')
@@ -359,7 +359,7 @@ $('.page4 .dayTab div').click(function () {
giftGetRank(rankType, data);
})
-// 页面4 日期切换
+// 頁面4 日期切換
$('.page4 .timeTab div').click(function () {
var i = $(this).index() + 1;
var datas = $(this).attr('data');
@@ -369,7 +369,7 @@ $('.page4 .timeTab div').click(function () {
giftGetRank(rankType, data);
})
-// 獲取愚人榜单接口
+// 獲取愚人榜單接口
function giftGetRank (rankType, date) {
showLoading()
networkRequest({
@@ -405,7 +405,7 @@ function giftGetRank (rankType, date) {
top3.forEach((res, i) => {
$(`.page4 .top3 .no${i + 1} .tx`).attr('src', res.avatar);
$(`.page4 .top3 .no${i + 1} .nick`).text(res.nick);
- $(`.page4 .top3 .no${i + 1} .score`).html(`${rankType == 1 || rankType == 2 ? '愚乐值' : '娱乐值'}
` + unitProcessing(res.score, 10000, 1, 'w'))
+ $(`.page4 .top3 .no${i + 1} .score`).html(`${rankType == 1 || rankType == 2 ? '愚樂值' : '娛樂值'}
` + unitProcessing(res.score, 10000, 1, 'w'))
})
// 非前三
var str = '';
@@ -416,16 +416,16 @@ function giftGetRank (rankType, date) {
${res.ranking}.
${res.nick}
-
${rankType == 1 || rankType == 2 ? '愚乐值' : '娱乐值'}: ${unitProcessing(res.score, 10000, 1, 'w')}
+
${rankType == 1 || rankType == 2 ? '愚樂值' : '娛樂值'}: ${unitProcessing(res.score, 10000, 1, 'w')}
`
})
$('.page4 ul').append(str);
- // 处理自己榜单
+ // 處理自己榜單
$('.page4 .my .num').text(res.data.meRank.ranking == 0 ? '未上榜' : res.data.meRank.ranking);
$('.page4 .my .tx').attr('src', res.data.meRank.avatar);
$('.page4 .my .nick').text(res.data.meRank.nick);
- $('.page4 .my .score').text(`${rankType == 1 || rankType == 2 ? '愚乐值' : '娱乐值'}` + unitProcessing(res.data.meRank.score, 10000, 1, 'w'));
+ $('.page4 .my .score').text(`${rankType == 1 || rankType == 2 ? '愚樂值' : '娛樂值'}` + unitProcessing(res.data.meRank.score, 10000, 1, 'w'));
} else {
toastMsg(res.message)
}
@@ -438,7 +438,7 @@ function giftGetRank (rankType, date) {
})
}
-// 魔盒切换
+// 魔盒切換
$('.MagicBoxRule .MagicBoxRule_in .tab div').click(function () {
var i = $(this).index() + 1;
$('.MagicBoxRule .MagicBoxRule_in').removeClass('MagicBoxRule1').removeClass('MagicBoxRule2');
@@ -465,7 +465,7 @@ function getRecordPage () {
var str = ''
if (res.data.records.length == 0) {
str = `
-
暂无记录
+
暫無記錄
`
isLock = false;
} else {
@@ -500,7 +500,7 @@ function getRecordPage () {
}
})
}
-// 滚动
+// 滾動
$('.MagicBoxRule .MagicBoxRule_in .MagicBoxRulePage2 ul').scroll(function () {
let scrollTop = $(this).scrollTop()
let scrollHeight = $('.MagicBoxRule .MagicBoxRule_in .MagicBoxRulePage2 ul')[0].scrollHeight
@@ -515,7 +515,7 @@ $('.MagicBoxRule .MagicBoxRule_in .MagicBoxRulePage2 ul').scroll(function () {
}
})
-// 打开魔盒规则
+// 打開魔盒規則
$('.page1 .box1 .pageBox1Rule_icon').click(function () {
$('.MagicBoxRule .MagicBoxRule_in .MagicBoxRulePage2 ul li').remove();
getRecordPage();
@@ -523,31 +523,31 @@ $('.page1 .box1 .pageBox1Rule_icon').click(function () {
bodyScroolFun(true);
})
-// 关闭魔盒规则
+// 關閉魔盒規則
$('.MagicBoxRule').click(function () {
$('.MagicBoxRule').hide();
bodyScroolFun(false);
})
-// 打开规则
+// 打開規則
$('.header .rule_icon').click(function () {
$('.rule').show();
bodyScroolFun(true);
})
-// 关闭规则
+// 關閉規則
$('.rule').click(function () {
$('.rule').hide();
bodyScroolFun(false);
})
-// 打开限定礼物规则
+// 打開限定禮物規則
$('.header .qualifyGift_icon').click(function () {
$('.limitedGift').show();
bodyScroolFun(true);
})
-// 关闭限定礼物规则
+// 關閉限定禮物規則
$('.limitedGift').click(function () {
$('.limitedGift').hide();
bodyScroolFun(false);