重写页面

This commit is contained in:
花有清香月有阴
2021-12-14 15:51:00 +08:00
parent 4171b99a70
commit c57a77ab16
4 changed files with 148 additions and 201 deletions

View File

@@ -3,37 +3,34 @@
<u-navbar title="走访详情" back-icon-color="#fff" title-color="#fff" title-width="300" title-size="36" :border-bottom="false" :background="backgroundNavbar"> </u-navbar>
<div class="header-top">
<div class="hint">花园小区1栋101脱贫攻坚走访沙堡村李维民</div>
<div class="hint">{{ data.title }}</div>
<div class="walk-item">
<span>走访对象</span>
<span>李维民</span>
<span>{{ data.createUserName }}</span>
</div>
<div class="walk-item">
<div class="walk-item" v-if="data.reality">
<span>现实状态</span>
<span>李维民</span>
<span>{{ $dict.getLabel('realityStatus', data.reality) }} </span>
</div>
<div class="walk-item">
<span>走访人员</span>
<span>李维民</span>
<span>{{ data.createUserName }}</span>
</div>
<div class="walk-item">
<span>走访时间</span>
<span>2021-12-28 14:00</span>
<span>{{ data.createTime }}</span>
</div>
</div>
<div class="header-middle">
<div class="hint-con">本次议事会通过7步议事法即收集意见确认议题制定方案发布公告组织协商结果运用反馈公示的模拟方式进行协商讨论并教授议事会成员自如运用议事措施开展后续落地计划的学习性和功能性会议 组织协商结果运用反馈公示的模拟方式进行协商讨论并教授议事会成员自如运用议事措施开展后续落地计划的线上学习性和功能性会议作为基层民主自治的新亮点已经全面铺开的互联网+议事大厅使得三联村成功走出了一条集思广益民主决策和村民自治的新路子</div>
<div class="hint-con" v-if="data.description">{{ data.description }}</div>
<div class="imgs">
<img src="./components/images/天使彦5.jpg" alt="" />
<img src="./components/images/天使彦5.jpg" alt="" />
<img src="./components/images/天使彦5.jpg" alt="" />
<img src="./components/images/天使彦5.jpg" alt="" />
<img :src="item.url" alt="" v-for="(item, index) in data.images" :key="index" />
</div>
</div>
@@ -45,7 +42,9 @@
export default {
name: 'detail',
components: {},
props: {},
props: {
params: {},
},
data() {
return {
data: {},
@@ -56,14 +55,19 @@ export default {
},
computed: {},
created() {
this.getDetail()
this.$dict.load('realityStatus').then(() => {
this.getDetail()
})
},
mounted() {},
methods: {
getDetail() {
this.$http.post(`/app/appvisitvondolence/queryDetailById?id=${this.id}`).then((res) => {
this.$http.post(`/app/appvisitvondolence/queryDetailById?id=${this.params.id}`).then((res) => {
if (res?.data) {
this.data = res.data
if (this.data.images) {
this.data.images = JSON.parse(this.data.images || '[]')
}
}
})
},