guildAr:退出公会、移除成员

This commit is contained in:
chenruiye
2025-02-28 16:24:59 +08:00
committed by qiaofie
parent 5a5889c937
commit 4aea98054b
8 changed files with 401 additions and 310 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -137,7 +137,38 @@ body {
color: #fff;
font-size: px2rem(28);
position: absolute;
top: px2rem(286);
top: px2rem(240);
right: px2rem(32);
z-index: 5;
padding: 0 px2rem(10);
img {
display: inline-block;
width: px2rem(38);
height: px2rem(42);
vertical-align: middle;
margin-top: -0.1rem;
display: none;
}
span {
display: inline-block;
vertical-align: middle;
}
}
.quitAgency {
display: none;
min-width: px2rem(118);
height: px2rem(54);
border-radius: px2rem(54);
line-height: px2rem(54);
text-align: center;
background: #413828;
color: #AFB1B3;
font-size: px2rem(28);
position: absolute;
top: px2rem(310);
right: px2rem(32);
z-index: 5;
padding: 0 px2rem(10);
@@ -755,6 +786,7 @@ body {
}
}
.pub {
position: fixed;
left: 0;
@@ -775,11 +807,25 @@ body {
top: 50%;
transform: translate(-50%, -50%);
p {
h1 {
font-weight: 500;
font-size: px2rem(30);
color: #313131;
text-align: center;
color: #333333;
font-size: px2rem(34);
width: 100%;
font-weight: 600;
padding-bottom: px2rem(35);
}
p {
font-size: px2rem(26);
font-weight: bold;
font-weight: 400;
color: #313131;
line-height: px2rem(36);
strong {
font-weight: 600;
}
}
.butBox {
@@ -805,14 +851,13 @@ body {
}
.ok {
background: linear-gradient(90deg, #53C7D4, #7C5EFD);
background: linear-gradient(90deg, #E29030 0%, #FCC074 100%);
color: #fff;
}
}
}
}
.arabic {
.weeklyRewards .weeklyRewards_in .box .left {
float: right;
@@ -910,7 +955,7 @@ body {
}
.arabic {
.header .inveMember {
.header .inveMember,.quitAgency {
right: auto;
left: px2rem(32);
}

View File

@@ -7,7 +7,7 @@
<title class="text1"></title>
<!-- 公会首页 -->
<link rel="stylesheet" href="../../common/css/reset.css">
<link rel="stylesheet" href="./css/index.css?v1.112">
<link rel="stylesheet" href="./css/index.css?v1.113">
</head>
<body>
@@ -29,6 +29,11 @@
<img src="./images/inveMemberIcon.png" alt="">
<span class="text6">邀请成员</span>
</div>
<!-- 退出公会 -->
<div class="quitAgency">
<img src="./images/inveMemberIcon.png" alt="">
<span class="quit">退出公会</span>
</div>
<!-- 工会昵称 -->
<!-- 公会:公会昵称 -->
<!-- <div class="guildNick"></div> -->
@@ -170,13 +175,20 @@
<div class="pub">
<div class="pub_in">
<!-- 移除此人 -->
<p>من الوكالة؟XXXxxxهل أنت متأكد أنك تريد إزالة </p>
<h1>Removing Members</h1>
<p>
Before you decide to remove the member, please note the following:<br><br>
<strong>Diamond turnover and salary reset:</strong> <br>
Once you remove the member, the diamond turnover and salary accumulated by the member in the agency will be reset. <br><br>
<strong>Please consider your decision carefully.</strong>
</p>
<div class="butBox">
<div class="close text9"></div>
<div class="ok text10"></div>
</div>
</div>
</div>
</body>
</html>
@@ -190,5 +202,5 @@
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<script src="./js/index.js?v=3.1"></script>
<script src="./js/index.js?v=3.11"></script>
<script src="../../common/local/langHandler.js"></script>

View File

@@ -28,6 +28,8 @@ const toastMsg = (content = langReplace(localLang.demoModule.layerIndex2), time
skin: 'msg'
})
}
var guildId = null; //公会ID
var applyQuitButtonFlag;
var roleTypes;
var searTime;
var guildNick;
@@ -147,7 +149,7 @@ function get() {
// 存储分区id partitionId
partitionId = res.data.partitionId;
window.localStorage.setItem('partitionId', res.data.partitionId);
if(partitionId == 8){
if (partitionId == 8) {
$('.weeklyRewards').hide();
}
// 判断身份
@@ -155,6 +157,13 @@ function get() {
if (roleTypes == 1 && res.data.isReview == true) {
$('.audit').show();
}
// 退出公会标识 true-显示false-关闭
applyQuitButtonFlag = res.data.applyQuitButtonFlag;
if (roleTypes == 1 && applyQuitButtonFlag == true) {
$(".quitAgency").html(langReplace(localLang.demoModule.text18))
$(".quitAgency").show()
guildId = res.data.id;
}
guildFun(roleTypes);
if (res.data.wageEnable == false) {
$('.hmemberFlow2').hide()
@@ -207,6 +216,8 @@ function get() {
var str = '';
$('.guildList .top i').text(`(${res.data.members.length})`);
$('.guildList ul li').remove();
// 公会长、管理员可以删除公会其他普通成员
res.data.members.forEach((res, i) => {
str += `
<li>
@@ -220,7 +231,7 @@ function get() {
<img src="${res.userLevel.charmUrl}" alt="" class="charm">
<b>ID:${res.erbanNo}</b>
</div>
${roleTypes == 1 && res.roleType != 1 ? `<div uid=${res.uid} nick=${res.nick} class="but" style="display:block;background:#CDCED6;"}">${langReplace(localLang.demoModule.text14)}</div>` : roleTypes == 2 && res.roleType != 1 && res.roleType != 2 ? `<div uid=${res.uid} nick=${res.nick} class="but" style="display:block;background:#CDCED6;"}">${langReplace(localLang.demoModule.text14)}</div>` : `<div uid=${res.uid} nick=${res.nick} class="but" style="display:none"}">${langReplace(localLang.demoModule.text14)}</div>`}
${roleTypes == 1 && res.roleType != 1 ? `<div uid=${res.uid} nick=${res.nick} class="but" style="display:block;background:#CDCED6;"}">${langReplace(localLang.demoModule.text14)}</div>` : roleTypes == 2 && res.roleType != 1 && res.roleType != 2 && applyQuitButtonFlag == true ? `<div uid=${res.uid} nick=${res.nick} class="but" style="display:block;background:#CDCED6;"}">${langReplace(localLang.demoModule.text14)}</div>` : `<div uid=${res.uid} nick=${res.nick} class="but" style="display:none"}">${langReplace(localLang.demoModule.text14)}</div>`}
</li >
`
@@ -342,7 +353,8 @@ function searchUser(erbanNo) {
$('.guildList ul').on('click', 'li .but', function () {
var uid = $(this).attr('uid');
var nick = $(this).attr('nick');
$('.pub .pub_in p').text(langReplace(localLang.demoModule.text15));
$('.pub .pub_in h1').html(langReplace(localLang.demoModule.text15_h1));
$('.pub .pub_in p').html(langReplace(localLang.demoModule.text15));
$('.pub .pub_in .butBox .ok').attr("uid", uid);
$('.pub').show();
})
@@ -382,15 +394,58 @@ function setManager(targetUid) {
})
}
// 确认移除此人按钮
// 确认移除此人/退出公会按钮
$('.pub .pub_in .butBox .ok').click(function () {
var uid = $(this).attr('uid');
setManager(uid)
var quitFlag = $(this).attr('quit');
if (quitFlag) {
quit()
} else {
setManager(uid)
}
})
// 关闭弹窗
$('.pub .pub_in .butBox .close').click(function () {
$('.pub').hide();
$('.pub .pub_in .butBox .ok').attr("quit", 0);
})
// 退出公会
$('.quitAgency').click(function () {
$('.pub .pub_in h1').html(langReplace(localLang.demoModule.text17_h1));
$('.pub .pub_in p').html(langReplace(localLang.demoModule.text17));
$('.pub .pub_in .butBox .ok').attr("quit", 1);
$('.pub').show();
})
//退出公会 接口
function quit() {
networkRequest({
type: 'post',
url: urlPrefix + '/guild/manager/applyQuit',
data: { guildId },
success(res) {
if (res.code === 200) {
$('.pub').hide();
toastMsg(res.message)
setTimeout(() => {
if (browser.android) {
window.androidJsObj.closeWebView()
} else {
window.webkit.messageHandlers.closeWebView.postMessage(null)
}
}, 1500);
} else {
toastMsg(res.message)
}
hideLoading(layerIndex)
},
error(err) {
hideLoading(layerIndex)
toastMsg(langReplace(localLang.demoModule.layerIndex3))
}
})
}
// 管理员设置
$('.adminSet').click(function () {
window.location.href = `./adminSet2.html?roleTypes=${roleTypes}`

View File

@@ -19,8 +19,19 @@ langAr = {
text12: `الوكيل`,
text13: `المشرف`,
text14: `حذف`,
text15: `هل أنت متأكد أنك تريد إزالة هذا الشخص؟`,
text15_h1: `إزالة العضو`,
text15: `قبل أن تقرر إزالة عضو، يرجى ملاحظة ما يلي:<br><br>
<strong>إعادة تعيين معدل دخل الماس والراتب: </strong> <br>
بمجرد إزالة العضو، سيتم إعادة تعيين معدل دخل الماس والراتب المتراكم لدى العضو في الوكالة<br><br>
<strong>يرجى النظر في قرارك بعناية</strong>`,
text16: `أدخل أي دي مولي ستار للبحث`,
text17_h1: `تعليمات مغادرة الوكالة`,
text17: `يرجى ملاحظة ما يلي:<br><br>
<strong>معدل دخل الماس وإعادة ضبط الرواتب:</strong> <br>
بمجرد مغادرة الوكالة، سيتم إعادة تعيين معدل دخل الماس المتراكم لديك وراتبك في الوكالة. يرجى النظر في قرارك بعناية<br><br>
<strong>عملية مراجعة الطلب: </strong><br>
بعد تقديم طلب تنزيل الوكالة الخاص بك، سوف يقوم الوكيل بمراجعة طلبك خلال 24 ساعة إذا لم يقم الوكيل بمعالجة طلبك خلال 24 ساعة، فسوف يقوم النظام تلقائيًا بالموافقة على طلب تنزيل الوكالة الخاص بك بعد 24 ساعة.`,
text18: `الانسحاب`,
texts1: "إحصائيات دخل العملات",
texts2: "إحصائيات دخل الرواتب",
texts3: "إعدادات معلومات الوكالة",
@@ -279,7 +290,7 @@ langAr = {
textnew14: `أكثر من الحد الأقصى للمبلغ القابل للتحويل.`,
textnew15: `نجاح`,
textnew16: `وقت معالجة طلبات السحب يكون من اليوم الثالث إلى العاشر من كل شهر.`,
textnew17: `موافق`,textnew18: 'تقييم النجوم:',
textnew17: `موافق`, textnew18: 'تقييم النجوم:',
},
bill: {

View File

@@ -17,8 +17,19 @@ langEn = {
text12: `Master`,
text13: `Admin`,
text14: `Delete`,
text15: `Are you sure you want to remove this person?`,
text15_h1: `Removing Members`,
text15: `Before you decide to remove the member, please note the following:<br><br>
<strong>Diamond turnover and salary reset:</strong> <br>
Once you remove the member, the diamond turnover and salary accumulated by the member in the agency will be reset. <br><br>
<strong>Please consider your decision carefully.</strong>`,
text16: `MoliStar ID`,
text17_h1: `Quit Agency Instructions`,
text17: `Before you decide to quit the agency, please note the following:<br><br>
<strong>Diamond Turnover and Salary Reset:</strong> <br>
Once you quit the agency, your accumulated diamond turnover and salary in the agency will be reset. Please consider your decision carefully. <br><br>
<strong>Exit application approval process: </strong><br>
After submitting the application to quit the agency, the agent will review your request within 24 hours. If the agent does not process it within 24 hours, the system will automatically approve your withdrawal application after 24 hours.`,
text18: `Quit`,
texts1: "Coin Income Statistics",
texts2: "Salary Income Statistics",
texts3: "Agency Settings",

View File

@@ -17,8 +17,19 @@ langTr = {
text12: `Usta`,
text13: `Yönetici`,
text14: `Sil`,
text15: `Bu kişiyi kaldırmak istediğinize emin misiniz?`,
text15_h1: `Üyeyi Kaldır`,
text15: `Bir üyeyi silmeye karar vermeden önce lütfen aşağıdakilere dikkat edin:<br><br>
<strong>Elmas devir ve maaş sıfırlama:</strong> <br>
Bir üye çıkarıldığında, üyenin kurumda biriktirdiği elmas devir ve maaş sıfırlanır.<br><br>
<strong>Lütfen kararınızı dikkatlice düşünün.</strong>`,
text16: `MoliStar ID`,
text17_h1: `Loncadan ayrılma talimatları`,
text17: `Before you decide to quit the agency, please note the following:<br><br>
<strong>Diamond Turnover and Salary Reset:</strong> <br>
Once you quit the agency, your accumulated diamond turnover and salary in the agency will be reset. Please consider your decision carefully. <br><br>
<strong>Exit application approval process: </strong><br>
After submitting the application to quit the agency, the agent will review your request within 24 hours. If the agent does not process it within 24 hours, the system will automatically approve your withdrawal application after 24 hours.`,
text18: `Ayrılmak`,
texts1: "jeton Gelir İstatistikleri",
texts2: "Maaş Gelir İstatistikleri",
texts3: "Ajans Ayarları",

View File

@@ -13,14 +13,25 @@ langZh = {
text6: `邀請成員`,
text7: `查看詳情`,
text8: `公會名稱`,
text9: `刪除`,
text9: `取消`,
text10: `確認`,
text11: '公會名稱:',
text12: `會長`,
text13: `管理員`,
text14: `刪除`,
text15: `確定要將此人移除嗎?`,
text15_h1: `移除成員`,
text15: `在您決定刪除成員之前,請注意以下事項:<br><br>
<strong>鑽石流水及薪資重置:</strong> <br>
一旦移除會員,該會員在代理機構累積的鑽石流水及薪資將會被重置。 <br><br>
<strong>請慎重考慮你的決定。</strong>`,
text16: `搜索MoliStarID`,
text17_h1: `退出公会說明`,
text17: `請注意以下幾點:<br><br>
<strong>鑽石流水及薪資重置:</strong> <br>
一旦退出公会,您在代理機構累積的鑽石營業額和薪酬將被重置。請慎重考慮你的決定。<br><br>
<strong>申請審核流程: </strong><br>
提交退出的申請後公会长會在24小時內審核您的請求。若公会长24小時內未處理系統將在24小時後自動批准您的提款申請。`,
text18: `退出公会`,
texts1: `金幣收入統計`,
texts2: `工資收入統計`,
texts3: `公會信息設置`,
@@ -281,7 +292,7 @@ langZh = {
textnew14: `超過最大可轉賬金額。`,
textnew15: `成功`,
textnew16: `提款申請的處理時間為每月3日至10日。`,
textnew17: `確定`,textnew18: '星級評分:',
textnew17: `確定`, textnew18: '星級評分:',
},
bill: {