修改文件文件 uni-app/pages/admin/statistics/index.vue
将setTime方法中 case "date"条件内容替换
// #ifdef MP
case "date":
let sArr = self.before.split('-')
let aArr = self.after.split('-')
let star = this.getTimestamp(sArr[0], sArr[1], sArr[2], 0, 0, 0)
let stop = this.getTimestamp(aArr[0], aArr[1], aArr[2], 23, 59, 59)
self.where.start = star
self.where.stop = stop
Promise.all([self.getIndex(), self.getInfo()]);
break;
// #endif
并在methods添加 getTimestamp 方法
getTimestamp(year, month, day, hour, min, sec) {
return new Date(year, month - 1, day, hour, min, sec).getTime() / 1000;
},
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}}
作者 管理员 企业
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}
{{itemf.name}}