fed9f711 by yangjianbin

init

1 parent 3fcc6442
......@@ -38,6 +38,21 @@
var r = window.location.search.substr(1).match(reg); //匹配目标参数
if (r != null) return unescape(r[2]); return null; //返回参数值
}
function getNowFormatDate() {
var date = new Date();
var seperator1 = "-";
var year = date.getFullYear();
var month = date.getMonth() + 1;
var strDate = date.getDate();
if (month >= 1 && month <= 9) {
month = "0" + month;
}
if (strDate >= 0 && strDate <= 9) {
strDate = "0" + strDate;
}
var currentdate = year + seperator1 + month + seperator1 + strDate;
return currentdate;
}
function msg(msg) {
layer.msg(msg);
......
......@@ -186,7 +186,7 @@
icon: 3
}, function(){
var data = {
realRepaymentDate:new Date()
realRepaymentDate:getNowFormatDate()
};
$.ajax({
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!