2022-02-16 20:37:46 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="Page">
|
2022-02-17 10:01:02 +08:00
|
|
|
|
<div class="top">
|
|
|
|
|
|
<div class="tops">未通过原因:请勿带情绪进行评论请勿带情绪进行评论请勿带情绪进行评论</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="middle">
|
|
|
|
|
|
<div class="cardTop">
|
2022-02-17 16:07:34 +08:00
|
|
|
|
<img src="../../static/workOnline/icon3@2x.png" alt="" />
|
2022-02-16 20:37:46 +08:00
|
|
|
|
|
2022-02-17 10:01:02 +08:00
|
|
|
|
<div class="rightTop">
|
|
|
|
|
|
<div class="leftStaus">
|
|
|
|
|
|
<span class="names">雷洋</span>
|
2022-02-16 20:37:46 +08:00
|
|
|
|
|
2022-02-17 10:01:02 +08:00
|
|
|
|
<span class="titless">美丽庭院 | 2020-10-28 12</span>
|
|
|
|
|
|
</div>
|
2022-02-16 20:37:46 +08:00
|
|
|
|
|
2022-02-17 10:01:02 +08:00
|
|
|
|
<!-- :style="{ class: item.auditStatus == 0 ? 'status0' : item.auditStatus == 1 ? 'status1' : 'status2' }" -->
|
2022-02-17 18:17:40 +08:00
|
|
|
|
|
2022-02-17 10:01:02 +08:00
|
|
|
|
<div class="status status0">审核中</div>
|
2022-02-16 20:37:46 +08:00
|
|
|
|
</div>
|
2022-02-17 10:01:02 +08:00
|
|
|
|
</div>
|
2022-02-16 20:37:46 +08:00
|
|
|
|
|
2022-02-17 10:01:02 +08:00
|
|
|
|
<div class="cardConts">⾦秋穿上⽑⾐,漫步森林,在阳光下呼吸伸展,⾃在安逸的天⼈。也许是兰天名字的由来吧。</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="cardImg">
|
2022-02-17 16:07:34 +08:00
|
|
|
|
<img src="../../static/workOnline/icon3@2x.png" alt="" v-for="(items, i) in 4" :key="i" />
|
2022-02-16 20:37:46 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2022-02-17 10:01:02 +08:00
|
|
|
|
<div class="cardBot">
|
|
|
|
|
|
<div class="icons">
|
|
|
|
|
|
<u-icon name="map-fill"></u-icon>
|
|
|
|
|
|
<span>东湖生态旅游风景区听涛景区</span>
|
|
|
|
|
|
</div>
|
2022-02-16 20:37:46 +08:00
|
|
|
|
|
2022-02-17 10:01:02 +08:00
|
|
|
|
<div class="icones">
|
|
|
|
|
|
<div class="img1">
|
|
|
|
|
|
<img src="../../static/AppVillager/1.png" alt="" class="img11" />
|
|
|
|
|
|
</div>
|
2022-02-16 20:37:46 +08:00
|
|
|
|
|
2022-02-17 10:01:02 +08:00
|
|
|
|
<div class="rightFlex">
|
|
|
|
|
|
<img src="../../static/AppVillager/2.png" alt="" class="img2" @click="poupShow = true" />
|
|
|
|
|
|
<img src="../../static/AppVillager/3.png" alt="" class="img3" @click="like" />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2022-02-16 20:37:46 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2022-02-17 10:01:02 +08:00
|
|
|
|
<div class="reply">
|
|
|
|
|
|
<div class="replyTop">
|
|
|
|
|
|
<img src="../../static/AppVillager/3.png" alt="" />
|
|
|
|
|
|
<span class="people">张三、李四、陶白白等12人</span>
|
2022-02-16 20:37:46 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2022-02-17 10:01:02 +08:00
|
|
|
|
<div class="replyCont">
|
|
|
|
|
|
<span class="nameLeft">张三:</span>
|
|
|
|
|
|
<span class="contRight">非常不错!</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="replyCont">
|
|
|
|
|
|
<span class="nameLeft">张三:</span>
|
|
|
|
|
|
<span class="contRight">为什么不带上我呢!为什么不带上我呢!为什么不带上我呢!</span>
|
2022-02-16 20:37:46 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2022-02-17 10:01:02 +08:00
|
|
|
|
|
|
|
|
|
|
<u-popup v-model="poupShow" height="auto" mode="bottom" @close="close">
|
|
|
|
|
|
<div class="comments-wrapper">
|
|
|
|
|
|
<u-input v-model="content" placeholder="写下你的想法" type="textarea" auto-height :clearable="false" height="180" maxlength="140"> </u-input>
|
|
|
|
|
|
<div class="words">字数{{ content.length }}/140</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="bottombtn">
|
|
|
|
|
|
<div class="emptys" @click="content = ''">清空内容</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="publishs" @click="send">发送</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</u-popup>
|
2022-02-17 18:17:40 +08:00
|
|
|
|
|
|
|
|
|
|
<u-popup v-model="deleShow" mode="bottom" class="popupdele">
|
|
|
|
|
|
<div class="hint">删除评论</div>
|
|
|
|
|
|
<div class="dele" @click="modalShow = true">删除</div>
|
|
|
|
|
|
<div class="liness"></div>
|
|
|
|
|
|
<div class="cancel" @click="deleShow = false">取消</div>
|
|
|
|
|
|
</u-popup>
|
|
|
|
|
|
|
|
|
|
|
|
<u-modal v-model="modalShow" content="确定删除该留言" :mask-close-able="true" @confirm="confirmDelete"></u-modal>
|
2022-02-16 20:37:46 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
export default {
|
|
|
|
|
|
name: 'detail',
|
|
|
|
|
|
components: {},
|
|
|
|
|
|
props: {},
|
|
|
|
|
|
data() {
|
2022-02-17 10:01:02 +08:00
|
|
|
|
return {
|
2022-02-17 18:17:40 +08:00
|
|
|
|
id: '888',
|
2022-02-17 10:01:02 +08:00
|
|
|
|
data: {},
|
|
|
|
|
|
poupShow: false,
|
|
|
|
|
|
content: '',
|
|
|
|
|
|
flag: false,
|
|
|
|
|
|
pageShow: false,
|
2022-02-17 18:17:40 +08:00
|
|
|
|
deleShow: false,
|
|
|
|
|
|
modalShow: false,
|
|
|
|
|
|
deleId: '',
|
2022-02-17 10:01:02 +08:00
|
|
|
|
}
|
2022-02-16 20:37:46 +08:00
|
|
|
|
},
|
|
|
|
|
|
computed: {},
|
|
|
|
|
|
watch: {},
|
2022-02-17 10:01:02 +08:00
|
|
|
|
onLoad(o) {
|
|
|
|
|
|
this.$dict.load('atWillReportType').then(() => {
|
2022-02-17 18:17:40 +08:00
|
|
|
|
// this.id = o.id
|
|
|
|
|
|
this.getDetail()
|
2022-02-17 10:01:02 +08:00
|
|
|
|
})
|
|
|
|
|
|
},
|
2022-02-16 20:37:46 +08:00
|
|
|
|
onShow() {},
|
2022-02-17 10:01:02 +08:00
|
|
|
|
methods: {
|
2022-02-17 18:17:40 +08:00
|
|
|
|
getDetail() {
|
|
|
|
|
|
this.$instance.post(`/app/appvillagercircleinfo/queryDetailById?id=${this.id}`).then((res) => {
|
|
|
|
|
|
if (res.code == 0) {
|
|
|
|
|
|
this.detail = res.data
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
|
2022-02-17 10:01:02 +08:00
|
|
|
|
send() {
|
|
|
|
|
|
if (this.flag) return
|
|
|
|
|
|
if (!this.content) {
|
|
|
|
|
|
return this.$u.toast('请输入你的想法')
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2022-02-17 16:07:34 +08:00
|
|
|
|
this.$instance
|
2022-02-17 18:17:40 +08:00
|
|
|
|
.post(`/app/appvillagercirclecomment/addOrUpdate`, {
|
2022-02-17 10:01:02 +08:00
|
|
|
|
content: this.content,
|
2022-02-17 18:17:40 +08:00
|
|
|
|
replyUserResidentId: this.user.id,
|
|
|
|
|
|
replyUserName: this.user.name,
|
|
|
|
|
|
id: this.id,
|
2022-02-17 10:01:02 +08:00
|
|
|
|
})
|
|
|
|
|
|
.then((res) => {
|
|
|
|
|
|
if (res?.code == 0) {
|
|
|
|
|
|
this.$u.toast('留言成功')
|
|
|
|
|
|
this.flag = false
|
|
|
|
|
|
this.content = ''
|
2022-02-17 18:17:40 +08:00
|
|
|
|
this.poupShow = false
|
|
|
|
|
|
// this.getDetail()
|
2022-02-17 10:01:02 +08:00
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
|
2022-02-17 18:17:40 +08:00
|
|
|
|
like() {
|
|
|
|
|
|
var id = '88'
|
2022-02-17 16:07:34 +08:00
|
|
|
|
this.$instance
|
2022-02-17 10:01:02 +08:00
|
|
|
|
.post(`/app/appvillagediscussmessage/suport?id=${id}&userId=${this.user.id}`)
|
|
|
|
|
|
.then((res) => {
|
|
|
|
|
|
this.$hideLoading()
|
|
|
|
|
|
if (res.code === 0) {
|
|
|
|
|
|
this.$u.toast('点赞成功')
|
|
|
|
|
|
this.getDetail()
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
|
this.$u.toast(err)
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
2022-02-17 18:17:40 +08:00
|
|
|
|
|
|
|
|
|
|
confirmDelete() {
|
|
|
|
|
|
this.$instance
|
|
|
|
|
|
.post(`/app/appvillagercirclecomment/delete?ids=${this.deleId}`)
|
|
|
|
|
|
.then((res) => {
|
|
|
|
|
|
if (res?.data) {
|
|
|
|
|
|
this.deleShow = false
|
|
|
|
|
|
this.modalShow = false
|
|
|
|
|
|
this.deleId = ''
|
|
|
|
|
|
this.getDetail()
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
.catch((e) => {
|
|
|
|
|
|
this.$hideLoading()
|
|
|
|
|
|
this.$u.toast(e)
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
2022-02-17 10:01:02 +08:00
|
|
|
|
},
|
2022-02-16 20:37:46 +08:00
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
|
.Page {
|
|
|
|
|
|
background: #fff;
|
2022-02-17 10:01:02 +08:00
|
|
|
|
padding: 0 32px;
|
2022-02-16 20:37:46 +08:00
|
|
|
|
.top {
|
2022-02-17 10:01:02 +08:00
|
|
|
|
padding-top: 32px;
|
|
|
|
|
|
.tops {
|
|
|
|
|
|
padding: 24px;
|
|
|
|
|
|
font-size: 26px;
|
|
|
|
|
|
color: #ff4466;
|
|
|
|
|
|
background: #fff5f7;
|
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
|
}
|
2022-02-16 20:37:46 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2022-02-17 10:01:02 +08:00
|
|
|
|
.middle {
|
|
|
|
|
|
padding-bottom: 48px;
|
|
|
|
|
|
.cardTop {
|
2022-02-16 20:37:46 +08:00
|
|
|
|
display: flex;
|
2022-02-17 10:01:02 +08:00
|
|
|
|
margin-top: 32px;
|
|
|
|
|
|
img {
|
|
|
|
|
|
width: 96px;
|
|
|
|
|
|
height: 96px;
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
}
|
|
|
|
|
|
.rightTop {
|
2022-02-16 20:37:46 +08:00
|
|
|
|
display: flex;
|
2022-02-17 10:01:02 +08:00
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
.leftStaus {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
margin-left: 16px;
|
|
|
|
|
|
.names {
|
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
}
|
|
|
|
|
|
.titless {
|
|
|
|
|
|
font-size: 26px;
|
|
|
|
|
|
color: #6e727a;
|
|
|
|
|
|
margin-top: 6px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2022-02-17 18:17:40 +08:00
|
|
|
|
|
2022-02-17 10:01:02 +08:00
|
|
|
|
.status {
|
|
|
|
|
|
font-size: 28px;
|
2022-02-17 18:17:40 +08:00
|
|
|
|
margin-right: 10px;
|
2022-02-16 20:37:46 +08:00
|
|
|
|
}
|
2022-02-17 10:01:02 +08:00
|
|
|
|
.status0 {
|
|
|
|
|
|
color: #42d784;
|
|
|
|
|
|
}
|
|
|
|
|
|
.status1 {
|
|
|
|
|
|
color: #ff4466;
|
|
|
|
|
|
}
|
|
|
|
|
|
.status2 {
|
|
|
|
|
|
color: #ff883c;
|
2022-02-16 20:37:46 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2022-02-17 10:01:02 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.cardConts {
|
|
|
|
|
|
margin-top: 24px;
|
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.cardImg {
|
|
|
|
|
|
margin-top: 24px;
|
|
|
|
|
|
img {
|
|
|
|
|
|
width: 226px;
|
|
|
|
|
|
height: 226px;
|
|
|
|
|
|
margin-right: 4px;
|
2022-02-16 20:37:46 +08:00
|
|
|
|
}
|
2022-02-17 10:01:02 +08:00
|
|
|
|
img:nth-child(3n + 0) {
|
|
|
|
|
|
margin-right: 0;
|
2022-02-16 20:37:46 +08:00
|
|
|
|
}
|
2022-02-17 10:01:02 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.cardBot {
|
|
|
|
|
|
margin-top: 24px;
|
|
|
|
|
|
.icons {
|
|
|
|
|
|
padding: 8px 32px 8px 16px;
|
|
|
|
|
|
background: #eff1f3;
|
|
|
|
|
|
border-radius: 28px;
|
2022-02-16 20:37:46 +08:00
|
|
|
|
}
|
2022-02-17 10:01:02 +08:00
|
|
|
|
.icones {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
margin-top: 24px;
|
|
|
|
|
|
.img1 {
|
|
|
|
|
|
width: 60%;
|
|
|
|
|
|
.img11 {
|
|
|
|
|
|
width: 48px;
|
|
|
|
|
|
height: 48px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
.rightFlex {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
width: 27%;
|
|
|
|
|
|
.img2,
|
|
|
|
|
|
.img3 {
|
|
|
|
|
|
width: 48px;
|
|
|
|
|
|
height: 48px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2022-02-16 20:37:46 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2022-02-17 10:01:02 +08:00
|
|
|
|
.reply {
|
|
|
|
|
|
margin-top: 32px;
|
|
|
|
|
|
padding: 0 24px 24px 24px;
|
|
|
|
|
|
background: #f7f8f9;
|
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
|
.replyTop {
|
|
|
|
|
|
padding: 20px 0;
|
|
|
|
|
|
margin-bottom: 18px;
|
|
|
|
|
|
img {
|
|
|
|
|
|
width: 40px;
|
|
|
|
|
|
height: 40px;
|
|
|
|
|
|
vertical-align: bottom;
|
|
|
|
|
|
}
|
|
|
|
|
|
.people {
|
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
color: #485d87;
|
|
|
|
|
|
margin-left: 8px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2022-02-16 20:37:46 +08:00
|
|
|
|
|
2022-02-17 10:01:02 +08:00
|
|
|
|
.replyCont {
|
|
|
|
|
|
margin-top: 8px;
|
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
.nameLeft {
|
|
|
|
|
|
color: #485d87;
|
|
|
|
|
|
}
|
|
|
|
|
|
.contRight {
|
|
|
|
|
|
color: #485d87;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2022-02-16 20:37:46 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2022-02-17 10:01:02 +08:00
|
|
|
|
.comments-wrapper {
|
|
|
|
|
|
padding: 20px 0;
|
|
|
|
|
|
background: #f7f7f7;
|
|
|
|
|
|
.u-input {
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
border-radius: 8px 8px 0 0;
|
|
|
|
|
|
padding: 10px !important;
|
|
|
|
|
|
margin: 0 30px 0 30px;
|
|
|
|
|
|
|
|
|
|
|
|
.uni-textarea-placeholder {
|
|
|
|
|
|
padding: 16px 0 0 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.uni-textarea-textarea {
|
|
|
|
|
|
padding: 16px 0 0 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
.words {
|
|
|
|
|
|
background: #f7f7f7;
|
|
|
|
|
|
border-radius: 0 0 8px 8px;
|
|
|
|
|
|
margin: 0 30px;
|
|
|
|
|
|
padding: 10px;
|
|
|
|
|
|
text-align: right;
|
|
|
|
|
|
font-size: 26px;
|
|
|
|
|
|
color: #999999;
|
2022-02-16 20:37:46 +08:00
|
|
|
|
}
|
2022-02-17 10:01:02 +08:00
|
|
|
|
.bottombtn {
|
2022-02-16 20:37:46 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
2022-02-17 10:01:02 +08:00
|
|
|
|
align-items: center;
|
|
|
|
|
|
margin: 0 30px;
|
|
|
|
|
|
padding: 20px 0 0;
|
|
|
|
|
|
.emptys {
|
|
|
|
|
|
font-size: 26px;
|
|
|
|
|
|
color: #666666;
|
2022-02-16 20:37:46 +08:00
|
|
|
|
}
|
2022-02-17 10:01:02 +08:00
|
|
|
|
.publishs {
|
|
|
|
|
|
width: 144px;
|
|
|
|
|
|
height: 64px;
|
|
|
|
|
|
line-height: 64px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
background: #1365dd;
|
|
|
|
|
|
border-radius: 32px;
|
|
|
|
|
|
color: #fff;
|
2022-02-16 20:37:46 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|