From 9fecee67a7b180f4af043671ac7fa7ac6f786f88 Mon Sep 17 00:00:00 2001
From: yujiacong <1016029365@qq.com>
Date: Fri, 4 Jul 2025 16:36:59 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E4=BC=9A=E7=94=B3=E8=AF=B7-=E8=8B=B1?=
=?UTF-8?q?=E8=AF=AD2=E5=8C=BA=E5=88=9B=E5=BB=BA=E6=88=90=E5=8A=9F?=
=?UTF-8?q?=E5=BC=B9=E7=AA=97=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/guild-ar/js/createGuild.js | 54 ++++++++++++-------
view/molistar/modules/guild-ar/local/ar.js | 3 ++
view/molistar/modules/guild-ar/local/en.js | 2 +
view/molistar/modules/guild-ar/local/tr.js | 2 +
view/molistar/modules/guild-ar/local/zh.js | 2 +
5 files changed, 45 insertions(+), 18 deletions(-)
diff --git a/view/molistar/modules/guild-ar/js/createGuild.js b/view/molistar/modules/guild-ar/js/createGuild.js
index 8b4d8b92..55521f92 100644
--- a/view/molistar/modules/guild-ar/js/createGuild.js
+++ b/view/molistar/modules/guild-ar/js/createGuild.js
@@ -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 += `
+${item}
`
});
- $('.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 += `
${item}
`
@@ -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;
})
// 确认选中区号
diff --git a/view/molistar/modules/guild-ar/local/ar.js b/view/molistar/modules/guild-ar/local/ar.js
index 96a0e355..05645446 100644
--- a/view/molistar/modules/guild-ar/local/ar.js
+++ b/view/molistar/modules/guild-ar/local/ar.js
@@ -114,6 +114,9 @@ langAr = {
Select:'اختر',
Please_number:'يرجى إدخال رقم هاتفك',
confirm: `موافق`,
+ text9_new:'تهانينا على إنشاء وكالتك الجديدة!
لنساعدك على النمو بشكل أسرع، أضف مديرنا الرسمي الآن واحصل فورًا على:
✔ 7000 عملة
✔ لوحة اسم حصرية
✔ مركبة إصدار محدود (3 أيام)
اجعل وكالتك مميزة من اليوم الأول!
' ,
+ text10_new:'البحث عن المدير الرسمي',
+
},
guildInfoSet: {
text1: `إعدادات معلومات الوكالة `,
diff --git a/view/molistar/modules/guild-ar/local/en.js b/view/molistar/modules/guild-ar/local/en.js
index 46a455f4..42e636d8 100644
--- a/view/molistar/modules/guild-ar/local/en.js
+++ b/view/molistar/modules/guild-ar/local/en.js
@@ -114,6 +114,8 @@ langEn = {
Select:'Select',
Please_number:'Please enter your phone number',
confirm: `OK`,
+ text9_new:'Congratulations on creating your new agency!
To help you grow faster, add our official manager now and instantly get:
✔ 7000 coins
✔ Exclusive Nameplate
✔ Limited-edition Vehicle (3 days)
Make your agency stand out from day one!',
+ text10_new:'Find Official manager',
},
guildInfoSet: {
diff --git a/view/molistar/modules/guild-ar/local/tr.js b/view/molistar/modules/guild-ar/local/tr.js
index 01cf6ef7..cb7d83a8 100644
--- a/view/molistar/modules/guild-ar/local/tr.js
+++ b/view/molistar/modules/guild-ar/local/tr.js
@@ -113,6 +113,8 @@ langTr = {
Select:'Seç',
Please_number:'Lütfen telefon numaranızı girin',
confirm: `Tamam`,
+ text9_new:'Yeni acentenizi kurduğunuz için tebrikler!
Daha hızlı büyümenize yardımcı olmak için, resmi yöneticimizi hemen ekleyin ve anında şunları kazanın:
✔ 7000 jeton
✔ Özel İsim Plakası
✔ Sınırlı sayıda üretilen Araç (3 gün)
Acentanızı ilk günden öne çıkarın!',
+ text10_new:'Resmi yöneticiyi bul',
},
guildInfoSet: {
diff --git a/view/molistar/modules/guild-ar/local/zh.js b/view/molistar/modules/guild-ar/local/zh.js
index c48ab139..f29ed980 100644
--- a/view/molistar/modules/guild-ar/local/zh.js
+++ b/view/molistar/modules/guild-ar/local/zh.js
@@ -115,6 +115,8 @@ langZh = {
Select:'選擇',
Please_number:'請輸入您的電話號碼',
confirm: `確定`,
+ text9_new:'恭喜您创建了新的公会!
为了帮助您更快成长,立即添加我们的官方运营账号,即可获得:
✔ 1 美元金币
✔ 独家创始人铭牌
✔ 限量版坐骑(3 天)
让您的公会从第一天起就脱颖而出!',
+ text10_new:'寻找官方经理',
},
guildInfoSet: {
text1: `公會信息設置`,