diff --git a/js/credit_edit.js b/js/credit_edit.js index 1cc47ea..cbdce56 100644 --- a/js/credit_edit.js +++ b/js/credit_edit.js @@ -15,6 +15,7 @@ mui.plusReady(function(){ var $name = $("#name"); var $cc = $("#cur_cash"); var $cdc = $("#credit_cash"); + var $rd = $("#return_date"); if(Id <= 0) { $createTime.text("现在"); $(".footer .add").attr('disabled', true); @@ -28,6 +29,7 @@ mui.plusReady(function(){ name: $name.val(), cur_cash: $cc.val(), credit_cash: $cdc.val(), + return_date: $rd.val(), }, dataType: "json", success: function(res){ @@ -97,6 +99,7 @@ mui.plusReady(function(){ $cdc.val(res.data.credit_cash); $cc.val(res.data.cur_cash); $cc.data('val',res.data.cur_cash); + $rd.val(res.data.return_date) }else{ alert(res.msg); } diff --git a/templete/credit_edit.html b/templete/credit_edit.html index 435e20f..bedb076 100644 --- a/templete/credit_edit.html +++ b/templete/credit_edit.html @@ -32,6 +32,11 @@ 元 +
+ 还款日: + + 号 +
创建时间:
diff --git a/templete/notepad.html b/templete/notepad.html index 42e7ee9..9c20a0a 100644 --- a/templete/notepad.html +++ b/templete/notepad.html @@ -73,9 +73,9 @@ {{each.huankuan.create_time}}还款:{{each.huankuan.amount}}元
- 余额:{{each.cur_cash}}元 -      - 额度:{{each.credit_cash}}元 + {{each.return_date}}号前还款;额度{{each.credit_cash}}元 +
+ {{each.cur_cash}}元可用