26493
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="Detail">
|
||||
<div class="Detail" v-if="pageShow">
|
||||
<div class="detail-top">
|
||||
<div flex class="w-100">
|
||||
<div class="avatar" v-text="data.avatar" />
|
||||
@@ -96,6 +96,7 @@ export default {
|
||||
showBottomInput: false,
|
||||
content: '',
|
||||
flag: false,
|
||||
pageShow: false,
|
||||
isAnnouncer: false
|
||||
}
|
||||
},
|
||||
@@ -106,9 +107,8 @@ export default {
|
||||
return this.data.messages?.length || 0
|
||||
},
|
||||
},
|
||||
watch: {},
|
||||
|
||||
onLoad(o) {
|
||||
console.log(this.user)
|
||||
this.id = o.id
|
||||
this.getDetail()
|
||||
this.$dict.load('discussStatus')
|
||||
@@ -118,6 +118,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getDetail() {
|
||||
this.$loading()
|
||||
this.$http.post(`/app/appvillagediscuss/queryDetailById?id=${this.id}`).then((res) => {
|
||||
if (res?.data) {
|
||||
this.data = {
|
||||
@@ -151,7 +152,14 @@ export default {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
this.$hideLoading()
|
||||
this.pageShow = true
|
||||
} else {
|
||||
this.$hideLoading()
|
||||
}
|
||||
}).catch(() => {
|
||||
this.$hideLoading()
|
||||
})
|
||||
},
|
||||
|
||||
@@ -193,6 +201,7 @@ export default {
|
||||
if (res?.code == 0) {
|
||||
this.$u.toast('留言成功')
|
||||
this.flag = true
|
||||
this.content = ''
|
||||
this.showBottomInput = false
|
||||
this.getDetail()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user