|
@@ -45,9 +45,19 @@ export function updateBase(e) {
|
|
|
url: "/market/waf/updateBase",
|
|
|
method: "post",
|
|
|
headers: {
|
|
|
- "Content-Type": "application/json",
|
|
|
+ "Content-Type": "application/json",
|
|
|
},
|
|
|
data: e,
|
|
|
})
|
|
|
}
|
|
|
-export default { getTodoBase, getDoneBase, getInitiateBase,updateBase };
|
|
|
+export function getNowdata(e) {
|
|
|
+ let yy = new Date().getFullYear()
|
|
|
+ let mm = new Date().getMonth() + 1 < 10 ? '0' + (new Date().getMonth() + 1) : new Date().getMonth() + 1
|
|
|
+ let dd = new Date().getDate() < 10 ? '0' + new Date().getDate() : new Date().getDate()
|
|
|
+ let hh = new Date().getHours()
|
|
|
+ let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes() : new Date().getMinutes()
|
|
|
+ let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds() : new Date().getSeconds()
|
|
|
+ let time = yy + e.a + mm + e.a + dd + e.b + hh + e.c + mf + e.c + ss
|
|
|
+ return time
|
|
|
+}
|
|
|
+export default { getTodoBase, getDoneBase, getInitiateBase, updateBase, getNowdata };
|