fed9f711 by yangjianbin

init

1 parent 3fcc6442
...@@ -38,6 +38,21 @@ ...@@ -38,6 +38,21 @@
38 var r = window.location.search.substr(1).match(reg); //匹配目标参数 38 var r = window.location.search.substr(1).match(reg); //匹配目标参数
39 if (r != null) return unescape(r[2]); return null; //返回参数值 39 if (r != null) return unescape(r[2]); return null; //返回参数值
40 } 40 }
41 function getNowFormatDate() {
42 var date = new Date();
43 var seperator1 = "-";
44 var year = date.getFullYear();
45 var month = date.getMonth() + 1;
46 var strDate = date.getDate();
47 if (month >= 1 && month <= 9) {
48 month = "0" + month;
49 }
50 if (strDate >= 0 && strDate <= 9) {
51 strDate = "0" + strDate;
52 }
53 var currentdate = year + seperator1 + month + seperator1 + strDate;
54 return currentdate;
55 }
41 56
42 function msg(msg) { 57 function msg(msg) {
43 layer.msg(msg); 58 layer.msg(msg);
......
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
186 icon: 3 186 icon: 3
187 }, function(){ 187 }, function(){
188 var data = { 188 var data = {
189 realRepaymentDate:new Date() 189 realRepaymentDate:getNowFormatDate()
190 }; 190 };
191 $.ajax({ 191 $.ajax({
192 type:'patch', 192 type:'patch',
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!