FeedbookReply.vue
2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<template>
<div class="feedbook_reply">
<p class="content">{{ detailData.content }}</p>
<div class="img_box">
<div
class="img_item"
v-for="(item, index) in detailData.imgs"
:key="index"
:style="'background:url(' + item + ') center/cover no-repeat'"
></div>
</div>
<div class="line" v-if="detailData.replyContent"></div>
<div class="reply_box" v-if="detailData.replyContent">
<p class="title">尊敬的用户您好</p>
<p class="reply">{{ detailData.replyContent }}</p>
<p class="time">{{ detailData.replyTime.substring(0, 10) }}</p>
</div>
</div>
</template>
<script>
export default {
data() {
return {
detailData: {
},
}
},
mounted() {
const id = this.$route.query.id
if (id) {
this.getDetail(id)
} else {
this.$toast('查看回复失败,请稍后再试')
}
},
methods: {
getDetail(id) {
this.yxAxios
.post(`${this.yanxueUrl}/api/Manage/FeedBackList`, {
id: id,
pageSize: 999,
page: 1,
})
.then((res) => {
this.$toast.clear()
console.log('我的反馈列表:', res.data.data)
if (res.data.status == 1) {
let detailData = res.data.data.list[0]
detailData.imgs = detailData.imgs.split(',')
this.detailData = detailData
} else {
this.$toast(res.data.message)
}
})
},
},
}
</script>
<style lang="scss">
.feedbook_reply {
padding: 36px 0;
.content {
font-size: 32px;
color: #999;
padding: 0 24px;
}
.img_box {
margin-top: 98px;
padding: 0 24px;
.img_item {
width: 216px;
height: 216px;
display: inline-block;
margin-right: 24px;
margin-bottom: 24px;
&:nth-of-type(3n) {
margin-right: 0;
}
}
}
.line {
width: 100%;
height: 22px;
background: #f5f6fa;
margin-top: 10px;
}
.reply_box {
padding: 54px 24px;
.title {
font-size: 36px;
font-weight: bold;
}
.reply {
font-size: 32px;
margin-top: 20px;
line-height: 52px;
}
.time {
font-size: 28px;
margin-top: 62px;
text-align: right;
}
}
}
</style>
<style lang="scss">
// 长辈版
.elder {
.feedbook_reply .content{
font-size: 36px;
}
}
</style>