修改热门为日榜排名
This commit is contained in:
parent
3f58a82a91
commit
4d2c2a3e30
@ -2,6 +2,16 @@
|
||||
<view class="creation-grid">
|
||||
<view v-for="(item, index) in creationList" :key="item.id" class="creation-card" @click="handleCardClick(item)">
|
||||
<image class="creation-image" :src="item.cover_image" mode="aspectFill"></image>
|
||||
<view class="like-badge">
|
||||
<view class="like-icon-wrapper">
|
||||
<image class="like-icon"
|
||||
:src="item.is_liked ? '/static/icon/heart-icon.png' : '/static/icon/heart-icon-false.png'" mode="aspectFit">
|
||||
</image>
|
||||
<text class="like-count">{{ formatCount(item.like_count) }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="wf-like-wave wf-like-wave-outer" :class="{ 'wf-like-wave-active': likingMap[item.id] }" />
|
||||
<view class="wf-like-wave wf-like-wave-inner" :class="{ 'wf-like-wave-active': likingMap[item.id] }" />
|
||||
<view class="creation-info">
|
||||
<view class="creation-id">
|
||||
<text class="id-text">#{{ item.certificate_id }}</text>
|
||||
@ -11,10 +21,7 @@
|
||||
<image class="creator-avatar" :src="item.creator_avatar" mode="aspectFill"></image>
|
||||
<text class="creator-name">{{ item.creator_name }}</text>
|
||||
</view>
|
||||
<view class="like-info">
|
||||
<image class="like-icon" src="/static/icon/heart-icon.png" mode="aspectFit"></image>
|
||||
<text class="like-count">{{ formatCount(item.like_count) }}</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -48,6 +55,7 @@ const cursor = ref('')
|
||||
const isLoading = ref(false)
|
||||
const noMore = ref(false)
|
||||
let isComponentMounted = false
|
||||
const likingMap = ref({});
|
||||
|
||||
const formatCount = (count) => {
|
||||
if (!count) return '0'
|
||||
@ -83,6 +91,7 @@ const loadUsers = async () => {
|
||||
creator_avatar: item.owner_avatar || '',
|
||||
creator_name: item.owner_nickname || item.name || '',
|
||||
like_count: item.likes || item.like_count || 0,
|
||||
is_liked: item.is_liked || false,
|
||||
}
|
||||
})
|
||||
} else {
|
||||
@ -115,6 +124,7 @@ const loadMore = async () => {
|
||||
creator_avatar: item.owner_avatar || '',
|
||||
creator_name: item.owner_nickname || item.name || '',
|
||||
like_count: item.likes || item.like_count || 0,
|
||||
is_liked: item.is_liked || false,
|
||||
}
|
||||
})
|
||||
|
||||
@ -129,24 +139,49 @@ const loadMore = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
watch(() => props.category, () => {
|
||||
loadUsers()
|
||||
})
|
||||
watch(
|
||||
() => props.category,
|
||||
() => {
|
||||
loadUsers();
|
||||
},
|
||||
);
|
||||
|
||||
watch(() => props.isActive, (active) => {
|
||||
if (active && creationList.value.length === 0) {
|
||||
loadUsers()
|
||||
}
|
||||
})
|
||||
watch(
|
||||
() => props.isActive,
|
||||
(active) => {
|
||||
if (active && creationList.value.length === 0) {
|
||||
loadUsers();
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
onMounted(() => {
|
||||
isComponentMounted = true
|
||||
loadUsers()
|
||||
})
|
||||
isComponentMounted = true;
|
||||
// 监听点赞事件,实时更新点赞数
|
||||
uni.$on("assetLiked", ({ asset_id, data }) => {
|
||||
// 触发动画
|
||||
likingMap.value = { ...likingMap.value, [asset_id]: true };
|
||||
setTimeout(() => {
|
||||
likingMap.value = { ...likingMap.value, [asset_id]: false };
|
||||
}, 600);
|
||||
const idx = creationList.value.findIndex((c) => c.id === asset_id);
|
||||
if (idx !== -1) {
|
||||
if (data && typeof data.new_like_count === "number") {
|
||||
creationList.value[idx].like_count = data.new_like_count;
|
||||
}
|
||||
if (data && typeof data.is_liked === "boolean") {
|
||||
creationList.value[idx].is_liked = data.is_liked;
|
||||
}
|
||||
creationList.value = [...creationList.value];
|
||||
}
|
||||
});
|
||||
loadUsers();
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
isComponentMounted = false
|
||||
})
|
||||
isComponentMounted = false;
|
||||
uni.$off("assetLiked");
|
||||
});
|
||||
|
||||
defineExpose({ loadMore })
|
||||
</script>
|
||||
@ -175,6 +210,49 @@ defineExpose({ loadMore })
|
||||
height: 400rpx;
|
||||
}
|
||||
|
||||
.wf-like-wave {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.wf-like-wave-outer {
|
||||
background: radial-gradient(
|
||||
circle,
|
||||
rgba(255, 107, 107, 0.8) 0%,
|
||||
transparent 70%
|
||||
);
|
||||
}
|
||||
|
||||
.wf-like-wave-inner {
|
||||
background: radial-gradient(
|
||||
circle,
|
||||
rgba(255, 184, 0, 0.6) 0%,
|
||||
transparent 70%
|
||||
);
|
||||
}
|
||||
|
||||
.wf-like-wave-active {
|
||||
animation: likeWave 0.6s ease-out forwards;
|
||||
}
|
||||
|
||||
@keyframes likeWave {
|
||||
0% {
|
||||
opacity: 0.9;
|
||||
transform: scale(0.8);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
transform: scale(1.5);
|
||||
}
|
||||
}
|
||||
|
||||
.creation-info {
|
||||
padding: 16rpx;
|
||||
}
|
||||
@ -213,22 +291,46 @@ defineExpose({ loadMore })
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.like-info {
|
||||
.like-badge {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 122rpx;
|
||||
height: 140rpx;
|
||||
opacity: 1;
|
||||
border-top-left-radius: 7px;
|
||||
border-bottom-right-radius: 21.5px;
|
||||
background: linear-gradient(177.83deg,
|
||||
rgba(83, 244, 211, 0.2) 2.52%,
|
||||
rgba(15, 9, 0, 0) 69.07%);
|
||||
backdrop-filter: blur(0px);
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.like-icon-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 8rpx;
|
||||
}
|
||||
|
||||
.like-icon {
|
||||
width: 24rpx;
|
||||
height: 24rpx;
|
||||
margin-right: 4rpx;
|
||||
.like-badge .like-icon {
|
||||
width: 38rpx;
|
||||
height: 38rpx;
|
||||
margin-right: 6rpx;
|
||||
}
|
||||
|
||||
.like-count {
|
||||
font-size: 22rpx;
|
||||
color: #fff;
|
||||
.like-badge .like-count {
|
||||
font-size: 32rpx;
|
||||
font-weight: 400;
|
||||
line-height: 100%;
|
||||
letter-spacing: 0%;
|
||||
color: #fffabd;
|
||||
text-shadow:
|
||||
-1px 1px 4px #ce0909d6,
|
||||
0px 0px 10px #fffabd;
|
||||
}
|
||||
|
||||
|
||||
.loading-more,
|
||||
.no-more {
|
||||
width: 100%;
|
||||
|
||||
@ -1,46 +1,60 @@
|
||||
<template>
|
||||
<view class="hot-category-block">
|
||||
<!-- 标题 -->
|
||||
<view class="block-title">{{ title }}</view>
|
||||
<view class="block-title">
|
||||
<text class="recommend-text"> {{ title }}</text>
|
||||
</view>
|
||||
|
||||
<!-- 骨架屏 -->
|
||||
<view v-if="loading" class="ranking-skeleton">
|
||||
<view v-for="i in 3" :key="i" class="skeleton-item">
|
||||
<view class="skeleton-rank"></view>
|
||||
<view class="skeleton-cover"></view>
|
||||
<view v-if="loading" class="grid-skeleton">
|
||||
<view v-for="i in 12" :key="i" class="skeleton-card">
|
||||
<view class="skeleton-image"></view>
|
||||
<view class="skeleton-info">
|
||||
<view class="skeleton-avatar"></view>
|
||||
<view class="skeleton-name"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 榜单列表 -->
|
||||
<view v-else class="ranking-list">
|
||||
<view
|
||||
v-for="(item, index) in items"
|
||||
:key="item.id || index"
|
||||
class="ranking-item"
|
||||
>
|
||||
<view class="rank-number" :class="'rank-' + (index + 1)">{{ index + 1 }}</view>
|
||||
<image class="rank-cover" :src="item.cover_url || item.cover_image || ''" mode="aspectFill"></image>
|
||||
<view class="rank-info">
|
||||
<text class="rank-name">{{ item.name || '' }}</text>
|
||||
<view class="rank-creator">
|
||||
<image class="creator-avatar" :src="item.owner_avatar || ''" mode="aspectFill"></image>
|
||||
<text class="creator-name">{{ item.owner_nickname || '' }}</text>
|
||||
<!-- 内容网格 -->
|
||||
<view v-else class="items-grid">
|
||||
<view v-for="(item, index) in items" :key="item.id || index" class="grid-card" @click="handleCardClick(item)">
|
||||
<!-- 点赞动效波纹 -->
|
||||
<view class="wf-like-wave wf-like-wave-outer" :class="{ 'wf-like-wave-active': likingMap[item.id] }" />
|
||||
<view class="wf-like-wave wf-like-wave-inner" :class="{ 'wf-like-wave-active': likingMap[item.id] }" />
|
||||
<!-- 底部信息模块:独立于图片 -->
|
||||
<view class="card-bottom">
|
||||
<image class="card-image" :src="item.cover_url || item.cover_image || ''" mode="aspectFill"></image>
|
||||
<view class="like-badge">
|
||||
<view class="like-icon-wrapper">
|
||||
<image class="like-icon"
|
||||
:src="item.is_liked ? '/static/icon/heart-icon.png' : '/static/icon/heart-icon-false.png'"
|
||||
mode="aspectFit">
|
||||
</image>
|
||||
<text class="like-count">{{ formatCount(item.like_count) }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 用户信息 -->
|
||||
<view class="card-info">
|
||||
<view class="user-info">
|
||||
<image class="user-avatar" :src="item.owner_avatar || item.creator_avatar || ''" mode="aspectFill">
|
||||
</image>
|
||||
<text class="user-name">{{ item.owner_nickname || item.creator_name || item.name || '' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="rank-likes">
|
||||
<image class="rank-like-icon" src="/static/icon/heart-icon.png" mode="aspectFit"></image>
|
||||
<text class="rank-like-count">{{ formatCount(item.likes || 0) }}</text>
|
||||
<!-- Top 排名标签 -->
|
||||
<view class="top-badge">
|
||||
<view class="badge-rank">TOP {{ index + 1 }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { ref, onMounted, onUnmounted } from 'vue'
|
||||
import { getHotRankingApi } from '@/utils/api.js'
|
||||
|
||||
const props = defineProps({
|
||||
@ -50,8 +64,11 @@ const props = defineProps({
|
||||
}
|
||||
})
|
||||
|
||||
const emit = defineEmits(['cardClick'])
|
||||
|
||||
const items = ref([])
|
||||
const loading = ref(false)
|
||||
const likingMap = ref({})
|
||||
|
||||
// 格式化数量
|
||||
const formatCount = (count) => {
|
||||
@ -61,13 +78,39 @@ const formatCount = (count) => {
|
||||
return count.toString()
|
||||
}
|
||||
|
||||
const handleCardClick = (item) => {
|
||||
emit('cardClick', item)
|
||||
}
|
||||
|
||||
// 监听全局点赞事件,更新状态
|
||||
const onAssetLiked = ({ asset_id, data }) => {
|
||||
const index = items.value.findIndex(item => (item.asset_id || item.id) === asset_id)
|
||||
if (index !== -1) {
|
||||
const updatedItems = [...items.value]
|
||||
updatedItems[index] = {
|
||||
...updatedItems[index],
|
||||
is_liked: data?.is_liked ?? true,
|
||||
like_count: data?.new_like_count ?? (updatedItems[index].like_count || 0) + 1
|
||||
}
|
||||
items.value = updatedItems
|
||||
// 触发动画
|
||||
likingMap.value = { ...likingMap.value, [asset_id]: true }
|
||||
setTimeout(() => {
|
||||
likingMap.value = { ...likingMap.value, [asset_id]: false }
|
||||
}, 600)
|
||||
}
|
||||
}
|
||||
|
||||
// 加载数据
|
||||
const loadData = async () => {
|
||||
loading.value = true
|
||||
try {
|
||||
const res = await getHotRankingApi('displaying', null, 1, 12)
|
||||
if (res.code === 200 && res.data?.items) {
|
||||
items.value = res.data.items
|
||||
items.value = res.data.items.map(item => ({
|
||||
...item,
|
||||
id: item.id || item.asset_id
|
||||
}))
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('[HotCategoryBlock] 加载数据失败', e?.message ?? e)
|
||||
@ -78,164 +121,269 @@ const loadData = async () => {
|
||||
|
||||
onMounted(() => {
|
||||
loadData()
|
||||
uni.$on('assetLiked', onAssetLiked)
|
||||
})
|
||||
|
||||
onUnmounted(() => {
|
||||
uni.$off('assetLiked', onAssetLiked)
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.hot-category-block {
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
backdrop-filter: blur(10rpx);
|
||||
border-radius: 24rpx;
|
||||
padding: 24rpx;
|
||||
margin-bottom: 24rpx;
|
||||
padding: 0 24rpx;
|
||||
padding-top: 52rpx;
|
||||
border-top-left-radius: 72rpx;
|
||||
border-top-right-radius: 24rpx;
|
||||
border-bottom-right-radius: 24rpx;
|
||||
border-bottom-left-radius: 24rpx;
|
||||
opacity: 0.8;
|
||||
background: linear-gradient(161.28deg, rgba(255, 90, 93, 0.2) 16.63%, rgba(76, 237, 255, 0.2) 48.19%, rgba(255, 122, 124, 0.2) 83.71%);
|
||||
backdrop-filter: blur(9.300000190734863px);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.block-title {
|
||||
font-size: 32rpx;
|
||||
font-weight: 600;
|
||||
position: absolute;
|
||||
top: -24rpx;
|
||||
left: 4rpx;
|
||||
width: 188rpx;
|
||||
height: 56rpx;
|
||||
border-top-left-radius: 44rpx;
|
||||
border-top-right-radius: 8rpx;
|
||||
border-bottom-right-radius: 44rpx;
|
||||
border-bottom-left-radius: 4rpx;
|
||||
background: linear-gradient(90deg, rgba(255, 0, 4, 0.73) -3.96%, rgba(254, 141, 103, 0.73) 57.95%, rgba(252, 228, 75, 0.73) 97%);
|
||||
box-shadow: 2px 2px 4px 0px #D9262640;
|
||||
backdrop-filter: blur(7.599999904632568px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.recommend-text {
|
||||
font-size: 24rpx;
|
||||
color: #fff;
|
||||
margin-bottom: 24rpx;
|
||||
text-shadow: 0px 2px 8px #00000074;
|
||||
font-weight: 600;
|
||||
line-height: 100%;
|
||||
letter-spacing: 0%;
|
||||
}
|
||||
|
||||
/* 骨架屏 */
|
||||
.ranking-skeleton {
|
||||
.grid-skeleton {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.skeleton-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.skeleton-card {
|
||||
width: calc(25% - 12rpx);
|
||||
margin-bottom: 16rpx;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-radius: 16rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.skeleton-rank {
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
background: #3a3a4a;
|
||||
border-radius: 8rpx;
|
||||
margin-right: 16rpx;
|
||||
}
|
||||
|
||||
.skeleton-cover {
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
.skeleton-image {
|
||||
width: 100%;
|
||||
height: 320rpx;
|
||||
background: linear-gradient(90deg, #3a3a4a 25%, #4a4a5a 50%, #3a3a4a 75%);
|
||||
background-size: 200% 100%;
|
||||
border-radius: 12rpx;
|
||||
margin-right: 16rpx;
|
||||
animation: shimmer 1.5s infinite;
|
||||
}
|
||||
|
||||
.skeleton-info {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 16rpx;
|
||||
}
|
||||
|
||||
.skeleton-avatar {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
border-radius: 50%;
|
||||
background: #3a3a4a;
|
||||
margin-right: 8rpx;
|
||||
}
|
||||
|
||||
.skeleton-name {
|
||||
width: 200rpx;
|
||||
height: 32rpx;
|
||||
width: 100rpx;
|
||||
height: 24rpx;
|
||||
background: #3a3a4a;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
|
||||
@keyframes shimmer {
|
||||
0% { background-position: 200% 0; }
|
||||
100% { background-position: -200% 0; }
|
||||
0% {
|
||||
background-position: 200% 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
background-position: -200% 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* 榜单列表 */
|
||||
.ranking-list {
|
||||
/* 内容网格 */
|
||||
.items-grid {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
|
||||
}
|
||||
|
||||
.ranking-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.grid-card {
|
||||
width: calc(25% - 12rpx);
|
||||
margin-bottom: 16rpx;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-radius: 12rpx;
|
||||
padding: 16rpx;
|
||||
border-radius: 16rpx;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.rank-number {
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
.card-image {
|
||||
width: 100%;
|
||||
height: 192rpx;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* 底部信息模块 - 独立模块,有背景色和圆角 */
|
||||
.card-bottom {
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
border-radius: 16rpx;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Top 排名标签 */
|
||||
.top-badge {
|
||||
width: 80rpx;
|
||||
height: 32rpx;
|
||||
border-radius: 16rpx;
|
||||
margin: 16rpx auto;
|
||||
background: linear-gradient(93.1deg, rgba(224, 180, 247, 0.71) -12.06%, rgba(178, 246, 204, 0.71) 52.09%, rgba(98, 178, 244, 0.71) 163.5%);
|
||||
backdrop-filter: blur(11.699999809265137px);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.badge-rank {
|
||||
width: 80rpx;
|
||||
height: 32rpx;
|
||||
color: #FFFABD33;
|
||||
font-size: 18rpx;
|
||||
font-weight: 600;
|
||||
border-radius: 16rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 24rpx;
|
||||
font-weight: 600;
|
||||
color: #fff;
|
||||
border-radius: 8rpx;
|
||||
margin-right: 16rpx;
|
||||
text-shadow: -1px 1px 4px #CE0909D6;
|
||||
;
|
||||
}
|
||||
|
||||
.rank-number.rank-1 {
|
||||
background: linear-gradient(135deg, #ff6b6b 0%, #ffa502 100%);
|
||||
}
|
||||
|
||||
.rank-number.rank-2 {
|
||||
background: linear-gradient(135deg, #a0a0a0 0%, #c0c0c0 100%);
|
||||
}
|
||||
|
||||
.rank-number.rank-3 {
|
||||
background: linear-gradient(135deg, #cd7f32 0%, #e6a86e 100%);
|
||||
}
|
||||
|
||||
.rank-cover {
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
border-radius: 12rpx;
|
||||
margin-right: 16rpx;
|
||||
}
|
||||
|
||||
.rank-info {
|
||||
flex: 1;
|
||||
/* 用户信息 */
|
||||
.card-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0 16rpx 16rpx;
|
||||
}
|
||||
|
||||
.rank-name {
|
||||
font-size: 28rpx;
|
||||
.user-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.user-avatar {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
border-radius: 50%;
|
||||
margin-right: 8rpx;
|
||||
}
|
||||
|
||||
.user-name {
|
||||
font-size: 22rpx;
|
||||
color: #fff;
|
||||
margin-bottom: 8rpx;
|
||||
max-width: 120rpx;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.rank-creator {
|
||||
.like-badge {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 80rpx;
|
||||
height: 64rpx;
|
||||
opacity: 1;
|
||||
border-top-left-radius: 7px;
|
||||
border-bottom-right-radius: 21.5px;
|
||||
background: linear-gradient(177.83deg, rgba(83, 244, 211, 0.2) 2.52%, rgba(15, 9, 0, 0) 69.07%);
|
||||
|
||||
backdrop-filter: blur(0px);
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.like-icon-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 8rpx;
|
||||
}
|
||||
|
||||
.creator-avatar {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
border-radius: 50%;
|
||||
margin-right: 8rpx;
|
||||
}
|
||||
|
||||
.creator-name {
|
||||
font-size: 24rpx;
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
}
|
||||
|
||||
.rank-likes {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.rank-like-icon {
|
||||
.like-badge .like-icon {
|
||||
width: 24rpx;
|
||||
height: 24rpx;
|
||||
margin-right: 4rpx;
|
||||
margin-right: 6rpx;
|
||||
}
|
||||
|
||||
.rank-like-count {
|
||||
font-size: 24rpx;
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
.like-badge .like-count {
|
||||
font-size: 20rpx;
|
||||
font-weight: 400;
|
||||
line-height: 100%;
|
||||
letter-spacing: 0%;
|
||||
color: #fffabd;
|
||||
text-shadow:
|
||||
-1px 1px 4px #ce0909d6,
|
||||
0px 0px 10px #fffabd;
|
||||
}
|
||||
|
||||
/* 点赞动效波纹 */
|
||||
.wf-like-wave {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.wf-like-wave-outer {
|
||||
background: radial-gradient(circle,
|
||||
rgba(255, 107, 107, 0.8) 0%,
|
||||
transparent 70%);
|
||||
}
|
||||
|
||||
.wf-like-wave-inner {
|
||||
background: radial-gradient(circle,
|
||||
rgba(255, 184, 0, 0.6) 0%,
|
||||
transparent 70%);
|
||||
}
|
||||
|
||||
.wf-like-wave-active {
|
||||
animation: likeWave 0.6s ease-out forwards;
|
||||
}
|
||||
|
||||
@keyframes likeWave {
|
||||
0% {
|
||||
opacity: 0.9;
|
||||
transform: scale(0.8);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
transform: scale(1.5);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
|
||||
<!-- 在线榜单区块 -->
|
||||
<view class="hot-category-wrapper">
|
||||
<HotCategoryBlock :title="'在线榜单'" />
|
||||
<HotCategoryBlock :title="'日榜'" @cardClick="handleCardClick" />
|
||||
</view>
|
||||
|
||||
<!-- 区域二:主Tab标签区(星卡/吧唧/海报) -->
|
||||
@ -56,8 +56,7 @@
|
||||
|
||||
<!-- 区域四:创作网格列表 -->
|
||||
<CreationGrid :screenWidth="screenWidth" :screenHeight="screenHeight" :bannerBottom="bannerBottomPx"
|
||||
:useMockData="USE_MOCK_DATA" :category="activeContentTab" :isActive="isActive" @cardClick="handleCardClick"
|
||||
ref="creationGridRef" />
|
||||
:category="activeContentTab" :isActive="isActive" @cardClick="handleCardClick" ref="creationGridRef" />
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user