jf
This commit is contained in:
@@ -3,24 +3,26 @@
|
||||
<div class="avatar-info">
|
||||
<div class="avatar-img">
|
||||
<img src="./img/tx@2x.png" alt="">
|
||||
<!-- <img src="./img/tx@2x.png" alt=""> -->
|
||||
</div>
|
||||
<div class="avatar-title">
|
||||
<div class="name">雷洋</div>
|
||||
<div class="name">
|
||||
<!-- <AiOpenData type="userName" :openid="data.id" style="display: inline-block;"/> -->
|
||||
{{ data.id }}
|
||||
</div>
|
||||
<div class="time">
|
||||
<span>美丽庭院</span>
|
||||
<span>2020-10-28 12:30</span>
|
||||
<span>{{ $dict.getLabel('villagerCircleTopic',data.topic) }}</span>
|
||||
<span>{{ data.createTime }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="textarea">⾦秋穿上⽑⾐,漫步森林,在阳光下呼吸伸展,⾃在安逸的天⼈。也许是兰天名字的由来吧。</div>
|
||||
<div>
|
||||
<img :src="item.url" alt="" v-for="(item, i) in files" :key="i" @click="previewImage(files, item.url)" />
|
||||
<div class="textarea">{{ data.content }}</div>
|
||||
<div style="background: #FFFFFF; padding:0 30px; box-sizing: border-box;">
|
||||
<img :src="item.url" alt="" v-for="(item, i) in data.pictures" :key="i" @click="previewImage(data.pictures, item.url)" class="upLoadPic"/>
|
||||
</div>
|
||||
<div class="address">
|
||||
<div class="address" v-if="data.gpsDesc">
|
||||
<span class="addr-bg">
|
||||
<img src="./img/address.png" alt="">
|
||||
<span>东湖生态旅游风景区听涛景区</span>
|
||||
<span>{{ data.gpsDesc }}</span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="comment">
|
||||
@@ -67,29 +69,51 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
files: [],
|
||||
status: 1,
|
||||
|
||||
status: 0,
|
||||
id: '',
|
||||
data: {},
|
||||
}
|
||||
},
|
||||
onLoad(o) {
|
||||
this.$dict.load('villagerCircleTopic').then(()=>{
|
||||
this.id = o.id
|
||||
this.getDetail()
|
||||
this.getComment()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
previewImage() {},
|
||||
previewImage(images, img) {
|
||||
uni.previewImage({
|
||||
urls: images.map(v => v.url),
|
||||
current: img
|
||||
})
|
||||
},
|
||||
getDetail() {
|
||||
this.$http.post(`/app/appvillagercircleinfo/queryDetailById?id=${this.id}`).then(res => {
|
||||
// console.log(res);
|
||||
if(res.code==0){
|
||||
this.data = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
getComment() {
|
||||
this.$http.post('/app/appvillagercirclecomment/list').then((res)=>{
|
||||
console.log(res);
|
||||
})
|
||||
},
|
||||
toReject() {
|
||||
uni.navigateTo({url: './Reject'})
|
||||
uni.navigateTo({url: `./Reject?id=${data.id}`})
|
||||
},
|
||||
agree() {}
|
||||
},
|
||||
onShow() {
|
||||
document.title = "村民圈审核"
|
||||
},
|
||||
onLoad() {},
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.detail {
|
||||
|
||||
.avatar-info {
|
||||
display: flex;
|
||||
padding: 0 32px;
|
||||
@@ -124,6 +148,7 @@ export default {
|
||||
box-sizing: border-box;
|
||||
font-size: 32px;
|
||||
background: #FFFFFF;
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
.address {
|
||||
background: #FFFFFF;
|
||||
@@ -185,6 +210,7 @@ export default {
|
||||
width: 100%;
|
||||
padding: 30px 0 0 0 ;
|
||||
color: #999999;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
.nopass {
|
||||
@@ -195,6 +221,14 @@ export default {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
.upLoadPic {
|
||||
width: 220px;
|
||||
height:220px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
.upLoadPic:nth-child(3n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
.btn {
|
||||
display: flex;
|
||||
position: fixed;
|
||||
@@ -215,6 +249,5 @@ export default {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user