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 @@ 元 +