Authored by Aiden Xu

分期订单

... ... @@ -236,7 +236,9 @@ const activateService = (req, res, next) => {
cardNo: req.body.cardNo,
mobile: req.body.mobile,
snsCheckCode: req.body.snsCheckCode,
verifyId: req.body.verifyId
verifyId: req.body.verifyId,
bankCode: req.body.bankCode,
bankName: req.body.bankName
}).then((result)=> {
res.json(result);
}).catch(next);
... ...
... ... @@ -5,10 +5,10 @@
<a href="/home/installment/order.html?type=1" data-type="1">全部</a>
</li>
<li>
<a href="/home/installment/order.html?type=2" data-type="2">还款中</a>
<a href="/home/installment/order.html?type=3" data-type="3">还款中</a>
</li>
<li>
<a href="/home/installment/order.html?type=3" data-type="3">已还清</a>
<a href="/home/installment/order.html?type=2" data-type="2">已还清</a>
</li>
</ul>
... ...
... ... @@ -11,7 +11,7 @@ var search = {
* @param type
*/
var loadOrderList = function(pageIndex, type) {
if (type) {
if (type && type !== search.type) {
$.get('/home/installment/order.html', {
page: pageIndex,
type: type
... ...
... ... @@ -12,6 +12,8 @@ var FormModel = function() {
userName: '',
identityCardNo: '',
cardNo: '',
bankName: '',
bankCode: '',
mobile: '',
snsCheckCode: '',
agreements: ''
... ... @@ -53,6 +55,9 @@ var debounceFn = debounce(function(cardNo) {
$.get('/home/installment/bank-info', {cardNo: cardNo}).then(function(result) {
if (result.code === 200) {
if (result.data.bankCode) {
formModel.bankCode = result.data.bankCode;
formModel.bankName = result.data.bankName;
// 设置银行名称
$('#bank-name').text(result.data.bankName);
... ...