公会新增英语2区
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -824,6 +824,7 @@ html {
|
||||
margin: 0 auto;
|
||||
background: #04D5C6;
|
||||
border-radius: px2rem(25);
|
||||
margin-bottom: px2rem(14);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
66
view/molistar/modules/guild-ar/generalSalary.html
Normal file
66
view/molistar/modules/guild-ar/generalSalary.html
Normal file
@@ -0,0 +1,66 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title class="text1"></title>
|
||||
<link rel="stylesheet" href="../../common/css/reset.css">
|
||||
<link rel="stylesheet" href="./css/BANK.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- 頂部返回 -->
|
||||
<div class="back">
|
||||
<img src="./images/travel/back3.png" alt="">
|
||||
<b class="text1"></b>
|
||||
</div>
|
||||
<!-- 账户信息 -->
|
||||
<div class="box currencyType">
|
||||
<input type="text" disabled placeholder="Currency Type:USD" class="text6">
|
||||
<!-- <img src="./images/right.png" alt="" class="right"> -->
|
||||
</div>
|
||||
<p class="p "><span>*</span> <b class="p1"></b></p>
|
||||
<div class="box country">
|
||||
<input type="text" readonly placeholder="Country" class="text7">
|
||||
<img src="./images/right.png" alt="" class="right">
|
||||
</div>
|
||||
<p class="p "><span>*</span> <b class="p7"></b></p>
|
||||
<div class="box payeeAccountNo">
|
||||
<input type="text" placeholder="payeeAccountNo" class="text8">
|
||||
</div>
|
||||
<p class="p 5 payeeName_top"><span>*</span> <b class="p5"></b></p>
|
||||
<div class="box payeeName">
|
||||
<input type="text" placeholder="payeeName" class="text9"
|
||||
onkeyup="this.value=this.value.replace(/[^a-zA-Z]/g,'')">
|
||||
</div>
|
||||
<!-- 按钮 -->
|
||||
<div class="but">
|
||||
<!-- 确认按钮 -->
|
||||
<div class="ok text2"></div>
|
||||
<!-- 解绑按钮 -->
|
||||
<div class="determine text3"></div>
|
||||
</div>
|
||||
<!-- 选择弹窗 -->
|
||||
<div class="pub">
|
||||
<div class="pub_in">
|
||||
<div class="title text4"></div>
|
||||
<div class="soure text5"></div>
|
||||
<div class="countryPub"></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script src="../../common/js/flexible.js"></script>
|
||||
<script src="../../common/js/jquery-3.2.1.min.js"></script>
|
||||
<script src="../../common/js/common2.js"></script>
|
||||
<script src="../../common/js/layer.js"></script>
|
||||
<script src="../../common/js/vconsole.min.js"></script>
|
||||
<script src="../../common/js/route-constant.js"></script>
|
||||
<script src="./local/en.js"></script>
|
||||
<script src="./local/zh.js"></script>
|
||||
<script src="./local/ar.js"></script>
|
||||
<script src="./local/tr.js"></script>
|
||||
<script src="./js/generalSalary.js"></script>
|
||||
<script src="../../common/local/langHandler.js"></script>
|
||||
|
||||
</html>
|
221
view/molistar/modules/guild-ar/js/generalSalary.js
Normal file
221
view/molistar/modules/guild-ar/js/generalSalary.js
Normal file
@@ -0,0 +1,221 @@
|
||||
const urlData = getQueryString();
|
||||
let urlPrefix = getUrlPrefix()
|
||||
let browser = checkVersion()
|
||||
let env = EnvCheck();
|
||||
if (env == 'test') {
|
||||
new VConsole();
|
||||
}
|
||||
// 封裝layer消息提醒框
|
||||
let layerIndex
|
||||
var langReplace;
|
||||
var localLang;
|
||||
const showLoading = (content = langReplace(localLang.demoModule.layerIndex1)) => {
|
||||
layer.open({
|
||||
type: 2,
|
||||
shadeClose: false,
|
||||
content,
|
||||
success(e) {
|
||||
layerIndex = $(e).attr('index')
|
||||
}
|
||||
})
|
||||
}
|
||||
const hideLoading = (index) => {
|
||||
layer.close(index)
|
||||
}
|
||||
const toastMsg = (content = langReplace(localLang.demoModule.layerIndex2), time = 2) => {
|
||||
layer.open({
|
||||
content,
|
||||
time,
|
||||
skin: 'msg'
|
||||
})
|
||||
}
|
||||
var fields = {};
|
||||
$(function () {
|
||||
getInfoFromClient();
|
||||
fuzzyMatchUpdateQueryStringParameterFun(); // 判断语言
|
||||
setTimeout(function () {
|
||||
// 頁面全屏
|
||||
if (browser.app) {
|
||||
if (browser.android) {
|
||||
window.androidJsObj.initShowNav(false)
|
||||
} else {
|
||||
window.webkit.messageHandlers.initShowNav.postMessage(0)
|
||||
}
|
||||
};
|
||||
// 頂部返回事件
|
||||
$('.back img').click(() => {
|
||||
window.history.back();
|
||||
})
|
||||
fuzzyMatchUpdateQueryStringParameterFun(); // 判断语言
|
||||
langReplace = window.lang.replace;
|
||||
localLang = window.lang;
|
||||
translateFun();
|
||||
get()
|
||||
}, 100);
|
||||
|
||||
});
|
||||
var typeName = urlData.name
|
||||
function translateFun() {
|
||||
langReplace = window.lang.replace;
|
||||
localLang = window.lang;
|
||||
$('.text1').text(typeName);
|
||||
$('.text2').text(langReplace(localLang.payonner.text2));
|
||||
$('.text3').text(langReplace(localLang.payonner.text3));
|
||||
$('.text4').text(langReplace(localLang.payonner.text4));
|
||||
$('.text5').text(langReplace(localLang.payonner.text5));
|
||||
$('.text6').attr('placeholder', langReplace(localLang.payonner.text6));
|
||||
$('.text7').attr('placeholder', langReplace(localLang.payonner.text7));
|
||||
$('.text8').attr('placeholder', langReplace(localLang.pTitle.p7));
|
||||
$('.text9').attr('placeholder', langReplace(localLang.payonner.text9));
|
||||
$('.p1').text(langReplace(localLang.pTitle.p1));
|
||||
$('.p7').text(langReplace(localLang.pTitle.p7));
|
||||
$('.p5').text(langReplace(localLang.pTitle.p5));
|
||||
if (typeName == 'epay') {
|
||||
$('.payeeName').hide();
|
||||
$('.payeeName_top').hide();
|
||||
|
||||
}
|
||||
}
|
||||
// 获取
|
||||
function get() {
|
||||
showLoading();
|
||||
networkRequest({
|
||||
type: "GET",
|
||||
url: urlPrefix + "/guild/usd/withdrawAccount/get",
|
||||
data: { type: getQueryString().type },
|
||||
success: function (res) {
|
||||
if (res.code == 200) {
|
||||
// 回显数据
|
||||
$('.currencyType input').val(langReplace(localLang.payonner.text6) + res.data.currency);
|
||||
fields = res.data.fields;
|
||||
if (fields.country == '') {
|
||||
$('.but .determine').hide();
|
||||
$('.but .ok').show();
|
||||
$('.box input').attr('disabled', false)
|
||||
} else {
|
||||
$('.but .determine').show();
|
||||
$('.but .ok').hide();
|
||||
$('.box input').attr('disabled', true)
|
||||
}
|
||||
$('.currencyType input').attr('disabled', true)
|
||||
$('.country input').val(fields.country);
|
||||
$('.payeeAccountNo input').val(fields.bank_account);
|
||||
$('.payeeName input').val(fields.full_name);
|
||||
// 渲染国家
|
||||
$('.pub .pub_in .countryPub').remove();
|
||||
var str = '';
|
||||
res.data.countryOptionalList.forEach(res => {
|
||||
str += `
|
||||
<div country='${res.value}' name="${res.name}" class="countryPub">${res.name}</div>
|
||||
`
|
||||
})
|
||||
$('.pub .pub_in').append(str);
|
||||
} else {
|
||||
toastMsg(res.message);
|
||||
}
|
||||
hideLoading(layerIndex);
|
||||
},
|
||||
error: function (res) {
|
||||
console.log(res, "报错啦");
|
||||
hideLoading(layerIndex);
|
||||
},
|
||||
});
|
||||
}
|
||||
// 选择国家
|
||||
$('.country').click(function () {
|
||||
$('.pub').show();
|
||||
})
|
||||
// 关闭选择国家
|
||||
$('.pub').click(function (params) {
|
||||
$('.pub').hide();
|
||||
})
|
||||
// 选中国家
|
||||
var nameTitle
|
||||
$('.pub .pub_in').on('click', '.countryPub', function name(params) {
|
||||
$(this).addClass('act').siblings().removeClass('act');
|
||||
nameTitle = $(this).attr('name');
|
||||
var country = $(this).attr('country');
|
||||
fields.country = country;
|
||||
return false;
|
||||
})
|
||||
// 确认选中国家
|
||||
$('.pub .pub_in .soure').click(function name(params) {
|
||||
$('.country input').val(nameTitle);
|
||||
$('.pub').hide();
|
||||
})
|
||||
// 确认绑定按钮
|
||||
$('.but .ok').click(function (params) {
|
||||
console.log(fields);
|
||||
var obj = {}
|
||||
obj.country = fields.country;
|
||||
obj.bank_account = $('.payeeAccountNo input').val();
|
||||
if (typeName !== 'epay') {
|
||||
obj.full_name = $('.payeeName input').val();
|
||||
}
|
||||
if (obj.country && obj.bank_account && (typeName !== 'epay' ?obj.full_name : true)) {
|
||||
fields = obj;
|
||||
var objJson = {
|
||||
uid: pubInfo.uid,
|
||||
// uid: 3840,
|
||||
type: getQueryString().type,
|
||||
fields,
|
||||
}
|
||||
update(JSON.stringify(objJson));
|
||||
} else {
|
||||
toastMsg(langReplace(localLang.payonner.text10));
|
||||
}
|
||||
})
|
||||
// 绑定更新信息
|
||||
function update(obj) {
|
||||
showLoading();
|
||||
networkRequest({
|
||||
type: "post",
|
||||
url: urlPrefix + "/guild/usd/withdrawAccount/bound",
|
||||
contentType: 'application/json;charset=UTF-8',
|
||||
data: obj,
|
||||
success: function (res) {
|
||||
if (res.code == 200) {
|
||||
get();
|
||||
toastMsg('success');
|
||||
location.href = './salary_account.html'
|
||||
} else {
|
||||
toastMsg(res.message);
|
||||
}
|
||||
hideLoading(layerIndex);
|
||||
},
|
||||
error: function (res) {
|
||||
hideLoading(layerIndex);
|
||||
},
|
||||
});
|
||||
}
|
||||
// 解绑
|
||||
$('.but .determine').click(function () {
|
||||
var objJson = {
|
||||
uid: pubInfo.uid,
|
||||
// uid: 3839,
|
||||
type: getQueryString().type,
|
||||
}
|
||||
unbound(JSON.stringify(objJson));
|
||||
})
|
||||
// 解绑
|
||||
function unbound(obj) {
|
||||
showLoading();
|
||||
networkRequest({
|
||||
type: "post",
|
||||
url: urlPrefix + "/guild/usd/withdrawAccount/unbound",
|
||||
contentType: 'application/json;charset=UTF-8',
|
||||
data: obj,
|
||||
success: function (res) {
|
||||
if (res.code == 200) {
|
||||
get();
|
||||
toastMsg('success');
|
||||
} else {
|
||||
toastMsg(res.message);
|
||||
}
|
||||
hideLoading(layerIndex);
|
||||
},
|
||||
error: function (res) {
|
||||
hideLoading(layerIndex);
|
||||
},
|
||||
});
|
||||
}
|
@@ -49,6 +49,7 @@ var usGold;
|
||||
var accountListName;
|
||||
var accountObj = {};
|
||||
var withdrawRate;
|
||||
var partitionId = window.localStorage.getItem('partitionId')
|
||||
$(function () {
|
||||
getInfoFromClient();
|
||||
fuzzyMatchUpdateQueryStringParameterFun(); // 判断语言
|
||||
@@ -106,8 +107,14 @@ $(function () {
|
||||
$('.textnew11').html(langReplace(localLang.salary.textnew11));
|
||||
$('.textnew12').html(langReplace(localLang.salary.textnew12));
|
||||
$('.textnew15').html(langReplace(localLang.salary.textnew15));
|
||||
$('.textnew16').html(langReplace(localLang.salary.textnew16));
|
||||
$('.textnew17').html(langReplace(localLang.salary.textnew17));
|
||||
if(partitionId !=16){
|
||||
$('.textnew16').html(langReplace(localLang.salary.textnew16));
|
||||
|
||||
}else{
|
||||
$('.textnew16').html(langReplace(localLang.newENsalary.textnew16));
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
// 获取usd操作的功能标签tab
|
||||
@@ -151,21 +158,22 @@ function getTab() {
|
||||
})
|
||||
$('.agent_pop .wrap').append(agent_popStr);
|
||||
$('.agent_pop .sure').attr('uid', rechargeUserList[0].uid);
|
||||
// 渲染账户列表
|
||||
var accountListStr = '';
|
||||
withdrawRate = res.data.withdrawAccountVo.withdrawRate;
|
||||
$('.selectAccount .selectAccount_in .accountBox .account').remove();
|
||||
res.data.withdrawAccountVo.accountList.forEach(res => {
|
||||
accountListStr += `
|
||||
<div class="account">
|
||||
<img style="display:${res.hasBound ? 'block' : 'none'}" src="./images/not.png" alt="" class="sel" name=${res.name} type=${res.type} obj='${JSON.stringify(res)}'>
|
||||
<b>${res.name}</b><span>${res.hasBound ? '' : '(Unbound)'}</span>
|
||||
<img src="./images/eidIcon.png" alt="" class="eid" type=${res.type}>
|
||||
</div>
|
||||
`
|
||||
})
|
||||
$('.selectAccount .selectAccount_in .accountBox').append(accountListStr);
|
||||
|
||||
}
|
||||
// 渲染账户列表
|
||||
var accountListStr = '';
|
||||
withdrawRate = res.data.withdrawAccountVo.withdrawRate;
|
||||
$('.selectAccount .selectAccount_in .accountBox .account').remove();
|
||||
res.data.withdrawAccountVo.accountList.forEach(res => {
|
||||
accountListStr += `
|
||||
<div class="account">
|
||||
<img style="display:${res.hasBound ? 'block' : 'none'}" src="./images/not.png" alt="" class="sel" name=${res.name} type=${res.type} obj='${JSON.stringify(res)}'>
|
||||
<b>${res.name}</b><span>${res.hasBound ? '' : '(Unbound)'}</span>
|
||||
<img src="./images/eidIcon.png" alt="" class="eid" type=${res.type} name=${res.name}>
|
||||
</div>
|
||||
`
|
||||
})
|
||||
$('.selectAccount .selectAccount_in .accountBox').append(accountListStr);
|
||||
// 当前可提现余额
|
||||
usGold = res.data.guildUsdNum
|
||||
$('.my_salary p b').text(`${usGold}ÜS`);
|
||||
@@ -269,7 +277,7 @@ function typeTabFun(type) {
|
||||
<img class="wenhao" src="./images/wenhao.png" />
|
||||
</p>
|
||||
<div class="pop" style="display:none">
|
||||
${langReplace(localLang.salary.text21)}
|
||||
${ partitionId!=16 ?langReplace(localLang.salary.text21) : langReplace(localLang.newENsalary.text21)}
|
||||
</div>
|
||||
</li>
|
||||
`
|
||||
@@ -281,7 +289,7 @@ function typeTabFun(type) {
|
||||
<e>${langReplace(localLang.salary.text22)}</e>
|
||||
</p>
|
||||
<div class="pop" style="display:none">
|
||||
${langReplace(localLang.salary.text21)}
|
||||
${ partitionId!=16 ?langReplace(localLang.salary.text21) : langReplace(localLang.newENsalary.text21)}
|
||||
</div>
|
||||
</li>
|
||||
`
|
||||
@@ -293,7 +301,7 @@ function typeTabFun(type) {
|
||||
<e>${langReplace(localLang.salary.text23)}</e>
|
||||
</p>
|
||||
<div class="pop" style="display:none">
|
||||
${langReplace(localLang.salary.text21)}
|
||||
${ partitionId!=16 ?langReplace(localLang.salary.text21) : langReplace(localLang.newENsalary.text21)}
|
||||
</div>
|
||||
</li>
|
||||
`
|
||||
@@ -648,7 +656,20 @@ $('.selectAccount .selectAccount_in .accountBox').on('click', ' .account .sel',
|
||||
// 选择账户编辑
|
||||
$('.selectAccount .selectAccount_in .accountBox').on('click', ' .account .eid', function () {
|
||||
var type = $(this).attr('type');
|
||||
location.href = `./${type}.html?type=${type}`
|
||||
if (partitionId != 16) {
|
||||
location.href = `./${type}.html?type=${type}`
|
||||
} else {
|
||||
var name = $(this).attr('name');
|
||||
if (name == 'bank') {
|
||||
location.href = `./BANK.html?type=${type}`
|
||||
} else if (name == 'payonner') {
|
||||
location.href = `./PAYONNER.html?type=${type}`
|
||||
}
|
||||
else {
|
||||
location.href = `./generalSalary.html?type=${type}&name=${name}`
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
// 关闭成功按钮
|
||||
$('.success .success_in .but').click(function () {
|
||||
|
@@ -293,6 +293,10 @@ langAr = {
|
||||
textnew17: `موافق`, textnew18: 'تقييم النجوم:',
|
||||
|
||||
},
|
||||
newENsalary:{
|
||||
textnew16:'تم الإرسال بنجاح! لقد قبل النظام طلبك وسيُعالجه في أقرب وقت ممكن.',
|
||||
text21:'يمكن للوكيل الانسحاب مرة واحدة في الأسبوع.'
|
||||
},
|
||||
bill: {
|
||||
text1: `الفاتورة`,
|
||||
text2: `الدخل`,
|
||||
|
@@ -293,6 +293,10 @@ langEn = {
|
||||
textnew17: `OK`,
|
||||
textnew18: `Star rating:`,
|
||||
},
|
||||
newENsalary:{
|
||||
textnew16:'Submission successful! The system has accepted your application and will process it as soon as possible.',
|
||||
text21:'The Agent can withdraw once a week.'
|
||||
},
|
||||
bill: {
|
||||
text1: `Bill`,
|
||||
text2: `Income`,
|
||||
|
@@ -293,6 +293,10 @@ langTr = {
|
||||
textnew17: `Tamam`, textnew18: 'Yıldız puanı:',
|
||||
|
||||
},
|
||||
newENsalary:{
|
||||
textnew16:'Gönderim başarılı! Sistem başvurunuzu kabul etti ve en kısa sürede işleme koyacak.',
|
||||
text21:'Acente haftada bir kez çekim yapabilir.'
|
||||
},
|
||||
bill: {
|
||||
text1: `Fatura`,
|
||||
text2: `Gelir`,
|
||||
|
@@ -295,6 +295,10 @@ langZh = {
|
||||
textnew17: `確定`, textnew18: '星級評分:',
|
||||
|
||||
},
|
||||
newENsalary:{
|
||||
textnew16:'提交成功!系統已受理您的申請,將盡快為您處理。',
|
||||
text21:'公会长每周可提现1次。'
|
||||
},
|
||||
bill: {
|
||||
text1: `賬單`,
|
||||
text2: `收入`,
|
||||
|
Reference in New Issue
Block a user