优化官网加新增土耳其提现
This commit is contained in:
@@ -740,7 +740,7 @@ function getInfoFromClient() {
|
||||
|
||||
} else {
|
||||
// 非app环境调试参数
|
||||
pubInfo.uid = sessionStorage.getItem("uid") ? sessionStorage.getItem("uid") : '';
|
||||
pubInfo.uid = sessionStorage.getItem("uid") ? sessionStorage.getItem("uid") : '3511';
|
||||
// pubInfo.ticket = sessionStorage.getItem("ticket") ? sessionStorage.getItem("ticket") : '';
|
||||
pubInfo.h5_token = sessionStorage.getItem("ticket") ? sessionStorage.getItem("ticket") : '';
|
||||
pubInfo.deviceId = "0";
|
||||
|
@@ -77,7 +77,7 @@
|
||||
html .container .pagesBox .page1 .recharge {
|
||||
width: 1.62667rem;
|
||||
height: 0.48rem;
|
||||
line-height: 0.4rem;
|
||||
line-height: 0.42667rem;
|
||||
background: linear-gradient(270deg, #E29030 0%, #FCC074 100%);
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
@@ -152,6 +152,18 @@
|
||||
right: 6rem;
|
||||
top: 8.45333rem;
|
||||
}
|
||||
body .container .pagesBox .page1 .team,
|
||||
html .container .pagesBox .page1 .team {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
opacity: 0.6;
|
||||
font-size: 0.21333rem;
|
||||
font-weight: 400;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0.4rem;
|
||||
}
|
||||
body .container .pagesBox .page2,
|
||||
html .container .pagesBox .page2 {
|
||||
width: 100%;
|
||||
|
@@ -88,7 +88,7 @@
|
||||
.recharge {
|
||||
width: px2rem(122);
|
||||
height: px2rem(36);
|
||||
line-height: px2rem(30);
|
||||
line-height: px2rem(32);
|
||||
background: linear-gradient(270deg, #E29030 0%, #FCC074 100%);
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
@@ -163,6 +163,17 @@
|
||||
right: px2rem(450);
|
||||
top: px2rem(634);
|
||||
}
|
||||
.team{
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
opacity: 0.6;
|
||||
font-size: px2rem(16);
|
||||
font-weight: 400;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: px2rem(30);
|
||||
}
|
||||
}
|
||||
|
||||
.page2 {
|
||||
|
@@ -16,7 +16,7 @@
|
||||
<meta property="og:image:type" content="image/png">
|
||||
<link rel="stylesheet" href="../common/css/reset.css">
|
||||
<link rel="stylesheet" href="./css/animate.css">
|
||||
<link rel="stylesheet" href="./css/index.css?v=1.2">
|
||||
<link rel="stylesheet" href="./css/index.css?v=1.22">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -48,16 +48,16 @@
|
||||
</div>
|
||||
<div class="pagesBox">
|
||||
<!-- 頁面1 -->
|
||||
<div class="pages page1"></div>
|
||||
<div class="pages page1" id="img2"></div>
|
||||
|
||||
<!-- 頁面2 -->
|
||||
<div class="pages page2"></div>
|
||||
<div class="pages page2" id="img3"></div>
|
||||
|
||||
<!-- 頁面3 -->
|
||||
<div class="pages page3"></div>
|
||||
<div class="pages page3" id="img4"></div>
|
||||
|
||||
<!-- 頁面4 -->
|
||||
<div class="pages page4"></div>
|
||||
<div class="pages page4" id="img5"></div>
|
||||
</div>
|
||||
|
||||
<!-- 菜單 -->
|
||||
@@ -142,7 +142,7 @@
|
||||
<script src="./local/en.js?v=1.0"></script>
|
||||
<script src="./local/zh.js?v=1.0"></script>
|
||||
<script src="./local/tr.js?v=1.0"></script>
|
||||
<script src="./js/index.js?v=2.123"></script>
|
||||
<script src="./js/index.js?v=2.1231"></script>
|
||||
<script src="../common/local/langHandler.js"></script>
|
||||
</body>
|
||||
|
||||
|
@@ -412,7 +412,7 @@ function animatedImplementFun(index) {
|
||||
}
|
||||
// 處理動畫
|
||||
function animatedFun(dom, arrClass) {
|
||||
// // 獲取元素
|
||||
// // // 獲取元素
|
||||
// const element = dom;
|
||||
// // 添加動畫
|
||||
// element.addClass(...arrClass);
|
||||
|
@@ -60,6 +60,7 @@ langAr = {
|
||||
<h3>استمع إلى الأصوات الجميلة وابحث عن رفقة جديدة</h3>
|
||||
<img src="./images/h5Ios.png" alt="" class="h5Ios">
|
||||
<img src="./images/h5And.png" alt="" class="h5And">
|
||||
<div class="team">Molistar Team</div>
|
||||
</div>
|
||||
<div class="page2 pagesPc">
|
||||
<div class="title">روح مثيرة للاهتمام</div>
|
||||
|
@@ -59,6 +59,7 @@ langEn = {
|
||||
<h3>Hear good voices and find new companionship</h3>
|
||||
<img src="./images/h5Ios.png" alt="" class="h5Ios">
|
||||
<img src="./images/h5And.png" alt="" class="h5And">
|
||||
<div class="team">Molistar Team</div>
|
||||
</div>
|
||||
<div class="page2 pagesPc">
|
||||
<div class="title">Interesting Soul</div>
|
||||
|
@@ -59,6 +59,7 @@ langTr = {
|
||||
<h3>İyi sesler dinleyin ve yeni bir arkadaşlık bulun</h3>
|
||||
<img src="./images/h5Ios.png" alt="" class="h5Ios">
|
||||
<img src="./images/h5And.png" alt="" class="h5And">
|
||||
<div class="team">Molistar Team</div>
|
||||
</div>
|
||||
<div class="page2 pagesPc">
|
||||
<div class="title">İlginç Ruh</div>
|
||||
|
@@ -59,6 +59,7 @@ langZh = {
|
||||
<h3>聽到美好的聲音,並找到新的陪伴</h3>
|
||||
<img src="./images/h5Ios.png" alt="" class="h5Ios">
|
||||
<img src="./images/h5And.png" alt="" class="h5And">
|
||||
<div class="team">Molistar Team</div>
|
||||
</div>
|
||||
<div class="page2 pagesPc">
|
||||
<div class="title">有趣的靈魂</div>
|
||||
|
66
view/molistar/modules/guild-ar/BANK_TRANSFER_LIRA.html
Normal file
66
view/molistar/modules/guild-ar/BANK_TRANSFER_LIRA.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"><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/bankTransferLira.js"></script>
|
||||
<script src="../../common/local/langHandler.js"></script>
|
||||
|
||||
</html>
|
66
view/molistar/modules/guild-ar/CARD_USD.html
Normal file
66
view/molistar/modules/guild-ar/CARD_USD.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"><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/CARD_USD.js"></script>
|
||||
<script src="../../common/local/langHandler.js"></script>
|
||||
|
||||
</html>
|
@@ -181,6 +181,7 @@ body {
|
||||
padding: 0 0.13333rem;
|
||||
position: relative;
|
||||
word-spacing: normal;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.headerBox .headerBox_in div img {
|
||||
|
@@ -186,6 +186,7 @@ body {
|
||||
padding: 0 px2rem(10);
|
||||
position: relative;
|
||||
word-spacing: normal;
|
||||
white-space: nowrap;
|
||||
|
||||
img {
|
||||
display: inline;
|
||||
|
@@ -7,7 +7,7 @@
|
||||
<title class="text1"></title>
|
||||
<!-- 公会首页 -->
|
||||
<link rel="stylesheet" href="../../common/css/reset.css">
|
||||
<link rel="stylesheet" href="./css/index.css?v1.11">
|
||||
<link rel="stylesheet" href="./css/index.css?v1.112">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
212
view/molistar/modules/guild-ar/js/CARD_USD.js
Normal file
212
view/molistar/modules/guild-ar/js/CARD_USD.js
Normal file
@@ -0,0 +1,212 @@
|
||||
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);
|
||||
|
||||
});
|
||||
function translateFun() {
|
||||
langReplace = window.lang.replace;
|
||||
localLang = window.lang;
|
||||
$('.text1').text(langReplace(localLang.CARD_USD.text1));
|
||||
$('.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.CARD_USD.text8));
|
||||
$('.text9').attr('placeholder', langReplace(localLang.payonner.text9));
|
||||
$('.p1').text(langReplace(localLang.pTitle.p1));
|
||||
$('.p7').text(langReplace(localLang.CARD_USD.text11));
|
||||
$('.p5').text(langReplace(localLang.pTitle.p5));
|
||||
|
||||
}
|
||||
// 获取
|
||||
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();
|
||||
obj.full_name = $('.payeeName input').val();
|
||||
if (obj.country && obj.bank_account && obj.full_name) {
|
||||
fields = obj;
|
||||
var objJson = {
|
||||
uid: pubInfo.uid,
|
||||
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,
|
||||
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);
|
||||
},
|
||||
});
|
||||
}
|
212
view/molistar/modules/guild-ar/js/bankTransferLira.js
Normal file
212
view/molistar/modules/guild-ar/js/bankTransferLira.js
Normal file
@@ -0,0 +1,212 @@
|
||||
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);
|
||||
|
||||
});
|
||||
function translateFun() {
|
||||
langReplace = window.lang.replace;
|
||||
localLang = window.lang;
|
||||
$('.text1').text(langReplace(localLang.bankTransferLira.text1));
|
||||
$('.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.bankTransferLira.text8));
|
||||
$('.text9').attr('placeholder', langReplace(localLang.payonner.text9));
|
||||
$('.p1').text(langReplace(localLang.pTitle.p1));
|
||||
$('.p7').text(langReplace(localLang.bankTransferLira.text11));
|
||||
$('.p5').text(langReplace(localLang.pTitle.p5));
|
||||
|
||||
}
|
||||
// 获取
|
||||
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();
|
||||
obj.full_name = $('.payeeName input').val();
|
||||
if (obj.country && obj.bank_account && obj.full_name) {
|
||||
fields = obj;
|
||||
var objJson = {
|
||||
uid: pubInfo.uid,
|
||||
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,
|
||||
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);
|
||||
},
|
||||
});
|
||||
}
|
@@ -345,5 +345,32 @@ langAr = {
|
||||
text5: `اختيار التاريخ`, // 阿拉伯文
|
||||
text6: `تأكيد`, // 阿拉伯文
|
||||
text7: `يبحث`,
|
||||
}
|
||||
},
|
||||
bankTransferLira: {
|
||||
text1: `تحويل بنكي بالليرة`,
|
||||
text2: `تأكيد`,
|
||||
text3: `إلغاء الربط`,
|
||||
text4: `الدولة`,
|
||||
text5: `موافق`,
|
||||
text6: `نوع العملة:`,
|
||||
text7: `الدولة`,
|
||||
text8: `TR+24رقم`,
|
||||
text9: `اسم المستلم`,
|
||||
text10: `لا يمكن ترك الحقول الإجبارية فارغة`,
|
||||
text11: `حساب المستلم`,
|
||||
},
|
||||
CARD_USD: {
|
||||
text1: `بطاقة بالدولار الأمريكي`,
|
||||
text2: `تأكيد`,
|
||||
text3: `إلغاء الربط`,
|
||||
text4: `الدولة`,
|
||||
text5: `موافق`,
|
||||
text6: `نوع العملة:`,
|
||||
text7: `الدولة`,
|
||||
text8: `حساب المستلم`,
|
||||
text9: `اسم المستلم`,
|
||||
text10: `لا يمكن ترك الحقول الإجبارية فارغة`,
|
||||
text11: `حساب المستلم`,
|
||||
},
|
||||
|
||||
}
|
@@ -345,5 +345,31 @@ langEn = {
|
||||
text5: `Date selection`,
|
||||
text6: `Confirm`,
|
||||
text7: `Search`,
|
||||
}
|
||||
},
|
||||
bankTransferLira: {
|
||||
text1: `BankTransfer lira `,
|
||||
text2: `Confirm`,
|
||||
text3: `Unbind `,
|
||||
text4: `Country`,
|
||||
text5: `OK`,
|
||||
text6: `Currency Type:`,
|
||||
text7: `Country`,
|
||||
text8: `TR+24Numbers`,
|
||||
text9: `payeeName`,
|
||||
text10: `Mandatory fields cannot be blank`,
|
||||
text11: `payeeAccount`,
|
||||
},
|
||||
CARD_USD: {
|
||||
text1: `Card usd`,
|
||||
text2: `Confirm`,
|
||||
text3: `Unbind `,
|
||||
text4: `Country`,
|
||||
text5: `OK`,
|
||||
text6: `Currency Type:`,
|
||||
text7: `Country`,
|
||||
text8: `payeeAccount`,
|
||||
text9: `payeeName`,
|
||||
text10: `Mandatory fields cannot be blank`,
|
||||
text11: `payeeAccount`,
|
||||
},
|
||||
}
|
||||
|
@@ -345,6 +345,33 @@ langTr = {
|
||||
text5: `Tarih Seçimi`,
|
||||
text6: `Onayla`,
|
||||
text7: `Ara`,
|
||||
}
|
||||
},
|
||||
bankTransferLira: {
|
||||
text1: `Banka Transferi Lira`,
|
||||
text2: `Onayla`,
|
||||
text3: `Bağlantıyı Kes`,
|
||||
text4: `Ülke`,
|
||||
text5: `Tamam`,
|
||||
text6: `Para Birimi Türü:`,
|
||||
text7: `Ülke`,
|
||||
text8: `TR+24Numara`,
|
||||
text9: `Alıcı Adı`,
|
||||
text10: `Zorunlu alanlar boş bırakılamaz`,
|
||||
text11: `Alıcı Hesabı`,
|
||||
},
|
||||
CARD_USD: {
|
||||
text1: `Kart USD`,
|
||||
text2: `Onayla`,
|
||||
text3: `Bağlantıyı Kes`,
|
||||
text4: `Ülke`,
|
||||
text5: `Tamam`,
|
||||
text6: `Para Birimi Türü:`,
|
||||
text7: `Ülke`,
|
||||
text8: `Alıcı Hesabı`,
|
||||
text9: `Alıcı Adı`,
|
||||
text10: `Zorunlu alanlar boş bırakılamaz`,
|
||||
text11: `Alıcı Hesabı`,
|
||||
},
|
||||
|
||||
|
||||
};
|
||||
|
@@ -346,5 +346,32 @@ langZh = {
|
||||
text5: `日期選擇`, // 繁體中文
|
||||
text6: `確認`, // 繁體中文
|
||||
text7: `查詢`,
|
||||
}
|
||||
},
|
||||
bankTransferLira: {
|
||||
text1: `銀行轉帳里拉`,
|
||||
text2: `確認`,
|
||||
text3: `解除綁定`,
|
||||
text4: `國家`,
|
||||
text5: `確定`,
|
||||
text6: `貨幣類型:`,
|
||||
text7: `國家`,
|
||||
text8: `TR+24數字`,
|
||||
text9: `收款人名稱`,
|
||||
text10: `必填欄位不能為空`,
|
||||
text11: `收款人帳號`,
|
||||
},
|
||||
CARD_USD: {
|
||||
text1: `卡片美元`,
|
||||
text2: `確認`,
|
||||
text3: `解除綁定`,
|
||||
text4: `國家`,
|
||||
text5: `確定`,
|
||||
text6: `貨幣類型:`,
|
||||
text7: `國家`,
|
||||
text8: `收款人帳號`,
|
||||
text9: `收款人名稱`,
|
||||
text10: `必填欄位不能為空`,
|
||||
text11: `收款人帳號`,
|
||||
},
|
||||
|
||||
}
|
@@ -220,11 +220,11 @@
|
||||
<script src="../../common/js/vconsole.min.js"></script>
|
||||
<script src="../../common/js/common2.js"></script>
|
||||
<script src="../../common/js/layer.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/salary.js"></script>
|
||||
<script src="./local/en.js?v=1.0"></script>
|
||||
<script src="./local/zh.js?v=1.0"></script>
|
||||
<script src="./local/ar.js?v=1.0"></script>
|
||||
<script src="./local/tr.js?v=1.0"></script>
|
||||
<script src="./js/salary.js?v=1.0"></script>
|
||||
<script src="../../common/local/langHandler.js"></script>
|
||||
</body>
|
||||
|
||||
|
Reference in New Issue
Block a user