新增代理人身份判断

This commit is contained in:
dragon
2024-10-15 13:50:13 +08:00
parent dcb3f8c59e
commit 584f1acffe
2 changed files with 4 additions and 2 deletions

View File

@@ -123,11 +123,13 @@ function getConfig() {
networkRequest({
type: 'get',
url: urlPrefix + '/activity/h5/dayConsume',
data:{uid:pubInfo.uid},
data: { uid: pubInfo.uid },
success(res) {
if (res.code === 200) {
// 分区规则
$('.rule .rule_in .box').html(res.data.partitionId == 2 ? langReplace(localLang.demoModule.arRule) : langReplace(localLang.demoModule.enRule));
// 处理是否代理人
res.data.rechargeUser ? $('.myBox').show() : $('.myBox').hide();
// 处理倒计时
countup(res.data.endTime - res.timestamp);
// 处理顶部进度以及个人信息

View File

@@ -4,7 +4,7 @@ langEn = {
layerIndex2: `Success`,
layerIndex3: `Network error`,
text1: `Daily Consumption`,
text2: `Rule`,
text2: `Rules`,
text3: `Hour`,
text4: `Min`,
text5: `Sec`,