修复bug
This commit is contained in:
@@ -69,9 +69,9 @@ function translateFun() {
|
|||||||
$('.text9').text(langReplace(localLang.incomeStatistics.text9));
|
$('.text9').text(langReplace(localLang.incomeStatistics.text9));
|
||||||
if (roleTypes != 1) {
|
if (roleTypes != 1) {
|
||||||
$('.Member').hide();
|
$('.Member').hide();
|
||||||
$('.income h3').text(langReplace(localLang.incomeStatistics.text222));
|
|
||||||
} else {
|
|
||||||
$('.income h3').text(langReplace(localLang.incomeStatistics.text22));
|
$('.income h3').text(langReplace(localLang.incomeStatistics.text22));
|
||||||
|
} else {
|
||||||
|
$('.income h3').text(langReplace(localLang.incomeStatistics.text222));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//接口
|
//接口
|
||||||
@@ -99,8 +99,10 @@ function income(startDate, endDate) {
|
|||||||
$('.dayDate').append(dailyIncomeListStr);
|
$('.dayDate').append(dailyIncomeListStr);
|
||||||
// 渲染成员收益统计
|
// 渲染成员收益统计
|
||||||
var memberIncomeStr = '';
|
var memberIncomeStr = '';
|
||||||
res.data.memberIncome.memberIncomeList.forEach((res, i) => {
|
if (res.data.memberIncome) {
|
||||||
memberIncomeStr += `
|
totalGoldIncome[1] = res.data.memberIncome.totalGoldIncome;
|
||||||
|
res.data.memberIncome.memberIncomeList.forEach((res, i) => {
|
||||||
|
memberIncomeStr += `
|
||||||
<li class="${(i + 1) % 2 === 0 ? 'act' : ''}">
|
<li class="${(i + 1) % 2 === 0 ? 'act' : ''}">
|
||||||
<div class="tx">
|
<div class="tx">
|
||||||
<img src="${res.member.avatar}" alt="">
|
<img src="${res.member.avatar}" alt="">
|
||||||
@@ -114,8 +116,9 @@ function income(startDate, endDate) {
|
|||||||
<div class="duration">${res.micRemainTime}</div>
|
<div class="duration">${res.micRemainTime}</div>
|
||||||
</li>
|
</li>
|
||||||
`
|
`
|
||||||
})
|
})
|
||||||
$('.userInfo').append(memberIncomeStr);
|
$('.userInfo').append(memberIncomeStr);
|
||||||
|
}
|
||||||
// 渲染周期
|
// 渲染周期
|
||||||
var str = '';
|
var str = '';
|
||||||
res.data.cycleDateList.forEach((val, i) => {
|
res.data.cycleDateList.forEach((val, i) => {
|
||||||
@@ -127,7 +130,6 @@ function income(startDate, endDate) {
|
|||||||
// 首次处理
|
// 首次处理
|
||||||
$('.titleInfo div').eq(0).text(index == 0 ? langReplace(localLang.incomeStatistics.text5) : langReplace(localLang.incomeStatistics.text9));
|
$('.titleInfo div').eq(0).text(index == 0 ? langReplace(localLang.incomeStatistics.text5) : langReplace(localLang.incomeStatistics.text9));
|
||||||
totalGoldIncome[0] = res.data.dailyIncome.totalGoldIncome;
|
totalGoldIncome[0] = res.data.dailyIncome.totalGoldIncome;
|
||||||
totalGoldIncome[1] = res.data.memberIncome.totalGoldIncome;
|
|
||||||
$('.income .gold b').text(totalGoldIncome[index - 1]);
|
$('.income .gold b').text(totalGoldIncome[index - 1]);
|
||||||
} else {
|
} else {
|
||||||
toastMsg(res.message)
|
toastMsg(res.message)
|
||||||
@@ -151,10 +153,12 @@ $('.tab div').click(function () {
|
|||||||
$('.titleInfo').removeClass('titleInfoAct');
|
$('.titleInfo').removeClass('titleInfoAct');
|
||||||
$('.titleInfo div').eq(0).text(langReplace(localLang.incomeStatistics.text5));
|
$('.titleInfo div').eq(0).text(langReplace(localLang.incomeStatistics.text5));
|
||||||
$('.dayDate').show();
|
$('.dayDate').show();
|
||||||
|
$('.income h3').text(langReplace(localLang.incomeStatistics.text222));
|
||||||
} else {
|
} else {
|
||||||
$('.titleInfo').addClass('titleInfoAct');
|
$('.titleInfo').addClass('titleInfoAct');
|
||||||
$('.titleInfo div').eq(0).text(langReplace(localLang.incomeStatistics.text9));
|
$('.titleInfo div').eq(0).text(langReplace(localLang.incomeStatistics.text9));
|
||||||
$('.userInfo').show();
|
$('.userInfo').show();
|
||||||
|
$('.income h3').text(langReplace(localLang.incomeStatistics.text22));
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// 打开周期选择
|
// 打开周期选择
|
||||||
|
@@ -170,9 +170,9 @@ langAr = {
|
|||||||
incomeStatistics: {
|
incomeStatistics: {
|
||||||
text1: `إحصائيات الدخل`,
|
text1: `إحصائيات الدخل`,
|
||||||
text2: `إجمالي دخل العملات`,
|
text2: `إجمالي دخل العملات`,
|
||||||
text22:`دخل الوكالة`,
|
text22: `دخل الوكالة`,
|
||||||
text222:`الدخل الشخصي`,
|
text222: `الدخل الشخصي`,
|
||||||
text3: `بيانات يومية`,
|
text3: `البيانات الشخصية`,
|
||||||
text4: `بيانات الأعضاء`,
|
text4: `بيانات الأعضاء`,
|
||||||
text5: `التاريخ`,
|
text5: `التاريخ`,
|
||||||
text6: `دخل العملات`,
|
text6: `دخل العملات`,
|
||||||
|
@@ -170,7 +170,7 @@ langEn = {
|
|||||||
text2:`Total Coins Income`,
|
text2:`Total Coins Income`,
|
||||||
text22:`Agnecy Income`,
|
text22:`Agnecy Income`,
|
||||||
text222:`Personal Income`,
|
text222:`Personal Income`,
|
||||||
text3:`Daily Data`,
|
text3:`Personal Data`,
|
||||||
text4:`Member Data`,
|
text4:`Member Data`,
|
||||||
text5:`Date`,
|
text5:`Date`,
|
||||||
text6:`Coins Income`,
|
text6:`Coins Income`,
|
||||||
|
@@ -171,9 +171,9 @@ langZh = {
|
|||||||
incomeStatistics: {
|
incomeStatistics: {
|
||||||
text1: `收入統計`,
|
text1: `收入統計`,
|
||||||
text2: `總幣收入`,
|
text2: `總幣收入`,
|
||||||
text22:`機構收入`,
|
text22:`公會收入`,
|
||||||
text222:`個人收入`,
|
text222:`個人收入`,
|
||||||
text3: `每日數據`,
|
text3:`個人資料`,
|
||||||
text4: `會員數據`,
|
text4: `會員數據`,
|
||||||
text5: `日期`,
|
text5: `日期`,
|
||||||
text6: `幣收入`,
|
text6: `幣收入`,
|
||||||
|
Reference in New Issue
Block a user