fix: rank

This commit is contained in:
zzc
2026-02-25 21:37:18 +08:00
parent 756a49bbf5
commit 88cd1c2e8f

View File

@@ -192,7 +192,7 @@
index + 1
}}</view>
<image
:src="item?.resourceInfo?.url"
:src="getThumbUrl(item?.resourceInfo?.url)"
mode="aspectFill"
class="rank-thumb"
/>
@@ -201,7 +201,7 @@
<text class="rank-title">{{ item.title }}</text>
</view>
<view class="rank-meta">
<view class="tag-hot" v-if="item.isHot">HOT</view>
<view class="tag-hot" v-if="index <= 3">HOT</view>
<text class="usage-count">{{ item.usageCount }} 人在用</text>
</view>
</view>
@@ -303,7 +303,8 @@ const greetingText = computed(() => {
});
const getThumbUrl = (url) => {
return `${url}?imageView2/1/w/340/h/600/q/80`;
if (!url) return "";
return `${url}?imageView2/1/w/200/h/200/q/80`;
};
const handleLogin = () => {