wxml如下
<view class=“content”>
<scroll-view scroll-y=“true” style=“height:82vh”>
<block wx:for="{{classifyList[currentTab]}}" wx:key = “index”>
<view class=“food”>
<image src="{{item.url}}" />
<view class=“mes”>
<text class=“foodName”>{{item.name}}text>
<text class=“foodIntroduce”>{{item.introduce}}text>
<view class=“special”>特价view>
<p>¥{{item.price}}p>
<view class=“btn” bindtap=“ordinInCart” data-id="{{item.id}}" data-stock="{{item.stock}}" >
<icon type="{{item.selected ? ‘success’ : ‘circle’}}" color="#23a3ff" size=“30”>icon>
view>
view>
view>
block>
scroll-view>
view>
js如下
foodList: [ // 分类
{
id: 0,
name: ‘蓝莓草莓’
},
{
id: 1,
name: ‘柑橘橙柚’
},
{
id: 2,
name: ‘热带水果’
},
{
id: 3,
name: ‘苹果/梨’
},
{
id: 4,
name: ‘瓜类’
}
],
//所有商品信息
classifyList : [
{ id: 0, name: ‘草莓’, introduce: ‘精选’},
{ text: ‘菜单:’ },
{ text: ‘菜单:’ },
{ text: ‘菜单:’ },
{ text: ‘菜单:’ }
], 问题
请问 classifyList 怎么设置其值 才能实现 显示出来呢