From f7325e4c057e7003670a1713e6fa7acd8d2798db Mon Sep 17 00:00:00 2001 From: JerryYan <792602257@qq.com> Date: Sat, 22 Aug 2020 21:00:50 +0800 Subject: [PATCH] =?UTF-8?q?=E7=83=82=E7=AC=94=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/credit_edit.js | 3 +++ templete/credit_edit.html | 5 +++++ templete/notepad.html | 6 +++--- 3 files changed, 11 insertions(+), 3 deletions(-) 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}}元可用