分类侧栏

This commit is contained in:
shikong 2024-10-17 20:27:39 +08:00
parent 376480c729
commit c644f40a1c
Signed by: Shikong
GPG Key ID: BD85FF18B373C341

View File

@ -9,11 +9,11 @@ const ctx = reactive({
value: "takeaway" value: "takeaway"
}, },
{ {
name: "美团优选", name: "优选",
value: "optimization" value: "optimization"
}, },
{ {
name: "美团餐饮", name: "餐饮",
value: "catering" value: "catering"
}, },
{ {
@ -27,6 +27,18 @@ const ctx = reactive({
{ {
name: "交通出行", name: "交通出行",
value: "traffic" value: "traffic"
},
{
name: "丽人医美",
value: "medicalAesthetics"
},
{
name: "金融服务",
value: "financial"
},
{
name: "福利中心",
value: "welfare"
} }
] ]
}) })
@ -49,8 +61,10 @@ function switchCategory(index) {
</scroll-view> </scroll-view>
</view> </view>
<view class="flex-1 flex-grow-0 p-2"> <view class="flex-1 p-2 bg-white">
123456 <view>
{{ctx.categories[ctx.current].name}}
</view>
</view> </view>
</view> </view>
</template> </template>