|
@@ -16,16 +16,14 @@ import {
|
|
|
shareCircle,
|
|
|
} from '../../../core/libs/requests'
|
|
|
import { handleUpvoteClick } from '../../../core/libs/actions'
|
|
|
-import { thumbsUp } from '../../../core/libs/svgs'
|
|
|
import CommentItem from '../components/comment-item.vue'
|
|
|
-import AvatarGroupCasual from '@/components/avatar-group-casual/avatar-group-casual.vue'
|
|
|
import { useUserStore } from '../../../store'
|
|
|
import { storeToRefs } from 'pinia'
|
|
|
import { isImageOrVideo } from '../../../core/utils/common'
|
|
|
-import { list } from 'radash'
|
|
|
import dayjs from 'dayjs'
|
|
|
import SectionHeading from '@/components/section-heading.vue'
|
|
|
import BottomAppBar from '@/components/bottom-app-bar.vue'
|
|
|
+import { likeActived, likeBlack } from '@designer-hub/assets/src/icons'
|
|
|
|
|
|
const userStore = useUserStore()
|
|
|
const { userInfo } = storeToRefs(userStore)
|
|
@@ -218,7 +216,9 @@ onShareAppMessage(async () => {
|
|
|
<view
|
|
|
class="flex flex-col items-center text-[rgba(0,0,0,0.85)] text-3.5 font-400 line-height-5.5"
|
|
|
>
|
|
|
- <wd-img width="15" height="15" src="/static/svgs/share.svg"></wd-img>
|
|
|
+ <div class="w-4.5 h-4.5 flex items-center justify-center">
|
|
|
+ <wd-img width="15" height="15" src="/static/svgs/share.svg"></wd-img>
|
|
|
+ </div>
|
|
|
<view class="">{{ data?.shareCount || 0 }}</view>
|
|
|
</view>
|
|
|
</button>
|
|
@@ -226,7 +226,9 @@ onShareAppMessage(async () => {
|
|
|
<view
|
|
|
class="flex flex-col items-center text-[rgba(0,0,0,0.85)] text-3.5 font-400 line-height-5.5"
|
|
|
>
|
|
|
- <wd-img width="15" height="15" src="/static/svgs/comment.svg"></wd-img>
|
|
|
+ <div class="w-4.5 h-4.5 flex items-center justify-center">
|
|
|
+ <wd-img width="15" height="15" src="/static/svgs/comment.svg"></wd-img>
|
|
|
+ </div>
|
|
|
<view class="">{{ data?.reviewCount }}</view>
|
|
|
</view>
|
|
|
<view
|
|
@@ -243,7 +245,12 @@ onShareAppMessage(async () => {
|
|
|
)
|
|
|
"
|
|
|
>
|
|
|
- <wd-img width="15" height="15" :src="thumbsUp"></wd-img>
|
|
|
+ <template v-if="data.ownUpvote">
|
|
|
+ <wd-img width="18" height="18" :src="likeActived"></wd-img>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <wd-img width="18" height="18" :src="likeBlack"></wd-img>
|
|
|
+ </template>
|
|
|
<view>{{ data.upvoteCount }}</view>
|
|
|
</view>
|
|
|
</view>
|