first commit
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<template>
|
||||
<view class="min-height bg-main-light">
|
||||
<HeaderItem title="我的法治检查"/>
|
||||
<template v-if="list.length">
|
||||
<view class="card m-25 text-25" v-for="(item, index) in list" :key="index">
|
||||
<view class="flex justify-between items-center">
|
||||
<text class="font-bold">{{ item.title }}</text>
|
||||
<u-tag :text="`${item.point}分`" type="primary" shape="circle" size="mini"/>
|
||||
</view>
|
||||
<view class="flex justify-start items-center py-15 border-bottom"
|
||||
v-for="(content, contentIndex) in JSON.parse(item.content)" :key="contentIndex">
|
||||
<text class="text-gray">{{ content.quest }}:</text>
|
||||
<text class="ml-10">{{ content.answer }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<u-empty v-else icon="/static/empty.png"/>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import HeaderItem from "@/components/HeaderItem.vue";
|
||||
import {listFeedbackReq} from "@/api/common";
|
||||
import {listLegalOrgCheckContentReq} from "@/api/legalOrgCheck";
|
||||
|
||||
export default {
|
||||
name: "userFeedback",
|
||||
components: {HeaderItem},
|
||||
data() {
|
||||
return {
|
||||
list: []
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async getList() {
|
||||
const {data} = await listLegalOrgCheckContentReq()
|
||||
this.list = data
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getList()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user