fix: rank
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user