MrShi
16 小时以前 29c41b9456bf5db4fdf23e1e6beddf9d4620e55c
mini-program/pages/article-details/article-details.vue
@@ -71,7 +71,7 @@
                     </view>
                  </view>
               </view>
               <view class="pl-more" v-if="item.childern.length > 0">展开2条回复</view>
               <view class="pl-more" v-if="item.childern.length > 0" @click.stop="more(item)">展开{{item.replyCount - 1}}条回复</view>
            </view>
         </view>
      </view>
@@ -248,6 +248,21 @@
            this.multifileList = []
            this.show1 = false
         },
         // 展开评论
         more(item) {
            this.$u.api.findActivityReplyCommentDTOPage({
               capacity: 10,
               page: 1,
               model: {
                  type: 1,
                  commentId: item.id
               }
            }).then(res => {
               if (res.code === 200) {
                  console.log(res)
               }
            })
         },
         // 评论
         sendComment() {
            if (!this.value && this.multifileList.length === 0) return uni.showToast({
@@ -258,7 +273,7 @@
               activityId: this.info.id,
               content: this.value,
               multifileList: this.multifileList,
               commentId: this.commentId,
               // commentId: this.commentId,
               replyId: this.item ? this.item.id : null
            }).then(res => {
               if (res.code === 200) {
@@ -268,7 +283,7 @@
                  if (this.commentId) {
                     this.commentList.forEach(item => {
                        if (item.id === this.commentId) {
                           item.commentList.childern.unshift(res.data)
                           item.childern.unshift(res.data)
                        }
                     })
                  } else {