diff --git a/src/project/pingchang/AppPhotoReport/AppPhotoReport.vue b/src/project/pingchang/AppPhotoReport/AppPhotoReport.vue index d2a9c29..406537b 100644 --- a/src/project/pingchang/AppPhotoReport/AppPhotoReport.vue +++ b/src/project/pingchang/AppPhotoReport/AppPhotoReport.vue @@ -23,8 +23,8 @@ {{ $dict.getLabel('clapEventStatus',item.eventStatus) }}
-
去评价
- +
去评价
+
已评价
diff --git a/src/project/pingchang/AppPhotoReport/PhotoDetail.vue b/src/project/pingchang/AppPhotoReport/PhotoDetail.vue index a612350..1db72e2 100644 --- a/src/project/pingchang/AppPhotoReport/PhotoDetail.vue +++ b/src/project/pingchang/AppPhotoReport/PhotoDetail.vue @@ -38,15 +38,29 @@ -
去评价
+
去评价
- - +
+
+ 心愿评价: + +
+
+
评价详情:
+
{{ info.evaluation.evaluationDetail }}
+
+
+
照片
+
+ + +
+
+
+
- @@ -120,7 +134,7 @@ export default { margin-right: 8px; } .photo-detail { - padding: 32px 0; + padding: 32px 0 50px; margin-bottom: 60px; background: #fff; @@ -172,11 +186,41 @@ export default { } } +.evaluation { + padding: 0 32px; + box-sizing: border-box; + + .rate { + display: flex; + padding-bottom: 24px; + box-sizing: border-box; + justify-content: space-between; + border-bottom: 1px solid #DDDDDD; + } + .detail, + .photo { + padding: 24px 0; + } + .detail { + border-bottom: 1px solid #DDDDDD; + } +} + +.title, +.titles { + color: #999999; +} + +.titles { + margin-bottom: 15px; +} + .content_img { width: 200px; height: 200px; margin-right: 8px; } + .bottomBtn { margin: 16px 32px 16px 0; } diff --git a/src/project/pingchang/AppPhotoReport/evaluate.vue b/src/project/pingchang/AppPhotoReport/evaluate.vue index 88e911b..2540b1c 100644 --- a/src/project/pingchang/AppPhotoReport/evaluate.vue +++ b/src/project/pingchang/AppPhotoReport/evaluate.vue @@ -2,21 +2,21 @@
*心愿评价
- +
*评价详情
- -
{{value.length }}/500
+
{{ form.evaluationDetail.length }}/500
图片上传(最多9张)
- +
@@ -31,15 +31,35 @@ export default { appName: "心愿评价", data() { return { - rate: 2, - value: '', - images: [] + images: [], + form: { + eventId: '', + evaluationScore: '', + evaluationDetail: '', + files: [], + } } }, methods: { - + submit() { + if(!this.form.evaluationScore) { + return this.$toast('请选择心愿评价') + } + if(!this.form.evaluationDetail) { + return this.$toast('请输入评价详情') + } + this.$instance.post(`/app/appclapeventinfopingchang/addEvaluation`,{ + ...this.form + }).then(res => { + if(res?.code == 0) { + this.$u.toast("评价成功") + uni.redirectTo({url: './AppPhotoReport'}) + } + }) + } }, - onLoad() { + onLoad(o) { + this.form.eventId = o.id uni.setNavigationBarTitle({title: "心愿评价"}) } }