|
@@ -23,7 +23,7 @@
|
|
|
<text v-if="item.classify_name_first">#{{item.classify_name_first}}</text>
|
|
|
<text v-if="item.classify_name_second">#{{item.classify_name_second}}</text>
|
|
|
</view>
|
|
|
- <view class="time">{{item.publish_time|formatReportTime}}</view>
|
|
|
+ <view class="time">{{getReportListTime(item.publish_time)}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -31,6 +31,8 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+const moment=require('@/utils/moment-with-locales.min')
|
|
|
+moment.locale('zh-cn');
|
|
|
import searchBox from './components/searchBox.vue'
|
|
|
import {apiReportSearch} from '@/api/report'
|
|
|
export default {
|
|
@@ -88,6 +90,10 @@ export default {
|
|
|
}else{
|
|
|
uni.navigateTo({url:'/pages-report/reportDetail?reportId='+item.report_id})
|
|
|
}
|
|
|
+ },
|
|
|
+
|
|
|
+ getReportListTime(e){
|
|
|
+ return moment(e).format('YYYY年MM月DD日 HH:mm')
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -132,6 +138,7 @@ page{
|
|
|
}
|
|
|
.bot{
|
|
|
justify-content: space-between;
|
|
|
+ align-items: flex-end;
|
|
|
.time{
|
|
|
flex-shrink: 0;
|
|
|
color: #999999;
|