diff --git a/resources/assets/js/pages/manage/approve/details.vue b/resources/assets/js/pages/manage/approve/details.vue index 841caa25b..507a857d0 100644 --- a/resources/assets/js/pages/manage/approve/details.vue +++ b/resources/assets/js/pages/manage/approve/details.vue @@ -54,7 +54,7 @@
-
+
-
{{ getTimeAgo(item.created_at) }}
@@ -162,8 +162,8 @@
{{ getContent(item.content) }}
-
-
+
+
@@ -483,20 +483,23 @@ export default {
return src + '_thumb.' + src.split('.').pop()
},
// 打开图片
- onViewPicture(currentUrl, datas, type) {
+ onViewPicture(currentUrl, type) {
+ const datas = [];
if (type == 1) {
- datas = datas.split(',')
+ datas.push(...this.datas.var.other.split(','))
}
if (type == 2) {
- datas = this.getPictures(datas)
+ this.datas.global_comments.map(h => {
+ datas.push(...this.getPictures(h.content))
+ })
}
const list = datas.map(src => {
return {
src: $A.mainUrl(src)
}
});
- const index = list.findIndex(({ src }) => src === $A.mainUrl(currentUrl));
- this.$store.dispatch("previewImage", { index, list })
+ const index = list.findIndex(({src}) => src === $A.mainUrl(currentUrl));
+ this.$store.dispatch("previewImage", {index, list})
}
}
}
{{item.nickname}}
-{{item.created_at}}
+{{ item.nickname }}
+{{ item.created_at }}