完成适配移动端

This commit is contained in:
2025-03-01 10:52:11 +08:00
parent 1f79c93859
commit 8d19a58e9d
68 changed files with 2117 additions and 847 deletions

View File

@@ -58,8 +58,8 @@
</div>
</div>
</div>
<div class="item-image pt-3">
<el-image v-if="item.files" :src="`${JSON.parse(item.files)[0]}`" class="w-full h-1/2 max-h-[220px]"/>
<div class="item-image pt-3 overflow-hidden">
<el-image v-if="item.files" :src="`${JSON.parse(item.files)[0]}`" class="w-full h-1/2 max-h-[220px] transition-transform duration-300 ease-in-out hover:scale-110"/>
<el-image v-else class="w-full h-[220px]"/>
</div>
</div>
@@ -119,6 +119,9 @@ const reload = async (where: any) => {
pageCmsWebsiteAll({
...where,
market: true,
official: false,
order: 'desc',
sort: 'buys',
limit: where.limit || 12
}).then(response => {
if (response?.list) {
@@ -151,6 +154,7 @@ const search = (data: CmsWebsiteParam) => {
limit: 12
}
})
// 回到页面顶部
window.scrollTo(0, 0)
}