mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-16 23:53:48 +08:00
Order displaying & coupon calculating issue fixed
This commit is contained in:
@@ -12,7 +12,8 @@ Vue.prototype.formatConversion = function (te){
|
||||
var h = time.getHours() < 10 ? '0' + time.getHours() : time.getHours();
|
||||
var mm = time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes();
|
||||
var s = time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds();
|
||||
var timedate = y + '-' + m + '-' + d + ' ' + h + ':' + mm + ':' + s;
|
||||
//var timedate = y + '-' + m + '-' + d + ' ' + h + ':' + mm + ':' + s;
|
||||
var timedate = y + '-' + m + '-' + d;
|
||||
return timedate;
|
||||
}else{
|
||||
var time = new Date(te);
|
||||
@@ -22,7 +23,8 @@ Vue.prototype.formatConversion = function (te){
|
||||
var h = time.getHours() < 10 ? '0' + time.getHours() : time.getHours();
|
||||
var mm = time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes();
|
||||
var s = time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds();
|
||||
var timedate = y + '-' + m + '-' + d + ' ' + h + ':' + mm + ':' + s;
|
||||
//var timedate = y + '-' + m + '-' + d + ' ' + h + ':' + mm + ':' + s;
|
||||
var timedate = y + '-' + m + '-' + d;
|
||||
return timedate;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user