暂存
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Payonner</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="text2">Payonner</b>
|
||||
</div>
|
||||
<!-- 账户信息 -->
|
||||
<div class="box currencyType">
|
||||
<span></span>
|
||||
<input type="text" disabled placeholder="Currency Type:USD">
|
||||
<!-- <img src="./images/right.png" alt="" class="right"> -->
|
||||
</div>
|
||||
<div class="box country">
|
||||
<span>*</span>
|
||||
<input type="text" readonly placeholder="Country">
|
||||
<img src="./images/right.png" alt="" class="right">
|
||||
</div>
|
||||
<div class="box payeeAccountNo">
|
||||
<span>*</span>
|
||||
<input type="text" placeholder="payeeAccountNo">
|
||||
</div>
|
||||
<div class="box payeeName">
|
||||
<span>*</span>
|
||||
<input type="text" placeholder="payeeName" onkeyup="this.value=this.value.replace(/[^a-zA-Z]/g,'')">
|
||||
</div>
|
||||
<!-- 按钮 -->
|
||||
<div class="but">
|
||||
<!-- 确认按钮 -->
|
||||
<div class="ok">Confirm</div>
|
||||
<!-- 解绑按钮 -->
|
||||
<div class="determine">Determine</div>
|
||||
</div>
|
||||
<!-- 选择弹窗 -->
|
||||
<div class="pub">
|
||||
<div class="pub_in">
|
||||
<div class="title">Country</div>
|
||||
<div class="soure">OK</div>
|
||||
<div class="countryPub">asdasdasd</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="./js/PAYONNER.js"></script>
|
||||
<script src="../../common/local/langHandler.js"></script>
|
||||
|
||||
</html>
|
@@ -0,0 +1,61 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>USDT</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="text2">USDT</b>
|
||||
</div>
|
||||
<!-- 账户信息 -->
|
||||
<div class="box currencyType">
|
||||
<span></span>
|
||||
<input type="text" disabled placeholder="Currency Type:USD">
|
||||
<!-- <img src="./images/right.png" alt="" class="right"> -->
|
||||
</div>
|
||||
<div class="box country">
|
||||
<span>*</span>
|
||||
<input type="text" readonly placeholder="Country">
|
||||
<img src="./images/right.png" alt="" class="right">
|
||||
</div>
|
||||
<div class="box payeeAccountNo">
|
||||
<span>*</span>
|
||||
<input type="text" placeholder="payeeAccountNo">
|
||||
</div>
|
||||
<!-- 按钮 -->
|
||||
<div class="but">
|
||||
<!-- 确认按钮 -->
|
||||
<div class="ok">Confirm</div>
|
||||
<!-- 解绑按钮 -->
|
||||
<div class="determine">Determine</div>
|
||||
</div>
|
||||
<!-- 选择弹窗 -->
|
||||
<div class="pub">
|
||||
<div class="pub_in">
|
||||
<div class="title">Country</div>
|
||||
<div class="soure">OK</div>
|
||||
<div class="countryPub">asdasdasd</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="./js/USDT.js"></script>
|
||||
<script src="../../common/local/langHandler.js"></script>
|
||||
|
||||
</html>
|
@@ -0,0 +1,61 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Vodafone</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="text2">Vodafone</b>
|
||||
</div>
|
||||
<!-- 账户信息 -->
|
||||
<div class="box currencyType">
|
||||
<span></span>
|
||||
<input type="text" disabled placeholder="Currency Type:USD">
|
||||
<!-- <img src="./images/right.png" alt="" class="right"> -->
|
||||
</div>
|
||||
<div class="box country">
|
||||
<span>*</span>
|
||||
<input type="text" readonly placeholder="Country">
|
||||
<img src="./images/right.png" alt="" class="right">
|
||||
</div>
|
||||
<div class="box payeeAccountNo">
|
||||
<span>*</span>
|
||||
<input type="text" placeholder="payeeAccountNo">
|
||||
</div>
|
||||
<!-- 按钮 -->
|
||||
<div class="but">
|
||||
<!-- 确认按钮 -->
|
||||
<div class="ok">Confirm</div>
|
||||
<!-- 解绑按钮 -->
|
||||
<div class="determine">Determine</div>
|
||||
</div>
|
||||
<!-- 选择弹窗 -->
|
||||
<div class="pub">
|
||||
<div class="pub_in">
|
||||
<div class="title">Country</div>
|
||||
<div class="soure">OK</div>
|
||||
<div class="countryPub">asdasdasd</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="./js/VODAFONE.js"></script>
|
||||
<script src="../../common/local/langHandler.js"></script>
|
||||
|
||||
</html>
|
@@ -118,6 +118,43 @@ ul li div span {
|
||||
margin-top: 0.26667rem;
|
||||
}
|
||||
|
||||
ul .actLi {
|
||||
height: 2.45333rem;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
ul .actLi p,
|
||||
ul .actLi b {
|
||||
margin-top: 0.66667rem;
|
||||
}
|
||||
|
||||
ul .actLi i {
|
||||
font-style: normal;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
height: 0.50667rem;
|
||||
line-height: 0.50667rem;
|
||||
padding: 0 0.21333rem;
|
||||
border-radius: 0px 0.26667rem 0px 0.26667rem;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
font-size: 0.32rem;
|
||||
}
|
||||
|
||||
ul .actLi .sp0 {
|
||||
background: #FCAC3A;
|
||||
}
|
||||
|
||||
ul .actLi .sp1 {
|
||||
background: #04D5C6;
|
||||
}
|
||||
|
||||
ul .actLi .sp2 {
|
||||
background: #FF605A;
|
||||
}
|
||||
|
||||
.arLang .nav .back {
|
||||
right: 0.4rem;
|
||||
left: unset;
|
||||
|
@@ -124,6 +124,43 @@ ul {
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
.actLi {
|
||||
height: px2rem(92);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
p,
|
||||
b {
|
||||
margin-top: px2rem(25);
|
||||
}
|
||||
|
||||
i {
|
||||
font-style: normal;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
height: px2rem(19);
|
||||
line-height: px2rem(19);
|
||||
padding: 0 px2rem(8);
|
||||
border-radius: 0px px2rem(10) 0px px2rem(10);
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
font-size: px2rem(12);
|
||||
}
|
||||
|
||||
.sp0 {
|
||||
background: #FCAC3A;
|
||||
}
|
||||
|
||||
.sp1 {
|
||||
background: #04D5C6;
|
||||
}
|
||||
|
||||
.sp2 {
|
||||
background: #FF605A;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.arLang {
|
||||
|
@@ -367,6 +367,101 @@ html {
|
||||
height: 0.58667rem;
|
||||
}
|
||||
|
||||
.pubWithdrawal {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
z-index: 999;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
display: none;
|
||||
}
|
||||
|
||||
.pubWithdrawal .pubWithdrawal_in {
|
||||
width: 9.14667rem;
|
||||
height: 10.72rem;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
background: #fff;
|
||||
border-radius: 0.42667rem;
|
||||
}
|
||||
|
||||
.pubWithdrawal .pubWithdrawal_in .title {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #313131;
|
||||
font-size: 0.45333rem;
|
||||
font-weight: 500;
|
||||
margin-top: 0.53333rem;
|
||||
margin-bottom: 0.37333rem;
|
||||
}
|
||||
|
||||
.pubWithdrawal .pubWithdrawal_in .boxw {
|
||||
width: 8.08rem;
|
||||
height: 0.53333rem;
|
||||
line-height: 0.53333rem;
|
||||
margin: 0 auto 0.53333rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.pubWithdrawal .pubWithdrawal_in .boxw .left {
|
||||
color: #7B7B7D;
|
||||
font-size: 0.37333rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.pubWithdrawal .pubWithdrawal_in .boxw .right {
|
||||
color: #313131;
|
||||
font-size: 0.37333rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.pubWithdrawal .pubWithdrawal_in .box3 {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.pubWithdrawal .pubWithdrawal_in .box3 b {
|
||||
margin-bottom: 0.16rem;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.pubWithdrawal .pubWithdrawal_in .text {
|
||||
color: #7B7B7D;
|
||||
font-size: 0.37333rem;
|
||||
width: 8.08rem;
|
||||
margin: 0 auto 0.45333rem;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.pubWithdrawal .pubWithdrawal_in .ok {
|
||||
width: 8.08rem;
|
||||
height: 1.22667rem;
|
||||
line-height: 1.22667rem;
|
||||
border-radius: 1.22667rem;
|
||||
background: #04D5C6;
|
||||
margin: 0 auto 0.32rem;
|
||||
color: #FFFFFF;
|
||||
font-size: 0.42667rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.pubWithdrawal .pubWithdrawal_in .close {
|
||||
width: 8.08rem;
|
||||
height: 1.22667rem;
|
||||
line-height: 1.22667rem;
|
||||
border-radius: 1.22667rem;
|
||||
background: #F2F3F7;
|
||||
margin: 0 auto 0;
|
||||
color: #7B7B7D;
|
||||
font-size: 0.42667rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.confirm {
|
||||
width: 9.17333rem;
|
||||
height: 1.06667rem;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
@function px2rem($px, $rem: 37.5) {
|
||||
@return $px / $rem +rem;
|
||||
@function px2rem($px) {
|
||||
@return $px / 37.5+rem;
|
||||
}
|
||||
|
||||
body,
|
||||
@@ -357,6 +357,103 @@ html {
|
||||
}
|
||||
}
|
||||
|
||||
.pubWithdrawal {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
z-index: 999;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
display: none;
|
||||
|
||||
// display: none;
|
||||
.pubWithdrawal_in {
|
||||
width: px2rem(343);
|
||||
height: px2rem(402);
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
background: #fff;
|
||||
border-radius: px2rem(16);
|
||||
|
||||
.title {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #313131;
|
||||
font-size: px2rem(17);
|
||||
font-weight: 500;
|
||||
margin-top: px2rem(20);
|
||||
margin-bottom: px2rem(14);
|
||||
}
|
||||
|
||||
.boxw {
|
||||
width: px2rem(303);
|
||||
height: px2rem(20);
|
||||
line-height: px2rem(20);
|
||||
margin: 0 auto px2rem(20);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
overflow: hidden;
|
||||
|
||||
.left {
|
||||
color: #7B7B7D;
|
||||
font-size: px2rem(14);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.right {
|
||||
color: #313131;
|
||||
font-size: px2rem(14);
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
.box3 {
|
||||
height: auto;
|
||||
b {
|
||||
margin-bottom: px2rem(6);
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.text {
|
||||
color: #7B7B7D;
|
||||
font-size: px2rem(14);
|
||||
width: px2rem(303);
|
||||
margin: 0 auto px2rem(17);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.ok {
|
||||
width: px2rem(303);
|
||||
height: px2rem(46);
|
||||
line-height: px2rem(46);
|
||||
border-radius: px2rem(46);
|
||||
background: #04D5C6;
|
||||
margin: 0 auto px2rem(12);
|
||||
color: #FFFFFF;
|
||||
font-size: px2rem(16);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.close {
|
||||
width: px2rem(303);
|
||||
height: px2rem(46);
|
||||
line-height: px2rem(46);
|
||||
border-radius: px2rem(46);
|
||||
background: #F2F3F7;
|
||||
margin: 0 auto 0;
|
||||
color: #7B7B7D;
|
||||
font-size: px2rem(16);
|
||||
text-align: center;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.confirm {
|
||||
width: px2rem(344);
|
||||
height: px2rem(40);
|
||||
|
@@ -151,7 +151,8 @@ function update(obj) {
|
||||
networkRequest({
|
||||
type: "post",
|
||||
url: urlPrefix + "/guild/usd/withdrawAccount/bound",
|
||||
data: { obj },
|
||||
contentType: 'application/json;charset=UTF-8',
|
||||
data: obj,
|
||||
success: function (res) {
|
||||
if (res.code == 200) {
|
||||
get();
|
||||
@@ -180,7 +181,8 @@ function unbound(obj) {
|
||||
networkRequest({
|
||||
type: "post",
|
||||
url: urlPrefix + "/guild/usd/withdrawAccount/unbound",
|
||||
data: { obj },
|
||||
contentType: 'application/json;charset=UTF-8',
|
||||
data: obj,
|
||||
success: function (res) {
|
||||
if (res.code == 200) {
|
||||
get();
|
||||
|
193
view/molistar/modules/guild-ar/js/PAYONNER.js
Normal file
193
view/molistar/modules/guild-ar/js/PAYONNER.js
Normal file
@@ -0,0 +1,193 @@
|
||||
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.bill.text1));
|
||||
|
||||
}
|
||||
// 获取
|
||||
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('Currency Type:' + res.data.currency);
|
||||
fields = res.data.fields;
|
||||
if (fields.country == '') {
|
||||
$('.but .determine').hide();
|
||||
} else {
|
||||
$('.but .determine').show();
|
||||
}
|
||||
$('.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}' class="countryPub">${res}</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();
|
||||
})
|
||||
// 选中国家
|
||||
$('.pub .pub_in').on('click', '.countryPub', function name(params) {
|
||||
$(this).addClass('act').siblings().removeClass('act');
|
||||
var country = $(this).attr('country');
|
||||
fields.country = country;
|
||||
return false;
|
||||
})
|
||||
// 确认选中国家
|
||||
$('.pub .pub_in .soure').click(function name(params) {
|
||||
$('.country input').val(fields.country);
|
||||
$('.pub').hide();
|
||||
})
|
||||
// 确认绑定按钮
|
||||
$('.but .ok').click(function (params) {
|
||||
console.log(fields);
|
||||
var obj = {}
|
||||
obj.country = $('.country input').val();
|
||||
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('Mandatory fields cannot be blank');
|
||||
}
|
||||
})
|
||||
// 绑定更新信息
|
||||
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');
|
||||
} 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);
|
||||
},
|
||||
});
|
||||
}
|
191
view/molistar/modules/guild-ar/js/VODAFONE.js
Normal file
191
view/molistar/modules/guild-ar/js/VODAFONE.js
Normal file
@@ -0,0 +1,191 @@
|
||||
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.bill.text1));
|
||||
|
||||
}
|
||||
// 获取
|
||||
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('Currency Type:' + res.data.currency);
|
||||
fields = res.data.fields;
|
||||
if (fields.country == '') {
|
||||
$('.but .determine').hide();
|
||||
} else {
|
||||
$('.but .determine').show();
|
||||
}
|
||||
$('.country input').val(fields.country);
|
||||
$('.payeeAccountNo input').val(fields.bank_account);
|
||||
// 渲染国家
|
||||
$('.pub .pub_in .countryPub').remove();
|
||||
var str = '';
|
||||
res.data.countryOptionalList.forEach(res => {
|
||||
str += `
|
||||
<div country='${res}' class="countryPub">${res}</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();
|
||||
})
|
||||
// 选中国家
|
||||
$('.pub .pub_in').on('click', '.countryPub', function name(params) {
|
||||
$(this).addClass('act').siblings().removeClass('act');
|
||||
var country = $(this).attr('country');
|
||||
fields.country = country;
|
||||
return false;
|
||||
})
|
||||
// 确认选中国家
|
||||
$('.pub .pub_in .soure').click(function name(params) {
|
||||
$('.country input').val(fields.country);
|
||||
$('.pub').hide();
|
||||
})
|
||||
// 确认绑定按钮
|
||||
$('.but .ok').click(function (params) {
|
||||
console.log(fields);
|
||||
var obj = {}
|
||||
obj.country = $('.country input').val();
|
||||
obj.bank_account = $('.payeeAccountNo input').val();
|
||||
if (obj.country && obj.bank_account) {
|
||||
fields = obj;
|
||||
var objJson = {
|
||||
uid: pubInfo.uid,
|
||||
type: getQueryString().type,
|
||||
fields,
|
||||
}
|
||||
update(JSON.stringify(objJson));
|
||||
} else {
|
||||
toastMsg('Mandatory fields cannot be blank');
|
||||
}
|
||||
})
|
||||
// 绑定更新信息
|
||||
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');
|
||||
} 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);
|
||||
},
|
||||
});
|
||||
}
|
@@ -98,16 +98,18 @@ function getData() {
|
||||
list.forEach(item => {
|
||||
// tradeType 1 收入 2支出
|
||||
// if (item.tradeType == 1) {
|
||||
str += `<li>
|
||||
<div>
|
||||
<p>${item.type == 1 ? `${langReplace(localLang.bill.text5)}` : item.type == 2 ? `${langReplace(localLang.bill.text6)}` : item.type == 3 ? `${langReplace(localLang.bill.text7)}` : item.type == 4 ? `ID:${type == 1 ? item.target.erbanNo : item.me.erbanNo} ${langReplace(localLang.bill.text8)} ID: ${type == 1 ? item.me.erbanNo : item.target.erbanNo}` : `${langReplace(localLang.bill.text9)}`}</p>
|
||||
<b dir="ltr">${type == 1 ? '+ ' + item.operateUsdNum.toLocaleString() : item.operateUsdNum.toLocaleString()} ÜS</b>
|
||||
</div>
|
||||
<div>
|
||||
<span>${langReplace(localLang.bill.text4)}${item.beforeUsdNum}ÜS -> ${item.afterUsdNum}ÜS</span>
|
||||
<span>${dateFormat(item.createTime, 'yyyy/MM/dd hh:mm:ss')}</span>
|
||||
</div>
|
||||
</li>`
|
||||
str += `
|
||||
<li class="${item.type == 5 || item.type == 6 ? 'actLi' : ''}">
|
||||
<div>
|
||||
${(item.type == 5 || item.type == 6) ? `<i class="sp${item.status}">${(item.status == 0 ? 'In Review' : item.status == 1 ? 'Issued' : 'Rejected')}</i>` : ''}
|
||||
<p>${item.type == 1 ? `${langReplace(localLang.bill.text5)}` : item.type == 2 ? `${langReplace(localLang.bill.text6)}` : item.type == 3 ? `${langReplace(localLang.bill.text7)}` : item.type == 4 ? `ID:${type == 1 ? item.target.erbanNo : item.me.erbanNo} ${langReplace(localLang.bill.text8)} ID: ${type == 1 ? item.me.erbanNo : item.target.erbanNo}` : `${langReplace(localLang.bill.text9)}`}</p>
|
||||
<b dir="ltr">${type == 1 ? '+ ' + item.operateUsdNum.toLocaleString() : item.operateUsdNum.toLocaleString()} ÜS</b>
|
||||
</div>
|
||||
<div>
|
||||
<span>${langReplace(localLang.bill.text4)}${item.beforeUsdNum}ÜS -> ${item.afterUsdNum}ÜS</span>
|
||||
<span>${dateFormat(item.createTime, 'yyyy/MM/dd hh:mm:ss')}</span>
|
||||
</div>
|
||||
</li>`
|
||||
// } else {
|
||||
// str += `<li>
|
||||
// <div>
|
||||
|
@@ -46,6 +46,9 @@ var transfer_dollars_ArrType;
|
||||
var typeTabType = '';
|
||||
var ratio;
|
||||
var usGold;
|
||||
var accountListName;
|
||||
var accountObj = {};
|
||||
var withdrawRate;
|
||||
$(function () {
|
||||
getInfoFromClient();
|
||||
fuzzyMatchUpdateQueryStringParameterFun(); // 判断语言
|
||||
@@ -131,10 +134,12 @@ function getTab() {
|
||||
$('.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" type=${res.type}>
|
||||
<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>
|
||||
@@ -477,7 +482,25 @@ function operateValue(than) {
|
||||
$('.president_pop').show();
|
||||
bodyScroolFun(true);
|
||||
} else if (type == 5) {
|
||||
console.log('账户提领');
|
||||
if (accountListName) {
|
||||
$('.pubWithdrawal .pubWithdrawal_in .ok').attr('guildusdnum', guildUsdNum);
|
||||
$('.pubWithdrawal .pubWithdrawal_in .ok').attr('type', type);
|
||||
$('.pubWithdrawal .pubWithdrawal_in .ok').attr('accountType', accountObj.type);
|
||||
if (accountObj.type == 'VODAFONE') {
|
||||
$('.pubWithdrawal .pubWithdrawal_in .box3 .left p').show();
|
||||
$('.pubWithdrawal .pubWithdrawal_in .box3 .left p span').text(accountObj.usdRatio);
|
||||
$('.pubWithdrawal .pubWithdrawal_in .box4 .right').text(`${((than.attr('guildUsdNum')) - (than.attr('guildUsdNum') * withdrawRate)) * 50} ${accountObj.currency}`);
|
||||
} else {
|
||||
$('.pubWithdrawal .pubWithdrawal_in .box3 .left p').hide();
|
||||
$('.pubWithdrawal .pubWithdrawal_in .box4 .right').text(`${((than.attr('guildUsdNum')) - (than.attr('guildUsdNum') * withdrawRate))} ${accountObj.currency}`);
|
||||
}
|
||||
$('.pubWithdrawal .pubWithdrawal_in .box1 .right').text(`${than.attr('guildUsdNum')}${accountObj.currency}`);
|
||||
$('.pubWithdrawal .pubWithdrawal_in .box2 .right').text(withdrawRate * 100 + '%');
|
||||
$('.pubWithdrawal .pubWithdrawal_in .box3 .right').text(`${than.attr('guildUsdNum') * withdrawRate} ${accountObj.currency}`);
|
||||
$('.pubWithdrawal').show();
|
||||
} else {
|
||||
toastMsg('Please select a withdrawal account')
|
||||
}
|
||||
} else {
|
||||
var obj = {
|
||||
guildUsdNum,
|
||||
@@ -487,6 +510,22 @@ function operateValue(than) {
|
||||
operate(obj)
|
||||
}
|
||||
}
|
||||
// 确认提现按钮
|
||||
$('.pubWithdrawal .pubWithdrawal_in .ok').click(function () {
|
||||
var guildUsdNum = $(this).attr('guildUsdNum');
|
||||
var type = $(this).attr('type');
|
||||
var accountType = $(this).attr('accountType');
|
||||
var obj = {
|
||||
guildUsdNum,
|
||||
accountType,
|
||||
type,
|
||||
};
|
||||
operate(obj)
|
||||
})
|
||||
// 取消提现按钮
|
||||
$('.pubWithdrawal .pubWithdrawal_in .close').click(function () {
|
||||
$('.pubWithdrawal').hide();
|
||||
})
|
||||
// 确认提交接口
|
||||
function operate(obj) {
|
||||
showLoading()
|
||||
@@ -498,7 +537,12 @@ function operate(obj) {
|
||||
if (res.code === 200) {
|
||||
getTab();
|
||||
// window.location.href = `./salary_account.html?type=${obj.type}&createTime=${dateFormat(res.data.createTime,'yyyy/MM/dd hh:mm:ss')}&guildUsdNum=${res.data.guildUsdNum}`
|
||||
window.location.href = `./successful.html?type=${obj.type}&data=${JSON.stringify(res.data)}`
|
||||
if (obj.type == 5) {
|
||||
$('.pubWithdrawal').hide();
|
||||
toastMsg('Success')
|
||||
} else {
|
||||
window.location.href = `./successful.html?type=${obj.type}&data=${JSON.stringify(res.data)}`
|
||||
}
|
||||
} else {
|
||||
toastMsg(res.message)
|
||||
}
|
||||
@@ -524,7 +568,12 @@ $('.selectAccount .selectAccount_in .accountBox').on('click', ' .account', funct
|
||||
})
|
||||
// 选择账户按钮
|
||||
$('.selectAccount .selectAccount_in .accountBox').on('click', ' .account .sel', function () {
|
||||
|
||||
$('.selectAccount .selectAccount_in .accountBox .account .sel').attr("src", './images/not.png');
|
||||
$(this).attr("src", './images/yes.png');
|
||||
accountListName = $(this).attr("name");
|
||||
accountObj = JSON.parse($(this).attr('obj'));
|
||||
$('.withdrawalAccount .right b').text(accountListName);
|
||||
$('.selectAccount').hide();
|
||||
})
|
||||
// 选择账户编辑
|
||||
$('.selectAccount .selectAccount_in .accountBox').on('click', ' .account .eid', function () {
|
||||
|
@@ -176,6 +176,35 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 确认提现账户弹窗 -->
|
||||
<div class="pubWithdrawal">
|
||||
<div class="pubWithdrawal_in">
|
||||
<div class="title">Withdrawal</div>
|
||||
<div class="boxw box1">
|
||||
<div class="left">Withdrawal amount</div>
|
||||
<div class="right">0USD</div>
|
||||
</div>
|
||||
<div class="boxw box2">
|
||||
<div class="left">Handling Fee rate</div>
|
||||
<div class="right">6%</div>
|
||||
</div>
|
||||
<div class="boxw box3">
|
||||
<div class="left">
|
||||
<b>Handling Fee</b>
|
||||
<p>USD to EGP exchange rate: 1:<span>50</span></p>
|
||||
</div>
|
||||
<div class="right">0USD</div>
|
||||
</div>
|
||||
<div class="boxw box4">
|
||||
<div class="left">Estimated amount</div>
|
||||
<div class="right">0USD</div>
|
||||
</div>
|
||||
<div class="text">Note: Estimated arrival amount may be affected by bank exchange rate, etc.</div>
|
||||
<div class="ok">Withdraw</div>
|
||||
<div class="close">Cancel</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="../../common/js/jquery-3.2.1.min.js"></script>
|
||||
<script src="../../common/js/flexible.js"></script>
|
||||
<script src="../../common/js/vconsole.min.js"></script>
|
||||
|
Reference in New Issue
Block a user