This commit is contained in:
shikong 2024-10-18 01:03:26 +08:00
parent d01134527e
commit 7de906b8b3
Signed by: Shikong
GPG Key ID: BD85FF18B373C341
2 changed files with 11 additions and 18 deletions

View File

@ -62,8 +62,6 @@ function switchCategory(index) {
</view> </view>
<view class="w-3/4 p-2 bg-white flex flex-col h-full"> <view class="w-3/4 p-2 bg-white flex flex-col h-full">
<view class="flex-grow-0 flex flex-col h-full"> <view class="flex-grow-0 flex flex-col h-full">
<view class="my-1"> <view class="my-1">
<text> <text>
@ -71,16 +69,9 @@ function switchCategory(index) {
</text> </text>
</view> </view>
<scroll-view scroll-y class="flex-grow-0 min-h-0"> <scroll-view scroll-y class="flex-grow-0 min-h-0">
<Item v-for="i in 10" :key="i" img="https://www.httpbin.org/image/png" title="测试商品测试商品测试商品测试商品测试商品测试商品测试商品" price="9999.99"/> <Item v-for="i in 10" :key="i" img="https://www.httpbin.org/image/png" title="测试商品测试商品测试商品测试商品测试商品测试商品测试商品" price="9999.99"/>
<Item v-for="i in 20" :key="i" img="https://www.httpbin.org/image/png" title="测试商品" price="9999.99" oldPrice="8888.88"/> <Item v-for="i in 20" :key="i" img="https://www.httpbin.org/image/png" title="测试商品" price="9999.99" oldPrice="8888.88"/>
</scroll-view> </scroll-view>
</view> </view>

View File

@ -1,15 +1,17 @@
<template> <template>
<NavBar/> <view class="flex flex-col h-full">
<NavBar/>
<view class="content"> <view class="flex-1 flex-grow-1 min-h-0 content overflow-auto">
<Banner/> <Banner/>
<ZhiHuHotList/> <ZhiHuHotList/>
<view class="text-center"> <view class="text-center">
<text class="title">{{ title }}</text> <text class="title">{{ title }}</text>
</view> </view>
<view class="text-center"> <view class="text-center">
<text class="title">{{ now }}</text> <text class="title">{{ now }}</text>
</view>
</view> </view>
</view> </view>
</template> </template>