fix: rank
This commit is contained in:
@@ -192,7 +192,7 @@
|
|||||||
index + 1
|
index + 1
|
||||||
}}</view>
|
}}</view>
|
||||||
<image
|
<image
|
||||||
:src="item?.resourceInfo?.url"
|
:src="getThumbUrl(item?.resourceInfo?.url)"
|
||||||
mode="aspectFill"
|
mode="aspectFill"
|
||||||
class="rank-thumb"
|
class="rank-thumb"
|
||||||
/>
|
/>
|
||||||
@@ -201,7 +201,7 @@
|
|||||||
<text class="rank-title">{{ item.title }}</text>
|
<text class="rank-title">{{ item.title }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="rank-meta">
|
<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>
|
<text class="usage-count">{{ item.usageCount }} 人在用</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -303,7 +303,8 @@ const greetingText = computed(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const getThumbUrl = (url) => {
|
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 = () => {
|
const handleLogin = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user