mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 22:10:49 +00:00
列表开始使用时间字段数据显示有误修复
This commit is contained in:
parent
0b74118dd8
commit
72653993c3
@ -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);
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user