|
@ -178,7 +178,7 @@ function getDaysRemaining(item) {
|
|
|
curTime = new Date().getTime();
|
|
|
if(minDrugDay && presCreateTime) {
|
|
|
var preTime = new Date(presCreateTime.replace(/-/g,'/')).getTime()
|
|
|
var remain = minDrugDay - ((curTime - preTime)/(24 * 3600 * 1000)).toFixed(1)
|
|
|
var remain = Math.round(minDrugDay - ((curTime - preTime)/(24 * 3600 * 1000)))
|
|
|
if(remain < 0) {
|
|
|
return '<span style="color: #ff3b30;">已用完</span>'
|
|
|
}
|