|
@@ -161,16 +161,21 @@ const delMessageHandle = ({ comment_id }) => {
|
|
|
|
|
|
/* 删除页面上的留言 */
|
|
|
const removeMessageByView = (comment_id) => {
|
|
|
- let index_my = myMessageList.value.findIndex(_ => _.comment_id === comment_id);
|
|
|
- let index_hot = hotMessageList.value.findIndex(_ => _.comment_id === comment_id);
|
|
|
+ let index_my = myMessageList.value.findIndex(_ => _.comment_id === comment_id);
|
|
|
+ let index_hot = hotMessageList.value.findIndex(_ => _.comment_id === comment_id);
|
|
|
|
|
|
- console.log(comment_id,index_my,index_hot)
|
|
|
+ console.log(comment_id,index_my,index_hot)
|
|
|
|
|
|
- index_my !== -1 && myMessageList.value.splice(index_my, 1)
|
|
|
- index_hot !== -1 && hotMessageList.value.splice(index_hot, 1)
|
|
|
- realMyList.value = isSlideMyMsg.value ? myMessageList.value : myMessageList.value.slice(0,3);
|
|
|
+ index_my !== -1 && myMessageList.value.splice(index_my, 1)
|
|
|
+ index_hot !== -1 && hotMessageList.value.splice(index_hot, 1)
|
|
|
+ realMyList.value = isSlideMyMsg.value ? myMessageList.value : myMessageList.value.slice(0,3);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 跳转到问答首页
|
|
|
+ const linkToQuestionHandle = () => {
|
|
|
+ wx.miniProgram.switchTab({url:'/pages/question/question'})
|
|
|
}
|
|
|
-}
|
|
|
|
|
|
</script>
|
|
|
|
|
@@ -275,6 +280,11 @@ const delMessageHandle = ({ comment_id }) => {
|
|
|
<div v-if="myMessageList.length==0&&hotMessageList.length==0" style="text-align:center;font-size:14px;color:#999;line-height:100px">
|
|
|
暂无留言
|
|
|
</div>
|
|
|
+
|
|
|
+ <!-- 跳转问答区域 -->
|
|
|
+ <div class="link-to-question" @click="linkToQuestionHandle">
|
|
|
+ 想要一对一回复吗?去问答社区提问
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -388,5 +398,11 @@ const delMessageHandle = ({ comment_id }) => {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .link-to-question {
|
|
|
+ padding: 20px 0;
|
|
|
+ text-align: center;
|
|
|
+ color: #E3B377;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|