|
|
@@ -51,6 +51,12 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", |
|
|
|
//网站配置信息(网站名称 底部联系方式 公安备案号 网站备案号) |
|
|
|
tools.getWebConfig(); |
|
|
|
|
|
|
|
//所属银行 |
|
|
|
tools.doGet(dictionaries+"/bank_type", {}, module.bankType, true); |
|
|
|
|
|
|
|
//账户类型 |
|
|
|
tools.doGet(dictionaries+"/bank_account_type", {}, module.accountType, true); |
|
|
|
|
|
|
|
window.KindEditor.create('#editor_id') |
|
|
|
|
|
|
|
//console.log(tools.getParam('type')) |
|
|
@@ -58,6 +64,7 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", |
|
|
|
var type = tools.getParam('type'); |
|
|
|
|
|
|
|
module.getType(type); |
|
|
|
|
|
|
|
setTimeout(function(){ |
|
|
|
//主题图片切换 |
|
|
|
module.switchTheme(); |
|
|
@@ -65,6 +72,26 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
//底部友情链接 |
|
|
|
module.bankType = function (data) { |
|
|
|
if (data.code == 200) { |
|
|
|
var content = data.data; |
|
|
|
module.data.bankTypeOption = content; |
|
|
|
var bankTypeData = template('bankTypeData', module.data); |
|
|
|
$("#bankType").html(bankTypeData); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//底部友情链接 |
|
|
|
module.accountType = function (data) { |
|
|
|
if (data.code == 200) { |
|
|
|
var content = data.data; |
|
|
|
module.data.accountTypeOption = content; |
|
|
|
var accountTypeData = template('accountTypeData', module.data); |
|
|
|
$("#accountType").html(accountTypeData); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//焦点图数据 |
|
|
|
module.focusNewsTop = function (data) { |
|
|
|
if (data.code == 200) { |
|
|
@@ -178,6 +205,9 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", |
|
|
|
document.getElementById('bankAddress').value = content.bankAddress; |
|
|
|
document.getElementById('bankCardName').value = content.bankCardName; |
|
|
|
document.getElementById('bankCardNum').value = content.bankCardNum; |
|
|
|
document.getElementById('bankType').value = content.bankType; |
|
|
|
document.getElementById('accountType').value = content.accountType; |
|
|
|
document.getElementById('payeePaymentLines').value = content.payeePaymentLines; |
|
|
|
document.getElementById('phone').innerHTML = content.phone; |
|
|
|
|
|
|
|
module.data.memberId = content.id; |
|
|
@@ -580,12 +610,21 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", |
|
|
|
var bankCardName = $('#bankCardName').val(); |
|
|
|
var bankCardNum = $('#bankCardNum').val(); |
|
|
|
var bankAddress = $('#bankAddress').val(); |
|
|
|
var bankType = $('#bankType').val(); |
|
|
|
var accountType = $('#accountType').val(); |
|
|
|
var payeePaymentLines = $('#payeePaymentLines').val(); |
|
|
|
data['bankCardName'] = bankCardName; |
|
|
|
data['bankCardNum'] = bankCardNum; |
|
|
|
data['bankAddress'] = bankAddress; |
|
|
|
data['bankType'] = bankType; |
|
|
|
data['accountType'] = accountType; |
|
|
|
data['payeePaymentLines'] = payeePaymentLines; |
|
|
|
tools.setCookie('bankCardName',bankCardName,24 * 60 * 60) |
|
|
|
tools.setCookie('bankCardNum',bankCardNum,24 * 60 * 60) |
|
|
|
tools.setCookie('bankAddress',bankAddress,24 * 60 * 60) |
|
|
|
tools.setCookie('bankType',bankType,24 * 60 * 60) |
|
|
|
tools.setCookie('accountType',accountType,24 * 60 * 60) |
|
|
|
tools.setCookie('payeePaymentLines',accountType,24 * 60 * 60) |
|
|
|
} |
|
|
|
//data['password'] = password; |
|
|
|
data['id'] = module.data.memberId; |
|
|
|