menu:[ { name: '推荐' , food:{ 0 :{ foodname: '鱼香肉丝' , foodimg: 'https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=656967488,4251406844&fm=58&bpow=600&bpoh=400' , foodprice: '20' , foodid: 1 }, 2 : { foodname: '宫保鸡丁' , foodimg: 'https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=656967488,4251406844&fm=58&bpow=600&bpoh=400' , foodprice: '20' , foodid: 2 } } }, { name: '粤菜' , food: { 0 : { foodname: '叉烧肉' , foodimg: 'https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=656967488,4251406844&fm=58&bpow=600&bpoh=400' , foodprice: '50' , foodid: 3 }, 2 : { foodname: '冬瓜丸子汤' , foodimg: 'https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=656967488,4251406844&fm=58&bpow=600&bpoh=400' , foodprice: '30' , foodid: 4 } } }, ], < view
id
"order0"
class
"aslide-item"
wx:for
"{{menu}}"> < text
class
"aslide-item-title"> {{item.name}} text > < view
class
"aslide-item-info"
wx:for-items
"{{item.food}}"
wx:for-item
"page"> < view
class
"aslide-item-img"
bindtap
"previewImages"> < image
src
"{{page.food_img}}"> image > view > < view
class
"cart-info-container"> < text
class
"food-name"> {{page.food_name}} text > < text
class
"red"> {{page.food_price}} text > < view
class
"counter"> < button
catchtap
"subShopNum"> - button > < text
class
"{{buyNumClass}}"> {{buyNum}} text > < button
catchtap
"addShopNum"> + button > view > view > view > view >