-
-

+
⾦秋穿上⽑⾐,漫步森林,在阳光下呼吸伸展,⾃在安逸的天⼈。也许是兰天名字的由来吧。
+
+
+

+
+
+
+
+
+ 东湖生态旅游风景区听涛景区
-
-

-

+
+
+
+
+
+

+
张三、李四、陶白白等12人
+
+
+
+ 张三:
+ 非常不错!
+
+
+
+ 张三:
+ 为什么不带上我呢!为什么不带上我呢!为什么不带上我呢!
+
+
+
+
@@ -49,112 +83,252 @@ export default {
components: {},
props: {},
data() {
- return {}
+ return {
+ id: '',
+ data: {},
+ poupShow: false,
+ content: '',
+ flag: false,
+ pageShow: false,
+ }
},
computed: {},
watch: {},
- onLoad() {},
+ onLoad(o) {
+ this.$dict.load('atWillReportType').then(() => {
+ this.id = o.id
+ })
+ },
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)
+ })
+ },
+ },
}