Browse Source

产权交易

RongCheng
庞东旭 2 years ago
parent
commit
39af5965bf
3 changed files with 73 additions and 0 deletions
  1. +6
    -0
      static/css/user/user.css
  2. +39
    -0
      static/js/project/user/index.js
  3. +28
    -0
      view/user/user.html

+ 6
- 0
static/css/user/user.css View File

@@ -227,6 +227,12 @@
margin-left: 10px;
}

#bankType,#accountType{
height: 36px;
border: 1px solid #e3e3e3;
margin-left: 10px;
}

.releaseSupply table tr td span{
color: red;
}


+ 39
- 0
static/js/project/user/index.js View File

@@ -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;


+ 28
- 0
view/user/user.html View File

@@ -269,10 +269,38 @@

<!-- 我的资料 — 银行账户信息 -->
<table width="100%" id="bankInformationContent" style="display: none;">
<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>
{{/each}}
</script>
</select>
</td>
</tr>
<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 style="border: none;"><span>*</span>开户银行:</td>
<td style="border: none;"><input type="text" id="bankAddress" class="p-l-10" style="width: 30%"/></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>
</tr>
<tr>
<td><span>*</span>开户姓名:</td>
<td><input type="text" id="bankCardName" class="p-l-10" style="width: 30%"/></td>


Loading…
Cancel
Save