公会申请-英语2区创建成功弹窗调整

This commit is contained in:
2025-07-30 14:57:50 +08:00
parent 0c9f00e31c
commit 83d369616d
5 changed files with 44 additions and 20 deletions

View File

@@ -65,25 +65,34 @@ function translateFun() {
$('.text6').text(langReplace(localLang.createGuild.text6));
$('.text7').text(langReplace(localLang.createGuild.text7));
$('.text8').text(langReplace(localLang.createGuild.text8));
$('.text9').text(langReplace(localLang.createGuild.text9));
$('.text10').text(langReplace(localLang.createGuild.text10));
// $('.text9').text(langReplace(localLang.createGuild.text9));
// $('.text10').text(langReplace(localLang.createGuild.text10));
$('.placeholder').attr('placeholder', langReplace(localLang.createGuild.placeholder));
$('.Area_Code').text(langReplace(localLang.createGuild.Area_Code));
$('.Contact_type').text(langReplace(localLang.createGuild.Contact_type));
$('.Select').attr('placeholder',langReplace(localLang.createGuild.Select));
$('.Please_number').attr('placeholder', langReplace(localLang.createGuild.Please_number));
$('.confirm').text(langReplace(localLang.createGuild.confirm));
$('.Contact_type').text(langReplace(localLang.createGuild.Contact_type));
$('.Select').attr('placeholder', langReplace(localLang.createGuild.Select));
$('.Please_number').attr('placeholder', langReplace(localLang.createGuild.Please_number));
$('.confirm').text(langReplace(localLang.createGuild.confirm));
}
$('.submitSuccessfully .submitSuccessfully_in .but').click(function () {
$('.submitSuccessfully').hide();
if (browser.android) {
window.androidJsObj.closeWebView()
} else {
window.webkit.messageHandlers.closeWebView.postMessage(null)
if(partitionId == 16){
if (browser.android) {
window.androidJsObj.openAppConcernedChat(92368)
} else {
window.webkit.messageHandlers.openAppConcernedChat.postMessage(92368)
}
}else{
if (browser.android) {
window.androidJsObj.closeWebView()
} else {
window.webkit.messageHandlers.closeWebView.postMessage(null)
}
}
})
function fileChangeF(e) {
var file = document.querySelector('#backImageUpload').files[0];
@@ -199,6 +208,7 @@ function getToken(file, type) {
})
}
var erbanNo;
var partitionId;
// 自己信息接口
function h5User() {
@@ -217,6 +227,14 @@ function h5User() {
$('.inviterInfo .InviterId input').val(res.data.inviteErbanNo)
$('.inviterInfo .InviterId input').attr('disabled', 'disabled');
}
partitionId = res.data.partitionId;
if (res.data.partitionId == 16) {
$('.text9').html(langReplace(localLang.createGuild.text9_new));
$('.text10').text(langReplace(localLang.createGuild.text10_new));
} else {
$('.text9').text(langReplace(localLang.createGuild.text9));
$('.text10').text(langReplace(localLang.createGuild.text10));
}
} else {
toastMsg(res.message)
}
@@ -229,7 +247,7 @@ function h5User() {
})
}
// 区号接口
function getParamOptions(){
function getParamOptions() {
showLoading()
networkRequest({
type: 'get',
@@ -237,16 +255,16 @@ function getParamOptions(){
success(res) {
if (res.code == 200) {
let str = '';
res.data.areaCodeOption.forEach((item,index) => {
res.data.areaCodeOption.forEach((item, index) => {
str += `
<div value='${item}' class="countryPub">+${item}</div>
`
});
$('.areaCodeOption .areaCode').text('+'+res.data.areaCodeOption[0]);
$('.areaCodeOption .areaCode').text('+' + res.data.areaCodeOption[0]);
$('.pub .pub_in .countryPubTab').append(str);
let contactTypeStr = '';
res.data.contactTypeOption.forEach((item,index) => {
res.data.contactTypeOption.forEach((item, index) => {
contactTypeStr += `
<div value='${item}' class="countryPub">${item}</div>
`
@@ -289,7 +307,7 @@ $('.butBox').click(function () {
var guildAvatar = $('.info .agencyAvatar').attr('src');
var guildName = $('.info .agencyName input').val();
var guildContact = $('.info .agentContactInfo input').val();
var countryCode = $('.areaCode').text().replace('+', '');
var countryCode = $('.areaCode').text().replace('+', '');
;
var idCard = $('.info .agentIDCardImg').attr('src');
var inviteErbanNo = $('.inviterInfo .InviterId input').val();
@@ -298,7 +316,7 @@ $('.butBox').click(function () {
var obj = {};
obj.guildAvatar = guildAvatar;
obj.guildName = guildName;
obj.guildContact = countryCode+guildContact;
obj.guildContact = countryCode + guildContact;
obj.idCard = idCard;
obj.inviteErbanNo = inviteErbanNo;
obj.inviteCheck = inviteCheck;
@@ -325,7 +343,7 @@ $('.pub .pub_in').on('click', '.countryPub', function name(params) {
})
// 确认选中区号
$('.pub .pub_in .soure').click(function name(params) {
$('.areaCodeOption .areaCode').text('+'+nameTitle);
$('.areaCodeOption .areaCode').text('+' + nameTitle);
$('.pub').hide();
})
var ContactName;
@@ -336,7 +354,7 @@ $('.Contact_box').click(function () {
// 选中联系方式
$('.pub_Contact .pub_in').on('click', '.countryPub', function name(params) {
$(this).addClass('act').siblings().removeClass('act');
ContactName =$(this).attr('value');
ContactName = $(this).attr('value');
return false;
})
// 确认选中区号

View File

@@ -114,6 +114,8 @@ langAr = {
Select:'اختر',
Please_number:'يرجى إدخال رقم هاتفك',
confirm: `موافق`,
text9_new:'تهانينا على إنشاء وكالتك الجديدة! <br /> لنساعدك على النمو بشكل أسرع، أضف مديرنا الرسمي الآن واحصل فورًا على: <br /> ✔ 7000 عملة <br /> ✔ لوحة اسم حصرية <br /> ✔ مركبة إصدار محدود (3 أيام) <br /> اجعل وكالتك مميزة من اليوم الأول! <br />' ,
text10_new:'البحث عن المدير الرسمي',
},
guildInfoSet: {
text1: `إعدادات معلومات الوكالة `,

View File

@@ -114,7 +114,8 @@ langEn = {
Select:'Select',
Please_number:'Please enter your phone number',
confirm: `OK`,
text9_new:'Congratulations on creating your new agency! <br /> To help you grow faster, add our official manager now and instantly get: <br /> ✔ 7000 coins <br /> ✔ Exclusive Nameplate <br /> ✔ Limited-edition Vehicle (3 days) <br /> Make your agency stand out from day one!',
text10_new:'Find Official manager',
},
guildInfoSet: {
text1: `Agency Settings`,

View File

@@ -113,7 +113,8 @@ langTr = {
Select:'Seç',
Please_number:'Lütfen telefon numaranızı girin',
confirm: `Tamam`,
text9_new:'Yeni acentenizi kurduğunuz için tebrikler! <br /> Daha hızlı büyümenize yardımcı olmak için, resmi yöneticimizi hemen ekleyin ve anında şunları kazanın: <br /> ✔ 7000 jeton <br /> ✔ Özel İsim Plakası <br /> ✔ Sınırlı sayıda üretilen Araç (3 gün) <br /> Acentanızı ilk günden öne çıkarın!',
text10_new:'Resmi yöneticiyi bul',
},
guildInfoSet: {
text1: `Ajans Ayarları`,

View File

@@ -115,6 +115,8 @@ langZh = {
Select:'選擇',
Please_number:'請輸入您的電話號碼',
confirm: `確定`,
text9_new:'恭喜您创建了新的公会!<br /> 为了帮助您更快成长,立即添加我们的官方运营账号,即可获得:<br /> ✔ 1 美元金币 <br /> ✔ 独家创始人铭牌 <br /> ✔ 限量版坐骑3 天)<br /> 让您的公会从第一天起就脱颖而出!',
text10_new:'寻找官方经理',
},
guildInfoSet: {
text1: `公會信息設置`,