|
@@ -4,7 +4,6 @@ style:
|
|
navigationBarBackgroundColor: '#fff'
|
|
navigationBarBackgroundColor: '#fff'
|
|
</route>
|
|
</route>
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
-import SectionHeading from '@/components/section-heading.vue'
|
|
|
|
import Tag from '@/components/tag.vue'
|
|
import Tag from '@/components/tag.vue'
|
|
import {
|
|
import {
|
|
createCircleReview,
|
|
createCircleReview,
|
|
@@ -12,8 +11,8 @@ import {
|
|
getCircleReviews,
|
|
getCircleReviews,
|
|
getMoment,
|
|
getMoment,
|
|
} from '../../../core/libs/requests'
|
|
} from '../../../core/libs/requests'
|
|
|
|
+import { handleUpvoteClick } from '../../../core/libs/actions'
|
|
import { thumbsUp } from '../../../core/libs/svgs'
|
|
import { thumbsUp } from '../../../core/libs/svgs'
|
|
-import dayjs from 'dayjs'
|
|
|
|
import CommentItem from '../components/comment-item.vue'
|
|
import CommentItem from '../components/comment-item.vue'
|
|
import AvatarGroupCasual from '@/components/avatar-group-casual/avatar-group-casual.vue'
|
|
import AvatarGroupCasual from '@/components/avatar-group-casual/avatar-group-casual.vue'
|
|
import { useUserStore } from '../../../store'
|
|
import { useUserStore } from '../../../store'
|
|
@@ -200,6 +199,17 @@ onLoad(async (query: { id: string }) => {
|
|
</view>
|
|
</view>
|
|
<view
|
|
<view
|
|
class="flex flex-col items-center text-[rgba(0,0,0,0.85)] text-3.5 font-400 line-height-5.5"
|
|
class="flex flex-col items-center text-[rgba(0,0,0,0.85)] text-3.5 font-400 line-height-5.5"
|
|
|
|
+ @click="
|
|
|
|
+ handleUpvoteClick(
|
|
|
|
+ {
|
|
|
|
+ upvote: data.ownUpvote,
|
|
|
|
+ circleId: data.id,
|
|
|
|
+ userId: userInfo.userId,
|
|
|
|
+ userName: userInfo.nickname,
|
|
|
|
+ },
|
|
|
|
+ () => run(),
|
|
|
|
+ )
|
|
|
|
+ "
|
|
>
|
|
>
|
|
<wd-img width="15" height="15" :src="thumbsUp"></wd-img>
|
|
<wd-img width="15" height="15" :src="thumbsUp"></wd-img>
|
|
<view>{{ data.upvoteCount }}</view>
|
|
<view>{{ data.upvoteCount }}</view>
|