Browse Source

修改问答社区中点赞提问顺序

jwyu 2 years ago
parent
commit
75624b1452
1 changed files with 6 additions and 6 deletions
  1. 6 6
      components/questionComment/questionComment.vue

+ 6 - 6
components/questionComment/questionComment.vue

@@ -15,18 +15,18 @@
 			
 		<!--  -->
 		<view class="question-comment-wrapper">
-			<view class="commetn-item-wrap" @click.stop="setLikeHandle(2)">
+			<view class="commetn-item-wrap" @click.stop="setLikeHandle(1)">
+				<img :src="data.op_type===1?like_act_img:like_img" alt="" class="icon">
+				<text v-if="data.like_total">{{data.like_total}}</text>
+			</view>
+			<view class="commetn-item-wrap" @click.stop="setLikeHandle(2)" style="justify-content:center;">
 				<img :src="data.op_type===2?tease_act_img:tease_img" alt="" class="icon">
 				<text v-if="data.tease_total">{{data.tease_total}}</text>
 			</view>
-			<view class="commetn-item-wrap" @click.stop="openCommentHandle" style="justify-content:center;">
+			<view class="commetn-item-wrap" @click.stop="openCommentHandle" style="justify-content:flex-end;">
 				<img :src="comment_img" alt="" class="icon"> 
 				<text v-if="data.comment_total">{{data.comment_total}}</text>
 			</view>
-			<view class="commetn-item-wrap" @click.stop="setLikeHandle(1)" style="justify-content:flex-end;">
-				<img :src="data.op_type===1?like_act_img:like_img" alt="" class="icon">
-				<text v-if="data.like_total">{{data.like_total}}</text>
-			</view>
 		</view>
 		
 	</view>