浏览代码

Merge branch 'xqc_question_shunxu'

jwyu 2 年之前
父节点
当前提交
fcce9a3382
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. 6 5
      src/components/QuestionComment.vue

+ 6 - 5
src/components/QuestionComment.vue

@@ -149,6 +149,11 @@ const delCommentHandle = ({community_question_comment_id},index) => {
 
 <template>
     <div class="question-comment-wrapper">
+        <view class="commetn-item-wrap" @click="setLikeHandle(1)">
+            <img src="@/assets/question/like_act.png" alt="" v-if="dataInfo.op_type===1" class="icon">
+            <img src="@/assets/question/like.png" alt="" v-else class="icon">
+            <text style="min-width:50px;">{{dataInfo.like_total || ''}}</text>
+        </view>
         <view class="commetn-item-wrap" @click="setLikeHandle(2)">
             <img src="@/assets/question/tease_act.png" alt="" v-if="dataInfo.op_type===2" class="icon">
             <img src="@/assets/question/tease.png" alt="" v-else class="icon">
@@ -165,11 +170,7 @@ const delCommentHandle = ({community_question_comment_id},index) => {
                 <text style="min-width:50px;">{{dataInfo.comment_total || ''}}</text>
             </template>
         </view>
-        <view class="commetn-item-wrap" @click="setLikeHandle(1)">
-            <img src="@/assets/question/like_act.png" alt="" v-if="dataInfo.op_type===1" class="icon">
-            <img src="@/assets/question/like.png" alt="" v-else class="icon">
-            <text style="min-width:50px;">{{dataInfo.like_total || ''}}</text>
-        </view>
+        
     </div>
     <!-- 全部留言模块 -->
     <div class="hot-comment-wrap" v-if="dataInfo.commentInfo&&!dataInfo.commentInfo.show&&dataInfo.comment_list.length>0">