mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 05:46:44 +08:00
[FIX]【商品商城】转发记录页格式化日期
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
<van-sticky>
|
||||
<div class="top-table" sticky>
|
||||
<van-row type="flex" align="center">
|
||||
<van-col class="order" span="4">序号</van-col>
|
||||
<van-col class="subTime" span="10">转发时间</van-col>
|
||||
<van-col class="name" span="10">打开次数</van-col>
|
||||
<van-col class="order" span="6">序号</van-col>
|
||||
<van-col class="subTime" span="12">转发时间</van-col>
|
||||
<van-col class="name" span="6">打开次数</van-col>
|
||||
</van-row>
|
||||
</div>
|
||||
</van-sticky>
|
||||
@@ -23,9 +23,9 @@
|
||||
<div v-if="answerList.length > 0" class="pb80">
|
||||
<div class="main-table" v-for="(item, index) in answerList" :key="index">
|
||||
<van-row type="flex" align="center">
|
||||
<van-col class="order" span="4">{{ index + 1 }}</van-col>
|
||||
<van-col class="subTime" span="10">{{ item.shareTime }}</van-col>
|
||||
<van-col class="name" span="10">{{ item.enterCount }}</van-col>
|
||||
<van-col class="order" span="6">{{ index + 1 }}</van-col>
|
||||
<van-col class="subTime" span="12">{{ item.shareTime | format }}</van-col>
|
||||
<van-col class="name" span="6">{{ item.enterCount }}</van-col>
|
||||
</van-row>
|
||||
</div>
|
||||
</div>
|
||||
@@ -41,6 +41,7 @@
|
||||
<script>
|
||||
import { Sticky, Row, Col, List } from 'vant'
|
||||
import { getShareList } from '@/api/ebiz/product-store/product-store'
|
||||
import formatDate from '@/assets/js/utils/date-utils'
|
||||
|
||||
export default {
|
||||
name: 'ForwardRecord',
|
||||
@@ -117,6 +118,11 @@ export default {
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
filters: {
|
||||
format: function(shareTime) {
|
||||
return formatDate.formatDate(new Date(shareTime), 'yyyy-MM-dd')
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user