This commit is contained in:
花有清香月有阴
2022-02-17 10:01:02 +08:00
parent 7af36a0d8b
commit ba01c46f41
3 changed files with 298 additions and 119 deletions

View File

@@ -36,7 +36,7 @@
</div> </div>
</div> </div>
<div class="tabCurrent0" v-if="tabIndex != 3 && tabCurrent == 0"> <div class="tabCurrent0" v-if="tabIndex != 3 || tabCurrent == 0">
<div class="cardConts">秋穿上漫步森林在阳光下呼吸伸展在安逸的天也许是兰天名字的由来吧</div> <div class="cardConts">秋穿上漫步森林在阳光下呼吸伸展在安逸的天也许是兰天名字的由来吧</div>
<div class="cardImg"> <div class="cardImg">
@@ -239,6 +239,7 @@ export default {
.datas { .datas {
.card { .card {
padding: 32px 0 48px 0; padding: 32px 0 48px 0;
box-shadow: inset 0px -1px 0px 0px #dddddd;
.cardTop { .cardTop {
display: flex; display: flex;
img { img {
@@ -262,7 +263,7 @@ export default {
.titless { .titless {
font-size: 26px; font-size: 26px;
color: #6e727a; color: #6e727a;
margin-top: 1px; margin-top: 6px;
} }
} }
.status { .status {
@@ -319,6 +320,7 @@ export default {
.rightFlex { .rightFlex {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
width: 27%;
.img2, .img2,
.img3 { .img3 {
width: 48px; width: 48px;
@@ -326,6 +328,9 @@ export default {
} }
} }
} }
.icon:nth-child(2) {
background: #fff;
}
} }
} }

View File

@@ -1,7 +1,10 @@
<template> <template>
<div class="Page"> <div class="Page">
<div class="top">未通过原因请勿带情绪进行评论请勿带情绪进行评论请勿带情绪进行评论</div> <div class="top">
<div class="tops">未通过原因请勿带情绪进行评论请勿带情绪进行评论请勿带情绪进行评论</div>
</div>
<div class="middle">
<div class="cardTop"> <div class="cardTop">
<img src="../../static/workOnline/池夏2.jpg" alt="" /> <img src="../../static/workOnline/池夏2.jpg" alt="" />
@@ -13,7 +16,7 @@
</div> </div>
<!-- :style="{ class: item.auditStatus == 0 ? 'status0' : item.auditStatus == 1 ? 'status1' : 'status2' }" --> <!-- :style="{ class: item.auditStatus == 0 ? 'status0' : item.auditStatus == 1 ? 'status1' : 'status2' }" -->
<div class="status status0" v-if="tabIndex == 3">审核中</div> <div class="status status0">审核中</div>
</div> </div>
</div> </div>
@@ -24,22 +27,53 @@
</div> </div>
<div class="cardBot"> <div class="cardBot">
<div class="icon"> <div class="icons">
<u-icon name="map-fill"></u-icon> <u-icon name="map-fill"></u-icon>
<span>东湖生态旅游风景区听涛景区</span> <span>东湖生态旅游风景区听涛景区</span>
</div> </div>
<div class="icon" v-if="tabIndex != 3"> <div class="icones">
<div class="img1"> <div class="img1">
<img src="../../static/AppVillager/1.png" alt="" class="img11" /> <img src="../../static/AppVillager/1.png" alt="" class="img11" />
</div> </div>
<div class="rightFlex"> <div class="rightFlex">
<img src="../../static/AppVillager/2.png" alt="" class="img2" /> <img src="../../static/AppVillager/2.png" alt="" class="img2" @click="poupShow = true" />
<img src="../../static/AppVillager/3.png" alt="" class="img3" /> <img src="../../static/AppVillager/3.png" alt="" class="img3" @click="like" />
</div> </div>
</div> </div>
</div> </div>
<div class="reply">
<div class="replyTop">
<img src="../../static/AppVillager/3.png" alt="" />
<span class="people">张三李四陶白白等12人</span>
</div>
<div class="replyCont">
<span class="nameLeft">张三</span>
<span class="contRight">非常不错</span>
</div>
<div class="replyCont">
<span class="nameLeft">张三</span>
<span class="contRight">为什么不带上我呢为什么不带上我呢为什么不带上我呢</span>
</div>
</div>
</div>
<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>
</div> </div>
</template> </template>
@@ -49,30 +83,87 @@ export default {
components: {}, components: {},
props: {}, props: {},
data() { data() {
return {} return {
id: '',
data: {},
poupShow: false,
content: '',
flag: false,
pageShow: false,
}
}, },
computed: {}, computed: {},
watch: {}, watch: {},
onLoad() {}, onLoad(o) {
this.$dict.load('atWillReportType').then(() => {
this.id = o.id
})
},
onShow() {}, onShow() {},
methods: {}, methods: {
send() {
if (this.flag) return
if (!this.content) {
return this.$u.toast('请输入你的想法')
}
this.$http
.post(`/app/appvillagediscussmessage/addOrUpdate`, {
content: this.content,
avatar: this.user.avatar,
createUserId: this.user.id,
createUserName: this.user.name,
discussId: this.id,
})
.then((res) => {
if (res?.code == 0) {
this.$u.toast('留言成功')
this.flag = false
this.content = ''
this.showBottomInput = false
this.getDetail()
}
})
},
like(id) {
this.$http
.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)
})
},
},
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.Page { .Page {
background: #fff; background: #fff;
padding: 0 32px;
.top { .top {
padding-top: 32px;
.tops {
padding: 24px; padding: 24px;
font-size: 26px; font-size: 26px;
color: #ff4466; color: #ff4466;
background: #fff5f7; background: #fff5f7;
border-radius: 16px; border-radius: 16px;
margin: 32px 0; }
} }
.middle {
padding-bottom: 48px;
.cardTop { .cardTop {
display: flex; display: flex;
margin-top: 32px;
img { img {
width: 96px; width: 96px;
height: 96px; height: 96px;
@@ -94,7 +185,7 @@ export default {
.titless { .titless {
font-size: 26px; font-size: 26px;
color: #6e727a; color: #6e727a;
margin-top: 1px; margin-top: 6px;
} }
} }
.status { .status {
@@ -131,12 +222,12 @@ export default {
.cardBot { .cardBot {
margin-top: 24px; margin-top: 24px;
.icon { .icons {
padding: 8px 32px 8px 16px; padding: 8px 32px 8px 16px;
background: #eff1f3; background: #eff1f3;
border-radius: 28px; border-radius: 28px;
} }
.icon { .icones {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin-top: 24px; margin-top: 24px;
@@ -150,6 +241,7 @@ export default {
.rightFlex { .rightFlex {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
width: 27%;
.img2, .img2,
.img3 { .img3 {
width: 48px; width: 48px;
@@ -158,5 +250,87 @@ export default {
} }
} }
} }
.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;
}
}
.replyCont {
margin-top: 8px;
font-size: 28px;
font-weight: 500;
.nameLeft {
color: #485d87;
}
.contRight {
color: #485d87;
}
}
}
}
.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;
}
.bottombtn {
display: flex;
justify-content: space-between;
align-items: center;
margin: 0 30px;
padding: 20px 0 0;
.emptys {
font-size: 26px;
color: #666666;
}
.publishs {
width: 144px;
height: 64px;
line-height: 64px;
text-align: center;
background: #1365dd;
border-radius: 32px;
color: #fff;
}
}
}
} }
</style> </style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB