diff --git a/components/side.vue b/components/side.vue index aeeef7e..96ad2bb 100644 --- a/components/side.vue +++ b/components/side.vue @@ -9,12 +9,20 @@ - 发帖人:XXX + 发帖人:XXX 评论数:{{this.value[2]}} + + + {{this.value_add_else}} + + + + + @@ -24,10 +32,23 @@ data() { return { - value: null + value: null, + value_add: null, + write_if:false, + value_add_else:null + } + }, + methods: { + add() { + this.write_if=true + this.value_add_else=this.value_add + this.value_add="" + uni.showToast({ + title: '发布成功', + icon:"success" + }); } }, - methods: {}, onLoad(option) { const id = option.id this.value = JSON.parse(decodeURIComponent(option.data)) @@ -67,4 +88,11 @@ height: 30px; width: 30px; } - + + .comment { + margin: 10px; + } + .comment text{ + + } + \ No newline at end of file