This commit is contained in:
shijingjing
2022-11-16 10:18:29 +08:00
parent 10890ad64e
commit 7f242a00a3
4 changed files with 23 additions and 50 deletions

View File

@@ -1,7 +1,7 @@
<template> <template>
<section class="AppOnlineAnswer"> <section class="AppOnlineAnswer">
<div class="page" v-if="list.length"> <div class="page" v-if="list.length">
<img src="./static/img/answer-bg.png" alt="" class="bg-img"> <img src="https://cdn.cunwuyun.cn/tengxun/miniapp/answer-bg.png" alt="" class="bg-img">
<div class="subject-content" v-if="!showAnwser"> <div class="subject-content" v-if="!showAnwser">
<div class="btn" v-if="showTopBtn" @click="confirm()">{{ topBtnText }}</div> <div class="btn" v-if="showTopBtn" @click="confirm()">{{ topBtnText }}</div>
<div class="bg-fff pad-b48"> <div class="bg-fff pad-b48">
@@ -18,8 +18,8 @@
<div v-if="list[index].type == 1"> <div v-if="list[index].type == 1">
<div class="item" v-for="(item, i) in list[index].items" :key="i" @click="itemClick(i)" <div class="item" v-for="(item, i) in list[index].items" :key="i" @click="itemClick(i)"
:class="{ 'item-click': clickIndex === i, 'item-success': showAnalysis && item.checked == 1, 'item-error': showAnalysis && clickIndex == i && item.checked == 0}"> :class="{ 'item-click': clickIndex === i, 'item-success': showAnalysis && item.checked == 1, 'item-error': showAnalysis && clickIndex == i && item.checked == 0}">
<img src="./static/img/success-icon.png" alt="" v-if="showAnalysis && item.checked == 1"> <img src="https://cdn.cunwuyun.cn/tengxun/miniapp/success-icon.png" alt="" v-if="showAnalysis && item.checked == 1">
<img src="./static/img/error-icon.png" alt="" <img src="https://cdn.cunwuyun.cn/tengxun/miniapp/error-icon.png" alt=""
v-if="showAnalysis && clickIndex == i && item.checked == 0"> v-if="showAnalysis && clickIndex == i && item.checked == 0">
{{ item.sort }} &nbsp;{{ item.content }} {{ item.sort }} &nbsp;{{ item.content }}
</div> </div>
@@ -28,16 +28,16 @@
<div v-if="list[index].type == 2"> <div v-if="list[index].type == 2">
<div class="item" v-for="(item, i) in list[index].items" :key="i" @click="itemClick(i)" <div class="item" v-for="(item, i) in list[index].items" :key="i" @click="itemClick(i)"
:class="{ 'item-click': item.isCheked, 'item-success': showAnalysis && item.checked == 1, 'item-error': showAnalysis && item.isCheked && item.checked == 0}"> :class="{ 'item-click': item.isCheked, 'item-success': showAnalysis && item.checked == 1, 'item-error': showAnalysis && item.isCheked && item.checked == 0}">
<img src="./static/img/success-icon.png" alt="" v-if="showAnalysis && item.checked == 1"> <img src="https://cdn.cunwuyun.cn/tengxun/miniapp/success-icon.png" alt="" v-if="showAnalysis && item.checked == 1">
<img src="./static/img/error-icon.png" alt="" <img src="https://cdn.cunwuyun.cn/tengxun/miniapp/error-icon.png" alt=""
v-if="showAnalysis && clickIndex == i && item.checked == 0"> v-if="showAnalysis && clickIndex == i && item.checked == 0">
{{ item.sort }} &nbsp;{{ item.content }} {{ item.sort }} &nbsp;{{ item.content }}
</div> </div>
</div> </div>
<!-- <div class="item item-click">A. 吴起镇</div> <!-- <div class="item item-click">A. 吴起镇</div>
<div class="item item-success"> <img src="./static/img/success-icon.png" alt="">吴起镇</div> <div class="item item-success"> <img src="https://cdn.cunwuyun.cn/tengxun/miniapp/success-icon.png" alt="">吴起镇</div>
<div class="item item-error"> <img src="./static/img/error-icon.png" alt="">吴起镇</div> <div class="item item-error"> <img src="https://cdn.cunwuyun.cn/tengxun/miniapp/error-icon.png" alt="">吴起镇</div>
<div class="item">A. 吴起镇</div> --> <div class="item">A. 吴起镇</div> -->
</div> </div>
<div class="bg-fff mar-t32" v-if="showAnalysis"> <div class="bg-fff mar-t32" v-if="showAnalysis">
@@ -54,7 +54,7 @@
</div> </div>
<div class="subject-content" v-else> <div class="subject-content" v-else>
<div class="bg-fff pad-b48"> <div class="bg-fff pad-b48">
<img src="./static/img/answer-head.png" alt="" class="head-img"> <img src="https://cdn.cunwuyun.cn/tengxun/miniapp/answer-head.png" alt="" class="head-img">
<div class="head-content"> <div class="head-content">
<p>本次答对题目数</p> <p>本次答对题目数</p>
<div>{{ resultInfo.right }}</div> <div>{{ resultInfo.right }}</div>

