|
|
|
@@ -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;
|
|
|
|
|
})
|
|
|
|
|
// 确认选中区号
|
|
|
|
|