@@ -227,7 +227,7 @@ | |||
margin-left: 10px; | |||
} | |||
#bankType,#accountType{ | |||
#bankType,#accountType,#sheng,#shi,#bankAddress{ | |||
height: 36px; | |||
border: 1px solid #e3e3e3; | |||
margin-left: 10px; | |||
@@ -26,7 +26,9 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", | |||
}, | |||
modifyUrl:'', | |||
detailUrl:'' | |||
detailUrl:'', | |||
sheng:[], | |||
shi:[] | |||
}, | |||
}; | |||
var tools = new Tools(); | |||
@@ -41,7 +43,6 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", | |||
if(!tools.getCookie('Admin-Token')){ | |||
tools.skip('../../index.html') | |||
} | |||
//用户资料 | |||
//tools.doPut(userData, {id:}, module.userData,true); | |||
@@ -70,8 +71,56 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", | |||
module.switchTheme(); | |||
},500) | |||
module.data.sheng = options; | |||
module.data.shi = options[0].children; | |||
var shengData = template('shengData', module.data); | |||
$("#sheng").html(shengData); | |||
var shiData = template('shiData', module.data); | |||
$("#shi").html(shiData); | |||
}; | |||
getShi = function () { | |||
console.log($('#bankTypeData').val()) | |||
// if (!$('#bankTypeData').val()){ | |||
// return; | |||
// } | |||
module.data.shi = module.data.sheng.filter(function (e) { return e.label == $('#sheng').val(); })[0].children; | |||
var shiData = template('shiData', module.data); | |||
$("#shi").html(shiData); | |||
// tools.doGet(depositList, {sheng:$('#sheng').val(),shi:$('#shi').val()}, module.depositList, true); | |||
} | |||
getDeposit = function () { | |||
let data = { | |||
sheng:$('#sheng').val(), | |||
shi:$('#shi').val(), | |||
bankType:$('#bankType').val(), | |||
bankDeposit:$('#bankDeposit').val(), | |||
} | |||
console.log(data) | |||
tools.doPost(depositList, data,module.depositList); | |||
} | |||
changeBankAddress = function () { | |||
console.log($('#bankAddress').val()) | |||
console.log(module.data.bankAddress.filter(function (e) { return e.bankDeposit == $('#bankAddress').val(); })) | |||
document.getElementById('payeePaymentLines').value = | |||
module.data.bankAddress.filter(function (e) { return e.bankDeposit == $('#bankAddress').val(); })[0].payeePaymentLines; | |||
} | |||
module.depositList = function (data) { | |||
var content = data.data; | |||
module.data.bankAddress = content; | |||
var bankAddressData = template('bankAddressData', module.data); | |||
$("#bankAddress").html(bankAddressData); | |||
if (content.length>0){ | |||
// changeBankAddress(); | |||
}else{ | |||
document.getElementById('payeePaymentLines').value = ''; | |||
} | |||
} | |||
//底部友情链接 | |||
module.bankType = function (data) { | |||
if (data.code == 200) { | |||
@@ -189,7 +238,10 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", | |||
//console.log(data) | |||
module.data.userInformationDetail = content; | |||
module.data.memberType = content.memberType; | |||
var bankTypeData = template('bankTypeData', module.data); | |||
$("#bankType").html(bankTypeData); | |||
var bankAddressData = template('bankAddressData', module.data); | |||
$("#bankAddress").html(bankAddressData); | |||
if(content.memberType == '1'){ | |||
document.getElementById('companyInformationContent').style.display = 'none'; | |||
@@ -596,6 +648,8 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", | |||
var userFormRealName = $('#userFormRealName').val(); | |||
var userFormIdCard = $('#userFormIdCard').val(); | |||
var userFormAddress = $('#userFormAddress').val(); | |||
var bankAddress = $('#bankAddress').val(); | |||
var bankType = $('#bankType').val(); | |||
data['idCardNum'] = userFormIdCard; | |||
data['realname'] = userFormRealName; | |||
data['address'] = userFormAddress; | |||
@@ -606,6 +660,7 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", | |||
upLoadAction('user'); | |||
} | |||
if(type == 'bank'){ | |||
//银行卡信息 | |||
var bankCardName = $('#bankCardName').val(); | |||
var bankCardNum = $('#bankCardNum').val(); | |||
@@ -613,6 +668,36 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", | |||
var bankType = $('#bankType').val(); | |||
var accountType = $('#accountType').val(); | |||
var payeePaymentLines = $('#payeePaymentLines').val(); | |||
if (bankCardName == '') { | |||
$('#bankCardName')[0].focus() | |||
tools.initTips('请输入开户姓名', 'right', $('#bankCardName')[0], 2000) | |||
return false; | |||
} | |||
if (bankCardNum == '') { | |||
$('#bankCardNum')[0].focus() | |||
tools.initTips('请输入开户账号', 'right', $('#bankCardNum')[0], 2000) | |||
return false; | |||
} | |||
if (bankType == '') { | |||
$('#bankType')[0].focus() | |||
tools.initTips('请选择所属银行', 'right', $('#bankType')[0], 2000) | |||
return false; | |||
} | |||
if (bankAddress == '') { | |||
$('#bankAddress')[0].focus() | |||
tools.initTips('请选择开户银行', 'right', $('#bankAddress')[0], 2000) | |||
return false; | |||
} | |||
if (payeePaymentLines == '') { | |||
$('#payeePaymentLines')[0].focus() | |||
tools.initTips('请输入联行号', 'right', $('#payeePaymentLines')[0], 2000) | |||
return false; | |||
} | |||
data['bankCardName'] = bankCardName; | |||
data['bankCardNum'] = bankCardNum; | |||
data['bankAddress'] = bankAddress; | |||
@@ -25,8 +25,6 @@ define(['jquery', "Tools","user"], function ($, Tools) { | |||
$('#getSmsCode').on('click', module.getSmsCode) | |||
//图形验证码加载 | |||
module.verificationCode() | |||
//图形验证码加载 | |||
module.verificationCode1() | |||
//背景高度 | |||
module.register() | |||
//网站配置信息(网站名称 底部联系方式 公安备案号 网站备案号) | |||
@@ -74,6 +72,15 @@ define(['jquery', "Tools","user"], function ($, Tools) { | |||
document.getElementById('phoneTab').style.display = 'none' | |||
document.getElementById(type+'Tab').style.display = 'block' | |||
if (type == 'phone'){ | |||
//图形验证码加载 | |||
module.verificationCode1() | |||
} | |||
if (type == 'login'){ | |||
//图形验证码加载 | |||
module.verificationCode() | |||
} | |||
$('#loginBtn').attr('class','') | |||
$('#phoneBtn').attr('class','') | |||
@@ -60,7 +60,7 @@ | |||
<h1 class="fl" id="webConfigName" onclick="goIndex()"></h1> | |||
<div class="clear"></div> | |||
</div> | |||
<div class="wid50 logoSearch-div fr"> | |||
<div class="wid50 logoSearch-div fr" style="display: none;"> | |||
<div class="fr" id="userInfo" style="display: none;"> | |||
<img src="../../static/images/user_tips.png" class="block fl m-r-10" style="margin-top: 21px" alt=""/> | |||
<img src="../../static/images/member.png" class="block fl m-r-10" style="margin-top: 21px" alt=""/> | |||
@@ -269,45 +269,96 @@ | |||
<!-- 我的资料 — 银行账户信息 --> | |||
<table width="100%" id="bankInformationContent" style="display: none;"> | |||
<tr> | |||
<td style="border: none;"><span>*</span>账户类型:</td> | |||
<td style="border: none;"> | |||
<select id="accountType" class="p-l-10" style="width: 30%"> | |||
<script id="accountTypeData" type="text/html"> | |||
{{each accountTypeOption as value i}} | |||
<option value="{{value.dictValue}}">{{value.dictLabel}}</option> | |||
{{/each}} | |||
</script> | |||
</select> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td><span>*</span>开户姓名:</td> | |||
<td><input type="text" id="bankCardName" class="p-l-10" style="width: 30%"/></td> | |||
</tr> | |||
<tr> | |||
<td><span>*</span>开户账号:</td> | |||
<td><input type="text" id="bankCardNum" class="p-l-10" style="width: 30%"/></td> | |||
</tr> | |||
<tr> | |||
<td colspan="2"> | |||
<p style="position:relative;text-align: center;"> | |||
<span style="border-top: 1px solid #999999;display: block;position:absolute;top: 50%;width: 100%;"></span> | |||
<span style="background: #ffffff;color: #333333;position: relative;">银行信息</span> | |||
</p> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td style="border: none;"><span>*</span>所属银行:</td> | |||
<td style="border: none;"> | |||
<select id="bankType" class="p-l-10" style="width: 30%"> | |||
<script id="bankTypeData" type="text/html"> | |||
{{each bankTypeOption as value i}} | |||
<option value="{{value.dictValue}}">{{value.dictLabel}}</option> | |||
<option value="{{value.dictValue}}" {{value.dictLabel == userInformationDetail.bankType ? 'selected':''}}>{{value.dictLabel}}</option> | |||
{{/each}} | |||
</script> | |||
</select> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td style="border: none;"><span>*</span>账户类型:</td> | |||
<td style="border: none;"><span>*</span>开户省份:</td> | |||
<td style="border: none;"> | |||
<select id="accountType" class="p-l-10" style="width: 30%"> | |||
<script id="accountTypeData" type="text/html"> | |||
{{each accountTypeOption as value i}} | |||
<option value="{{value.dictValue}}">{{value.dictLabel}}</option> | |||
<select id="sheng" class="p-l-10" style="width: 30%" onchange="getShi()"> | |||
<script id="shengData" type="text/html"> | |||
{{each sheng as value i}} | |||
<option value="{{value.value}}">{{value.label}}</option> | |||
{{/each}} | |||
</script> | |||
</select> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td style="border: none;"><span>*</span>开户银行:</td> | |||
<td style="border: none;"><input type="text" id="bankAddress" class="p-l-10" style="width: 30%"/></td> | |||
<td style="border: none;"><span>*</span>开户城市:</td> | |||
<td style="border: none;"> | |||
<select id="shi" class="p-l-10" style="width: 30%"> | |||
<script id="shiData" type="text/html"> | |||
{{each shi as value i}} | |||
<option value="{{value.value}}">{{value.label}}</option> | |||
{{/each}} | |||
</script> | |||
</select> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td style="border: none;"><span>*</span>联行号:</td> | |||
<td style="border: none;"><input type="text" id="payeePaymentLines" class="p-l-10" style="width: 30%"/></td> | |||
<td>关键词:</td> | |||
<td><input id="bankDeposit" type="text" class="p-l-10" style="width: 30%"/>(输入搜索开户行名称)</td> | |||
</tr> | |||
<tr> | |||
<td><span>*</span>开户姓名:</td> | |||
<td><input type="text" id="bankCardName" class="p-l-10" style="width: 30%"/></td> | |||
<td style="border: none;"><span>*</span>开户银行:</td> | |||
<td style="border: none;"> | |||
<select id="bankAddress" class="p-l-10" style="width: 30%" onchange="changeBankAddress()"> | |||
<script id="bankAddressData" type="text/html"> | |||
<option value="{{userInformationDetail.bankAddress}}" selected>{{userInformationDetail.bankAddress}}</option> | |||
{{each bankAddress as value i}} | |||
<option value="{{value.bankDeposit}}">{{value.bankDeposit}}</option> | |||
{{/each}} | |||
</script> | |||
</select> | |||
<span onclick="getDeposit()" style="display: inline-block;padding: 5px 10px;background: var(--color);color: #ffffff;border-radius: 30px;">点击检索</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td><span>*</span>开户账号:</td> | |||
<td><input type="text" id="bankCardNum" class="p-l-10" style="width: 30%"/></td> | |||
<td style="border: none;"><span>*</span>联行号:</td> | |||
<td style="border: none;"><input type="text" id="payeePaymentLines" class="p-l-10" style="width: 30%"/></td> | |||
</tr> | |||
<tr> | |||
<td></td> | |||