From 79037b2b77e4b1557712c49e4ce4ed3acedbf03a Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Wed, 16 Nov 2022 15:36:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E5=BF=83=E6=84=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppPhotoReport/AppPhotoReport.vue | 6 +- .../pingchang/AppPhotoReport/PhotoDetail.vue | 66 +++++++++++-------- 2 files changed, 42 insertions(+), 30 deletions(-) diff --git a/src/project/pingchang/AppPhotoReport/AppPhotoReport.vue b/src/project/pingchang/AppPhotoReport/AppPhotoReport.vue index 38887b8..d2a9c29 100644 --- a/src/project/pingchang/AppPhotoReport/AppPhotoReport.vue +++ b/src/project/pingchang/AppPhotoReport/AppPhotoReport.vue @@ -3,7 +3,7 @@
- +

{{ item.content }}

@@ -68,11 +68,9 @@ export default { uni.setNavigationBarTitle({ title: '微心愿' }) - uni.$on('update', () => { this.current = 1 this.isMore = false - this.getList() }) }, @@ -106,7 +104,7 @@ export default { }, handleDelete(ids) { this.$dialog.confirm({content: "是否要进行删除?"}).then(() => { - this.$instance.post("/app/appclapeventinfo/delete", null, { + this.$instance.post("/app/appclapeventinfopingchang/delete", null, { params: {ids} }).then(res => { if (res?.code == 0) { diff --git a/src/project/pingchang/AppPhotoReport/PhotoDetail.vue b/src/project/pingchang/AppPhotoReport/PhotoDetail.vue index 188f526..a612350 100644 --- a/src/project/pingchang/AppPhotoReport/PhotoDetail.vue +++ b/src/project/pingchang/AppPhotoReport/PhotoDetail.vue @@ -2,26 +2,30 @@

{{ info.content }}

-
+
{{ $dict.getLabel('clapEventStatus',info.eventStatus) }}
+ + + - - - - + + + + + 暂无照片 - + @@ -31,15 +35,18 @@
+ +
去评价
- - - +
+ + +
+
@@ -60,7 +67,7 @@ export default { const status = !v.evaluation.id ? v.info.eventStatus : 'evaluation' return { cls: 'status-' + status, - label: !v.evaluation.id ? v.$dict.getLabel('clapEventStatus', v.info.eventStatus) : "已评价" + // label: !v.evaluation.id ? v.$dict.getLabel('clapEventStatus', v.info.eventStatus) : "已评价" } }, process() { @@ -83,7 +90,7 @@ export default { }, methods: { getInfo(id) { - this.$instance.post(`/app/appclapeventinfo/queryDetailById?id=${id}`).then(res => { + this.$instance.post(`/app/appclapeventinfopingchang/queryDetailById?id=${id}`).then(res => { if (res.code === 0) { this.info = res.data if (res.data.eventStatus > 1) { @@ -95,27 +102,25 @@ export default { } }).finally(() => this.$hideLoading()) }, - - previewResult(url) { + previewImg(url,imgList) { + let imgs = imgList.map(v => v.url) uni.previewImage({ - urls: this.result.files.map(v => v.url), + urls: imgs, current: url }) }, - - preview(url) { - uni.previewImage({ - urls: this.info.files.map(v => v.url), - current: url - }) - } } }