diff --git a/src/mods/party/AppOnlineAnswer/AppOnlineAnswer.vue b/src/mods/party/AppOnlineAnswer/AppOnlineAnswer.vue index bf761e8..428eb5e 100644 --- a/src/mods/party/AppOnlineAnswer/AppOnlineAnswer.vue +++ b/src/mods/party/AppOnlineAnswer/AppOnlineAnswer.vue @@ -1,7 +1,7 @@ @@ -66,11 +65,12 @@ export default { this.$dict.load(['clapEventStatus']).then(() => { this.getList() }) - + uni.setNavigationBarTitle({ + title: '微心愿' + }) uni.$on('update', () => { this.current = 1 this.isMore = false - this.getList() }) }, @@ -80,43 +80,23 @@ export default { this.$linkTo('./PhotoForm') }, + toEvaluate() { + this.$linkTo('./evaluate') + }, + getList() { if (this.isMore) return - - this.$instance.post(`/app/appclapeventinfo/listByWxApplet`, null, { + this.$instance.post(`/app/appclapeventinfopingchang/listByWxApplet`, null, { params: { current: this.current, - size: 15 + size: 15, } }).then(res => { if (res.code == 0) { this.total = res.data.total - if (this.current > 1) { - this.list = [...this.list, ...res.data.records].map(v => { - return { - ...v, - statusName: this.$dict.getLabel('clapEventStatus', v.eventStatus) - } - }) - } else { - this.list = res.data.records.map(v => { - return { - ...v, - statusName: this.$dict.getLabel('clapEventStatus', v.eventStatus) - } - }) - } + this.list = this.current == 1? res.data.records : [...this.list, ...res.data.records] uni.hideLoading() this.pageShow = true - if (res.data.records.length < 15) { - this.isMore = true - - return false - } - - this.current = this.current + 1 - } else { - uni.hideLoading() } }).catch(() => { uni.hideLoading() @@ -124,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) { @@ -139,6 +119,7 @@ export default { }, onReachBottom() { + this.current++ this.getList() } } diff --git a/src/project/pingchang/AppPhotoReport/PhotoDetail.vue b/src/project/pingchang/AppPhotoReport/PhotoDetail.vue index b1ae503..1db72e2 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,19 +35,38 @@
+ +
去评价
- - -
去评价
-
+
+
+
+ 心愿评价: + +
+
+
评价详情:
+
{{ info.evaluation.evaluationDetail }}
+
+
+
照片
+
+ + +
+
+
+ +
diff --git a/src/project/pingchang/AppPhotoReport/PhotoForm.vue b/src/project/pingchang/AppPhotoReport/PhotoForm.vue index 30dc6ca..f9af6f7 100644 --- a/src/project/pingchang/AppPhotoReport/PhotoForm.vue +++ b/src/project/pingchang/AppPhotoReport/PhotoForm.vue @@ -1,5 +1,5 @@