商品列表
This commit is contained in:
parent
e704fb35fb
commit
d01134527e
@ -61,17 +61,26 @@ function switchCategory(index) {
|
|||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="w-3/4 p-2 bg-white flex flex-col">
|
<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="my-1">
|
||||||
<text>
|
<text>
|
||||||
{{ctx.categories[ctx.current].name}}
|
{{ctx.categories[ctx.current].name}}
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
<view class="flex-1">
|
|
||||||
<scroll-view>
|
|
||||||
<view>
|
|
||||||
<Item img="https://www.httpbin.org/image/png" title="测试商品测试商品测试商品测试商品测试商品测试商品测试商品" price="9999.99"/>
|
|
||||||
<Item img="https://www.httpbin.org/image/png" title="测试商品" price="9999.99" oldPrice="8888.88"/>
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
<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 20" :key="i" img="https://www.httpbin.org/image/png" title="测试商品" price="9999.99" oldPrice="8888.88"/>
|
||||||
|
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user