列表开始使用时间字段数据显示有误修复

This commit is contained in:
evoxwht 2023-03-28 11:47:31 +08:00
parent 0b74118dd8
commit 72653993c3
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class StoreCouponUserUserServices extends BaseServices
[$page, $limit] = $this->getPageValue();
$list = $this->dao->sysPage($where, $page, $limit);
foreach ($list as $k => &$v) {
$v['start_time'] = $v['add_time'];
$v['start_time'] = $v['start_time'] > 0 ? $v['start_time'] : $v['add_time'];
if ($v['end_time'] < time() || $v['use_time'] != 0) $v['is_fail'] = 1;
}
$count = $this->dao->sysCount($where);

View File

@ -42,7 +42,7 @@
<Icon type="md-close" v-else color="#ed5565" size="14" />
</template>
<template slot-scope="{ row, index }" slot="add_time">
<span> {{ row.add_time | formatDate }}</span>
<span> {{ row.start_time | formatDate }}</span>
</template>
<template slot-scope="{ row, index }" slot="end_time">
<span> {{ row.end_time | formatDate }}</span>