View File

@@ -12,21 +12,17 @@
<span>{{ item.groupName }}</span> <span>{{ item.groupName }}</span>
</div> </div>
<div class="photo-item__top--info-item"> <div class="photo-item__top--info-item">
<label>所属网格</label> <label>所属地区</label>
<span>{{ item.girdName }}</span> <span>{{ item.areaName }}</span>
</div> </div>
</div> </div>
</div> </div>
<div class="photo-item__bottom flex"> <div class="photo-item__bottom flex">
<div class="flex fill"> <div class="flex fill">
<i :class="'status-' + item.eventStatus"></i> <i :class="'status-' + item.eventStatus"></i>
<span :class="'status-' + item.eventStatus">{{ item.statusName }}</span> <span :class="'status-' + item.eventStatus">{{ $dict.getLabel('clapEventStatus',item.eventStatus) }}</span>
</div> </div>
<!-- <AiEvaluation :bid="item.id" v-if="item.eventStatus>1"> <div v-if="item.eventStatus>1">
<div class="itemBtn">去评价</div>
<div slot="finish" class="finish">已评价</div>
</AiEvaluation> -->
<div>
<div class="itemBtn" @click="toEvaluate">去评价</div> <div class="itemBtn" @click="toEvaluate">去评价</div>
<!-- <div slot="finish" class="finish">已评价</div> --> <!-- <div slot="finish" class="finish">已评价</div> -->
</div> </div>
@@ -89,41 +85,17 @@ export default {
getList() { getList() {
if (this.isMore) return if (this.isMore) return
this.$instance.post(`/app/appclapeventinfopingchang/listByWxApplet`, null, {
this.$instance.post(`/app/appclapeventinfo/listByWxApplet`, null, {
params: { params: {
current: this.current, current: this.current,
size: 15 size: 15,
} }
}).then(res => { }).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.total = res.data.total this.total = res.data.total
if (this.current > 1) { this.list = this.current == 1? res.data.records : [...this.list, ...res.data.records]
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)
}
})
}
uni.hideLoading() uni.hideLoading()
this.pageShow = true this.pageShow = true
if (res.data.records.length < 15) {
this.isMore = true
return false
}
this.current = this.current + 1
} else {
uni.hideLoading()
} }
}).catch(() => { }).catch(() => {
uni.hideLoading() uni.hideLoading()
@@ -146,6 +118,7 @@ export default {
}, },
onReachBottom() { onReachBottom() {
this.current++
this.getList() this.getList()
} }
} }

View File

@@ -45,7 +45,7 @@
<script> <script>
export default { export default {
appName: "随手拍详情", appName: "微心愿详情",
data() { data() {
return { return {
pageShow: false, pageShow: false,

View File

@@ -203,19 +203,19 @@ export default {
return this.$toast('请输入上报人联系方式') return this.$toast('请输入上报人联系方式')
} }
// if (!this.form.girdId) { if (this.form.areaId.substr(this.form.areaId.length - 3, 3) === '000') {
// return this.$toast('请选择所属网格') return this.$toast('所属地区必须选到村或社区')
// } }
if (this.flag) return if (this.flag) return
this.flag = true this.flag = true
this.$loading() this.$loading()
this.$instance.post(`/app/appclapeventinfo/addOrUpdate`, { this.$instance.post(`/app/appclapeventinfopingchang/addOrUpdate`, {
...this.form, ...this.form,
openid: this.user.openid, openid: this.user.openid,
portrait: this.user.avatarUrl, // portrait: this.user.avatarUrl,
files: this.form.files, // files: this.form.files,
groupName: this.dictList.filter(v => v.value === this.form.groupId)[0].label groupName: this.dictList.filter(v => v.value === this.form.groupId)[0].label
}).then(res => { }).then(res => {
this.$hideLoading() this.$hideLoading()