微信小程序实现美团goods商品列表页开发

时间:2024-05-22 09:24:05

1.使用的组件

scroll-view和wx.createSelectorQuery()方法

2.代码图

js代码

Page({

  /**
   * 页面的初始数据
   */
  data: {
    currentIndex:0,//左边菜单的当前显示值
    toView: 'menu-0', //滚动到某个菜单元素
    foodListHeights:[],//菜单对应右边商品的元素高度列表
    scrollTop:0,//右边商品滚动条滚动到哪
    goods: [
      {
        "name": "热销榜",
        "type": -1,
        "foods": [
          {
            "name": "皮蛋瘦肉粥",
            "price": 10,
            "oldPrice": "",
            "description": "咸粥",
            "sellCount": 229,
            "rating": 100,
            "info": "一碗皮蛋瘦肉粥,总是我到粥店时的不二之选。香浓软滑,饱腹暖心,皮蛋的Q弹与瘦肉的滑嫩伴着粥香溢于满口,让人喝这样的一碗粥也觉得心满意足",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "很喜欢的粥",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 1,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/c/cd/c12745ed8a5171e13b427dbc39401jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/c/cd/c12745ed8a5171e13b427dbc39401jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "扁豆焖面",
            "price": 14,
            "oldPrice": "",
            "description": "",
            "sellCount": 188,
            "rating": 96,
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 1,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "info": "",
            "icon": "http://fuss10.elemecdn.com/c/6b/29e3d29b0db63d36f7c500bca31d8jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/c/6b/29e3d29b0db63d36f7c500bca31d8jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "葱花饼",
            "price": 10,
            "oldPrice": "",
            "description": "",
            "sellCount": 124,
            "rating": 85,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 1,
                "text": "没啥味道",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 1,
                "text": "很一般啊",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/f/28/a51e7b18751bcdf871648a23fd3b4jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/f/28/a51e7b18751bcdf871648a23fd3b4jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "牛肉馅饼",
            "price": 14,
            "oldPrice": "",
            "description": "",
            "sellCount": 114,
            "rating": 91,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 1,
                "text": "难吃不推荐",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/d/b9/bcab0e8ad97758e65ae5a62b2664ejpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/d/b9/bcab0e8ad97758e65ae5a62b2664ejpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "招牌猪肉白菜锅贴/10个",
            "price": 17,
            "oldPrice": "",
            "description": "",
            "sellCount": 101,
            "rating": 78,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 1,
                "text": "不脆,不好吃",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/7/72/9a580c1462ca1e4d3c07e112bc035jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/7/72/9a580c1462ca1e4d3c07e112bc035jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "南瓜粥",
            "price": 9,
            "oldPrice": "",
            "description": "甜粥",
            "sellCount": 91,
            "rating": 100,
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/8/a6/453f65f16b1391942af11511b7a90jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/8/a6/453f65f16b1391942af11511b7a90jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "红豆薏米美肤粥",
            "price": 12,
            "oldPrice": "",
            "description": "甜粥",
            "sellCount": 86,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/d/22/260bd78ee6ac6051136c5447fe307jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/d/22/260bd78ee6ac6051136c5447fe307jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "八宝酱菜",
            "price": 4,
            "oldPrice": "",
            "description": "",
            "sellCount": 84,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/9/b5/469d8854f9a3a03797933fd01398bjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/9/b5/469d8854f9a3a03797933fd01398bjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "红枣山药糙米粥",
            "price": 10,
            "oldPrice": "",
            "description": "",
            "sellCount": 81,
            "rating": 91,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/9/b5/469d8854f9a3a03797933fd01398bjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/9/b5/469d8854f9a3a03797933fd01398bjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "糊塌子",
            "price": 10,
            "oldPrice": "",
            "description": "",
            "sellCount": 80,
            "rating": 93,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/0/05/097a2a59fd2a2292d08067e16380cjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/0/05/097a2a59fd2a2292d08067e16380cjpeg.jpeg?imageView2/1/w/750/h/750"
          }
        ]
      },
      {
        "name": "单人精彩套餐",
        "type": 2,
        "foods": [
          {
            "name": "红枣山药粥套餐",
            "price": 29,
            "oldPrice": 36,
            "description": "红枣山药糙米粥,素材包,爽口莴笋丝,四川泡菜或八宝酱菜,配菜可备注",
            "sellCount": 17,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/6/72/cb844f0bb60c502c6d5c05e0bddf5jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/6/72/cb844f0bb60c502c6d5c05e0bddf5jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "红枣山药粥套餐",
            "price": 29,
            "oldPrice": 36,
            "description": "红枣山药糙米粥,素材包,爽口莴笋丝,四川泡菜或八宝酱菜,配菜可备注",
            "sellCount": 17,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/6/72/cb844f0bb60c502c6d5c05e0bddf5jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/6/72/cb844f0bb60c502c6d5c05e0bddf5jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "红枣山药粥套餐",
            "price": 29,
            "oldPrice": 36,
            "description": "红枣山药糙米粥,素材包,爽口莴笋丝,四川泡菜或八宝酱菜,配菜可备注",
            "sellCount": 17,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/6/72/cb844f0bb60c502c6d5c05e0bddf5jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/6/72/cb844f0bb60c502c6d5c05e0bddf5jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "红枣山药粥套餐",
            "price": 29,
            "oldPrice": 36,
            "description": "红枣山药糙米粥,素材包,爽口莴笋丝,四川泡菜或八宝酱菜,配菜可备注",
            "sellCount": 17,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/6/72/cb844f0bb60c502c6d5c05e0bddf5jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/6/72/cb844f0bb60c502c6d5c05e0bddf5jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "红枣山药粥套餐",
            "price": 29,
            "oldPrice": 36,
            "description": "红枣山药糙米粥,素材包,爽口莴笋丝,四川泡菜或八宝酱菜,配菜可备注",
            "sellCount": 17,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/6/72/cb844f0bb60c502c6d5c05e0bddf5jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/6/72/cb844f0bb60c502c6d5c05e0bddf5jpeg.jpeg?imageView2/1/w/750/h/750"
          },
        ]
      },
      {
        "name": "冰爽饮品限时特惠",
        "type": 1,
        "foods": [
          {
            "name": "VC无限橙果汁",
            "price": 8,
            "oldPrice": 10,
            "description": "",
            "sellCount": 15,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "还可以",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "VC无限橙果汁",
            "price": 8,
            "oldPrice": 10,
            "description": "",
            "sellCount": 15,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "还可以",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "VC无限橙果汁",
            "price": 8,
            "oldPrice": 10,
            "description": "",
            "sellCount": 15,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "还可以",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "VC无限橙果汁",
            "price": 8,
            "oldPrice": 10,
            "description": "",
            "sellCount": 15,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "还可以",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "VC无限橙果汁",
            "price": 8,
            "oldPrice": 10,
            "description": "",
            "sellCount": 15,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "还可以",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "VC无限橙果汁",
            "price": 8,
            "oldPrice": 10,
            "description": "",
            "sellCount": 15,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "还可以",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "VC无限橙果汁",
            "price": 8,
            "oldPrice": 10,
            "description": "",
            "sellCount": 15,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "还可以",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "VC无限橙果汁",
            "price": 8,
            "oldPrice": 10,
            "description": "",
            "sellCount": 15,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "还可以",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "VC无限橙果汁",
            "price": 8,
            "oldPrice": 10,
            "description": "",
            "sellCount": 15,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "还可以",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/750/h/750"
          },
        ]
      },
      {
        "name": "精选热菜",
        "type": -1,
        "foods": [
          {
            "name": "娃娃菜炖豆腐",
            "price": 17,
            "oldPrice": "",
            "description": "",
            "sellCount": 43,
            "rating": 92,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "菜量还可以,味道还可以",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/d/2d/b1eb45b305635d9dd04ddf157165fjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/d/2d/b1eb45b305635d9dd04ddf157165fjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "手撕包菜",
            "price": 16,
            "oldPrice": "",
            "description": "",
            "sellCount": 29,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/9/c6/f3bc84468820121112e79583c24efjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/9/c6/f3bc84468820121112e79583c24efjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "香酥黄金鱼/3条",
            "price": 11,
            "oldPrice": "",
            "description": "",
            "sellCount": 15,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/4/e7/8277a6a2ea0a2e97710290499fc41jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/4/e7/8277a6a2ea0a2e97710290499fc41jpeg.jpeg?imageView2/1/w/750/h/750"
          }
        ]
      },
      {
        "name": "爽口凉菜",
        "type": -1,
        "foods": [
          {
            "name": "八宝酱菜",
            "price": 4,
            "oldPrice": "",
            "description": "",
            "sellCount": 84,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/9/b5/469d8854f9a3a03797933fd01398bjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/9/b5/469d8854f9a3a03797933fd01398bjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "拍黄瓜",
            "price": 9,
            "oldPrice": "",
            "description": "",
            "sellCount": 28,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/6/54/f654985b4e185f06eb07f8fa2b2e8jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/6/54/f654985b4e185f06eb07f8fa2b2e8jpeg.jpeg?imageView2/1/w/750/h/750"
          }
        ]
      },
      {
        "name": "精选套餐",
        "type": -1,
        "foods": [
          {
            "name": "红豆薏米粥套餐",
            "price": 37,
            "oldPrice": "",
            "description": "红豆薏米粥,三鲜干蒸烧卖,拍黄瓜",
            "sellCount": 3,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/f/49/27f26ed00c025b2200a9ccbb7e67ejpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/f/49/27f26ed00c025b2200a9ccbb7e67ejpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "皮蛋瘦肉粥套餐",
            "price": 31,
            "oldPrice": "",
            "description": "",
            "sellCount": 12,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/8/96/f444a8087f0e940ef264617f9d98ajpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/8/96/f444a8087f0e940ef264617f9d98ajpeg.jpeg?imageView2/1/w/750/h/750"
          }
        ]
      },
      {
        "name": "果拼果汁",
        "type": -1,
        "foods": [
          {
            "name": "蜜瓜圣女萝莉杯",
            "price": 6,
            "oldPrice": "",
            "description": "",
            "sellCount": 1,
            "rating": "",
            "info": "",
            "ratings": [],
            "icon": "http://fuss10.elemecdn.com/b/5f/b3b04c259d5ec9fa52e1856ee50dajpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/b/5f/b3b04c259d5ec9fa52e1856ee50dajpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "加多宝",
            "price": 6,
            "oldPrice": "",
            "description": "",
            "sellCount": 7,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/b/9f/5e6c99c593cf65229225c5661bcdejpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/b/9f/5e6c99c593cf65229225c5661bcdejpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "VC无限橙果汁",
            "price": 8,
            "oldPrice": 10,
            "description": "",
            "sellCount": 15,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "还可以",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/750/h/750"
          }
        ]
      },
      {
        "name": "小吃主食",
        "type": -1,
        "foods": [
          {
            "name": "扁豆焖面",
            "price": 14,
            "oldPrice": "",
            "description": "",
            "sellCount": 188,
            "rating": 96,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 1,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/c/6b/29e3d29b0db63d36f7c500bca31d8jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/c/6b/29e3d29b0db63d36f7c500bca31d8jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "葱花饼",
            "price": 10,
            "oldPrice": "",
            "description": "",
            "sellCount": 124,
            "rating": 85,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 1,
                "text": "没啥味道",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 1,
                "text": "很一般啊",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/f/28/a51e7b18751bcdf871648a23fd3b4jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/f/28/a51e7b18751bcdf871648a23fd3b4jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "牛肉馅饼",
            "price": 14,
            "oldPrice": "",
            "description": "",
            "sellCount": 114,
            "rating": 91,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 1,
                "text": "难吃不推荐",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/d/b9/bcab0e8ad97758e65ae5a62b2664ejpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/d/b9/bcab0e8ad97758e65ae5a62b2664ejpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "招牌猪肉白菜锅贴/10个",
            "price": 17,
            "oldPrice": "",
            "description": "",
            "sellCount": 101,
            "rating": 78,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 1,
                "text": "不脆,不好吃",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/7/72/9a580c1462ca1e4d3c07e112bc035jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/7/72/9a580c1462ca1e4d3c07e112bc035jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "糊塌子",
            "price": 10,
            "oldPrice": "",
            "description": "",
            "sellCount": 80,
            "rating": 93,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/0/05/097a2a59fd2a2292d08067e16380cjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/0/05/097a2a59fd2a2292d08067e16380cjpeg.jpeg?imageView2/1/w/750/h/750"
          }
        ]
      },
      {
        "name": "特色粥品",
        "type": -1,
        "foods": [
          {
            "name": "皮蛋瘦肉粥",
            "price": 10,
            "oldPrice": "",
            "description": "咸粥",
            "sellCount": 229,
            "rating": 100,
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "很喜欢的粥",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 1,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/c/cd/c12745ed8a5171e13b427dbc39401jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/c/cd/c12745ed8a5171e13b427dbc39401jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "南瓜粥",
            "price": 9,
            "oldPrice": "",
            "description": "甜粥",
            "sellCount": 91,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/8/a6/453f65f16b1391942af11511b7a90jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/8/a6/453f65f16b1391942af11511b7a90jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "红豆薏米美肤粥",
            "price": 12,
            "oldPrice": "",
            "description": "甜粥",
            "sellCount": 86,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/d/22/260bd78ee6ac6051136c5447fe307jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/d/22/260bd78ee6ac6051136c5447fe307jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "红枣山药糙米粥",
            "price": 10,
            "oldPrice": "",
            "description": "",
            "sellCount": 81,
            "rating": 91,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/9/b5/469d8854f9a3a03797933fd01398bjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/9/b5/469d8854f9a3a03797933fd01398bjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "鲜蔬菌菇粥",
            "price": 11,
            "oldPrice": "",
            "description": "咸粥",
            "sellCount": 56,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": ""
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/e/a3/5317c68dd618929b6ac05804e429ajpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/e/a3/5317c68dd618929b6ac05804e429ajpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "田园蔬菜粥",
            "price": 10,
            "oldPrice": "",
            "description": "咸粥",
            "sellCount": 33,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/a/94/7371083792c19df00e546b29e344cjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/a/94/7371083792c19df00e546b29e344cjpeg.jpeg?imageView2/1/w/750/h/750"
          }
        ]
      },
      {
        "name": "热销榜",
        "type": -1,
        "foods": [
          {
            "name": "皮蛋瘦肉粥",
            "price": 10,
            "oldPrice": "",
            "description": "咸粥",
            "sellCount": 229,
            "rating": 100,
            "info": "一碗皮蛋瘦肉粥,总是我到粥店时的不二之选。香浓软滑,饱腹暖心,皮蛋的Q弹与瘦肉的滑嫩伴着粥香溢于满口,让人喝这样的一碗粥也觉得心满意足",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "很喜欢的粥",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 1,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/c/cd/c12745ed8a5171e13b427dbc39401jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/c/cd/c12745ed8a5171e13b427dbc39401jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "扁豆焖面",
            "price": 14,
            "oldPrice": "",
            "description": "",
            "sellCount": 188,
            "rating": 96,
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 1,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "info": "",
            "icon": "http://fuss10.elemecdn.com/c/6b/29e3d29b0db63d36f7c500bca31d8jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/c/6b/29e3d29b0db63d36f7c500bca31d8jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "葱花饼",
            "price": 10,
            "oldPrice": "",
            "description": "",
            "sellCount": 124,
            "rating": 85,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 1,
                "text": "没啥味道",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 1,
                "text": "很一般啊",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/f/28/a51e7b18751bcdf871648a23fd3b4jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/f/28/a51e7b18751bcdf871648a23fd3b4jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "牛肉馅饼",
            "price": 14,
            "oldPrice": "",
            "description": "",
            "sellCount": 114,
            "rating": 91,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 1,
                "text": "难吃不推荐",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/d/b9/bcab0e8ad97758e65ae5a62b2664ejpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/d/b9/bcab0e8ad97758e65ae5a62b2664ejpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "招牌猪肉白菜锅贴/10个",
            "price": 17,
            "oldPrice": "",
            "description": "",
            "sellCount": 101,
            "rating": 78,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 1,
                "text": "不脆,不好吃",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/7/72/9a580c1462ca1e4d3c07e112bc035jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/7/72/9a580c1462ca1e4d3c07e112bc035jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "南瓜粥",
            "price": 9,
            "oldPrice": "",
            "description": "甜粥",
            "sellCount": 91,
            "rating": 100,
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/8/a6/453f65f16b1391942af11511b7a90jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/8/a6/453f65f16b1391942af11511b7a90jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "红豆薏米美肤粥",
            "price": 12,
            "oldPrice": "",
            "description": "甜粥",
            "sellCount": 86,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/d/22/260bd78ee6ac6051136c5447fe307jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/d/22/260bd78ee6ac6051136c5447fe307jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "八宝酱菜",
            "price": 4,
            "oldPrice": "",
            "description": "",
            "sellCount": 84,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/9/b5/469d8854f9a3a03797933fd01398bjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/9/b5/469d8854f9a3a03797933fd01398bjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "红枣山药糙米粥",
            "price": 10,
            "oldPrice": "",
            "description": "",
            "sellCount": 81,
            "rating": 91,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/9/b5/469d8854f9a3a03797933fd01398bjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/9/b5/469d8854f9a3a03797933fd01398bjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "糊塌子",
            "price": 10,
            "oldPrice": "",
            "description": "",
            "sellCount": 80,
            "rating": 93,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/0/05/097a2a59fd2a2292d08067e16380cjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/0/05/097a2a59fd2a2292d08067e16380cjpeg.jpeg?imageView2/1/w/750/h/750"
          }
        ]
      },
      {
        "name": "单人精彩套餐",
        "type": 2,
        "foods": [
          {
            "name": "红枣山药粥套餐",
            "price": 29,
            "oldPrice": 36,
            "description": "红枣山药糙米粥,素材包,爽口莴笋丝,四川泡菜或八宝酱菜,配菜可备注",
            "sellCount": 17,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/6/72/cb844f0bb60c502c6d5c05e0bddf5jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/6/72/cb844f0bb60c502c6d5c05e0bddf5jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "红枣山药粥套餐",
            "price": 29,
            "oldPrice": 36,
            "description": "红枣山药糙米粥,素材包,爽口莴笋丝,四川泡菜或八宝酱菜,配菜可备注",
            "sellCount": 17,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/6/72/cb844f0bb60c502c6d5c05e0bddf5jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/6/72/cb844f0bb60c502c6d5c05e0bddf5jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "红枣山药粥套餐",
            "price": 29,
            "oldPrice": 36,
            "description": "红枣山药糙米粥,素材包,爽口莴笋丝,四川泡菜或八宝酱菜,配菜可备注",
            "sellCount": 17,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/6/72/cb844f0bb60c502c6d5c05e0bddf5jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/6/72/cb844f0bb60c502c6d5c05e0bddf5jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "红枣山药粥套餐",
            "price": 29,
            "oldPrice": 36,
            "description": "红枣山药糙米粥,素材包,爽口莴笋丝,四川泡菜或八宝酱菜,配菜可备注",
            "sellCount": 17,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/6/72/cb844f0bb60c502c6d5c05e0bddf5jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/6/72/cb844f0bb60c502c6d5c05e0bddf5jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "红枣山药粥套餐",
            "price": 29,
            "oldPrice": 36,
            "description": "红枣山药糙米粥,素材包,爽口莴笋丝,四川泡菜或八宝酱菜,配菜可备注",
            "sellCount": 17,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/6/72/cb844f0bb60c502c6d5c05e0bddf5jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/6/72/cb844f0bb60c502c6d5c05e0bddf5jpeg.jpeg?imageView2/1/w/750/h/750"
          },
        ]
      },
      {
        "name": "冰爽饮品限时特惠",
        "type": 1,
        "foods": [
          {
            "name": "VC无限橙果汁",
            "price": 8,
            "oldPrice": 10,
            "description": "",
            "sellCount": 15,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "还可以",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "VC无限橙果汁",
            "price": 8,
            "oldPrice": 10,
            "description": "",
            "sellCount": 15,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "还可以",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "VC无限橙果汁",
            "price": 8,
            "oldPrice": 10,
            "description": "",
            "sellCount": 15,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "还可以",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "VC无限橙果汁",
            "price": 8,
            "oldPrice": 10,
            "description": "",
            "sellCount": 15,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "还可以",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "VC无限橙果汁",
            "price": 8,
            "oldPrice": 10,
            "description": "",
            "sellCount": 15,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "还可以",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "VC无限橙果汁",
            "price": 8,
            "oldPrice": 10,
            "description": "",
            "sellCount": 15,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "还可以",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "VC无限橙果汁",
            "price": 8,
            "oldPrice": 10,
            "description": "",
            "sellCount": 15,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "还可以",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "VC无限橙果汁",
            "price": 8,
            "oldPrice": 10,
            "description": "",
            "sellCount": 15,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "还可以",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "VC无限橙果汁",
            "price": 8,
            "oldPrice": 10,
            "description": "",
            "sellCount": 15,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "还可以",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/750/h/750"
          },
        ]
      },
      {
        "name": "精选热菜",
        "type": -1,
        "foods": [
          {
            "name": "娃娃菜炖豆腐",
            "price": 17,
            "oldPrice": "",
            "description": "",
            "sellCount": 43,
            "rating": 92,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "菜量还可以,味道还可以",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/d/2d/b1eb45b305635d9dd04ddf157165fjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/d/2d/b1eb45b305635d9dd04ddf157165fjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "手撕包菜",
            "price": 16,
            "oldPrice": "",
            "description": "",
            "sellCount": 29,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/9/c6/f3bc84468820121112e79583c24efjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/9/c6/f3bc84468820121112e79583c24efjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "香酥黄金鱼/3条",
            "price": 11,
            "oldPrice": "",
            "description": "",
            "sellCount": 15,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/4/e7/8277a6a2ea0a2e97710290499fc41jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/4/e7/8277a6a2ea0a2e97710290499fc41jpeg.jpeg?imageView2/1/w/750/h/750"
          }
        ]
      },
      {
        "name": "爽口凉菜",
        "type": -1,
        "foods": [
          {
            "name": "八宝酱菜",
            "price": 4,
            "oldPrice": "",
            "description": "",
            "sellCount": 84,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/9/b5/469d8854f9a3a03797933fd01398bjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/9/b5/469d8854f9a3a03797933fd01398bjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "拍黄瓜",
            "price": 9,
            "oldPrice": "",
            "description": "",
            "sellCount": 28,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/6/54/f654985b4e185f06eb07f8fa2b2e8jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/6/54/f654985b4e185f06eb07f8fa2b2e8jpeg.jpeg?imageView2/1/w/750/h/750"
          }
        ]
      },
      {
        "name": "精选套餐",
        "type": -1,
        "foods": [
          {
            "name": "红豆薏米粥套餐",
            "price": 37,
            "oldPrice": "",
            "description": "红豆薏米粥,三鲜干蒸烧卖,拍黄瓜",
            "sellCount": 3,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/f/49/27f26ed00c025b2200a9ccbb7e67ejpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/f/49/27f26ed00c025b2200a9ccbb7e67ejpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "皮蛋瘦肉粥套餐",
            "price": 31,
            "oldPrice": "",
            "description": "",
            "sellCount": 12,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/8/96/f444a8087f0e940ef264617f9d98ajpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/8/96/f444a8087f0e940ef264617f9d98ajpeg.jpeg?imageView2/1/w/750/h/750"
          }
        ]
      },
      {
        "name": "果拼果汁",
        "type": -1,
        "foods": [
          {
            "name": "蜜瓜圣女萝莉杯",
            "price": 6,
            "oldPrice": "",
            "description": "",
            "sellCount": 1,
            "rating": "",
            "info": "",
            "ratings": [],
            "icon": "http://fuss10.elemecdn.com/b/5f/b3b04c259d5ec9fa52e1856ee50dajpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/b/5f/b3b04c259d5ec9fa52e1856ee50dajpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "加多宝",
            "price": 6,
            "oldPrice": "",
            "description": "",
            "sellCount": 7,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/b/9f/5e6c99c593cf65229225c5661bcdejpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/b/9f/5e6c99c593cf65229225c5661bcdejpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "VC无限橙果汁",
            "price": 8,
            "oldPrice": 10,
            "description": "",
            "sellCount": 15,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "还可以",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/e/c6/f348e811772016ae24e968238bcbfjpeg.jpeg?imageView2/1/w/750/h/750"
          }
        ]
      },
      {
        "name": "小吃主食",
        "type": -1,
        "foods": [
          {
            "name": "扁豆焖面",
            "price": 14,
            "oldPrice": "",
            "description": "",
            "sellCount": 188,
            "rating": 96,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 1,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/c/6b/29e3d29b0db63d36f7c500bca31d8jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/c/6b/29e3d29b0db63d36f7c500bca31d8jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "葱花饼",
            "price": 10,
            "oldPrice": "",
            "description": "",
            "sellCount": 124,
            "rating": 85,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 1,
                "text": "没啥味道",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 1,
                "text": "很一般啊",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/f/28/a51e7b18751bcdf871648a23fd3b4jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/f/28/a51e7b18751bcdf871648a23fd3b4jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "牛肉馅饼",
            "price": 14,
            "oldPrice": "",
            "description": "",
            "sellCount": 114,
            "rating": 91,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 1,
                "text": "难吃不推荐",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/d/b9/bcab0e8ad97758e65ae5a62b2664ejpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/d/b9/bcab0e8ad97758e65ae5a62b2664ejpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "招牌猪肉白菜锅贴/10个",
            "price": 17,
            "oldPrice": "",
            "description": "",
            "sellCount": 101,
            "rating": 78,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 1,
                "text": "不脆,不好吃",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/7/72/9a580c1462ca1e4d3c07e112bc035jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/7/72/9a580c1462ca1e4d3c07e112bc035jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "糊塌子",
            "price": 10,
            "oldPrice": "",
            "description": "",
            "sellCount": 80,
            "rating": 93,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/0/05/097a2a59fd2a2292d08067e16380cjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/0/05/097a2a59fd2a2292d08067e16380cjpeg.jpeg?imageView2/1/w/750/h/750"
          }
        ]
      },
      {
        "name": "特色粥品",
        "type": -1,
        "foods": [
          {
            "name": "皮蛋瘦肉粥",
            "price": 10,
            "oldPrice": "",
            "description": "咸粥",
            "sellCount": 229,
            "rating": 100,
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "很喜欢的粥",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 1,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/c/cd/c12745ed8a5171e13b427dbc39401jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/c/cd/c12745ed8a5171e13b427dbc39401jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "南瓜粥",
            "price": 9,
            "oldPrice": "",
            "description": "甜粥",
            "sellCount": 91,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/8/a6/453f65f16b1391942af11511b7a90jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/8/a6/453f65f16b1391942af11511b7a90jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "红豆薏米美肤粥",
            "price": 12,
            "oldPrice": "",
            "description": "甜粥",
            "sellCount": 86,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/d/22/260bd78ee6ac6051136c5447fe307jpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/d/22/260bd78ee6ac6051136c5447fe307jpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "红枣山药糙米粥",
            "price": 10,
            "oldPrice": "",
            "description": "",
            "sellCount": 81,
            "rating": 91,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/9/b5/469d8854f9a3a03797933fd01398bjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/9/b5/469d8854f9a3a03797933fd01398bjpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "鲜蔬菌菇粥",
            "price": 11,
            "oldPrice": "",
            "description": "咸粥",
            "sellCount": 56,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": ""
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/e/a3/5317c68dd618929b6ac05804e429ajpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/e/a3/5317c68dd618929b6ac05804e429ajpeg.jpeg?imageView2/1/w/750/h/750"
          },
          {
            "name": "田园蔬菜粥",
            "price": 10,
            "oldPrice": "",
            "description": "咸粥",
            "sellCount": 33,
            "rating": 100,
            "info": "",
            "ratings": [
              {
                "username": "3******c",
                "rateTime": 1469281964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "2******3",
                "rateTime": 1469271264000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              },
              {
                "username": "3******b",
                "rateTime": 1469261964000,
                "rateType": 0,
                "text": "",
                "avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
              }
            ],
            "icon": "http://fuss10.elemecdn.com/a/94/7371083792c19df00e546b29e344cjpeg.jpeg?imageView2/1/w/114/h/114",
            "image": "http://fuss10.elemecdn.com/a/94/7371083792c19df00e546b29e344cjpeg.jpeg?imageView2/1/w/750/h/750"
          }
        ]
      }
    ]
  }, 
  /**
   * 跳到某一个菜单元素
   */
  scrollToMenu: function (e){ 
    var that=this;
    let current = e.currentTarget.dataset.current; 
    let toViewString = 'menu-' + (current > 5 ? current - 5 : 0); 
    that.setData({
      currentIndex: current,
      toView: toViewString,
      scrollTop: that.data.foodListHeights[current]
    });  
  },
  /**
   * 监听商品滚动事件
   */
  scrollFoods: function (e) {
    var that=this;
    let currentY=e.detail.scrollTop;
    for (let i = 0; i < that.data.foodListHeights.length - 1; i++) {
      let heightBottom = that.data.foodListHeights[i];
      let heightTop = that.data.foodListHeights[i + 1];
      //对滑动后currentY值不足的情况进行修正
      let diff = Math.abs(currentY - heightTop); 
      //判断currentY当前所在的区间
      if (currentY < heightTop && currentY >= heightBottom) {
        let toViewString = 'menu-' + (i > 5 ? i - 5 : 0);
        that.setData({
          currentIndex: i,
          toView: toViewString
        }); 
      }
    }
  }, 
  
  /**
   * 生命周期函数--监听页面加载后执行事件
   */
  onLoad: function (options) {
    const that = this; 
    let height = 0;
    const _foodListHeights=[];
    _foodListHeights.push(height);  
    const query = wx.createSelectorQuery();
    query.select('.foods-wrapper').boundingClientRect();
    query.selectAll('.food-list-hook').boundingClientRect();  
    query.exec(function (res) { 
      //height = height - res[0].height; 
      for(let i=0;i<res[1].length;i++){
        height += res[1][i].height;
        _foodListHeights.push(height); 
      } 
      that.setData({
        foodListHeights: _foodListHeights
      });
    }) 
  }
})

2.wxml里的代码

 <view class="goods">
  <scroll-view class="menu-wrapper"
    scroll-y
    scroll-into-view="{{toView}}"> 
    <view wx:for="{{goods}}" wx:for-item="item" wx:for-index="idx" bindtap="scrollToMenu" data-current="{{idx}}"
    id="menu-{{idx}}"
    class="li {{currentIndex==idx?'active':''}}">
      {{item.name}}
    </view> 
  </scroll-view>
  <view class="foods-wrapper">
  <scroll-view style="height:100%;width:100%;"
    scroll-y
    bindscroll="scrollFoods"
    scroll-top="{{scrollTop}}">
    <view wx:for="{{goods}}" wx:for-item="item" class="food-list-hook"> 
      <text class="cate">{{item.name}}</text>
      <view class="food-item" wx:for="{{item.foods}}" wx:for-item="itemFoods">
        <view class="icon" style="background-image:url({{itemFoods.icon}})"></view>
            <view class="content">
              <view class="title">{{itemFoods.name}}</view>
              <view class="desc">{{itemFoods.info}}</view>
              <view class="desc">月赞{{itemFoods.sellCount}}<text>赞{{itemFoods.rating}}</text></view>
              <view class="price">
                ¥{{itemFoods.price}}<view class="price_add"></view>
              </view>
            </view>
      </view>
    </view>  
  </scroll-view>
  <view class="foods-wrapper-title">
      {{goods[currentIndex].name}}
  </view>
  </view>
</view>

3.wxss代码

view{
  box-sizing:border-box;
  -moz-box-sizing:border-box; /* Firefox */
  -webkit-box-sizing:border-box; /* Safari */
}
ul{
  list-style: none;
}
.head{
  position: absolute;
  top: 0px;
  width: 100%;
  overflow: hidden;
  background:#323232;
  height:120px;
}
.goods{
  display: flex;
  position: absolute;
  top: 120px;
  bottom: 48px;
  width: 100%;
  overflow: hidden;
} 
.menu-wrapper{
  touch-action: none;
  position: relative;
  width: 22%;
  background: #f2fafd;
}
::-webkit-scrollbar {
  width: 0;
  height: 0;
  color: transparent;
}
.menu-wrapper .li{
  list-style: none;
  text-align:center;
  color:gray;
  padding:10px 10px;
  font-size:12px;
  position: relative;
}
.menu-wrapper .li.active{
  background:#fff;
  font-weight:bold;
  color:#333;
}
.menu-wrapper li.active:before{
  content:' ';
  position: absolute;
  width:2px;
  height:30%;
  top:35%;
  float:left;
  left:5px;
  background:#fad464;
} 
.foods-wrapper{
  touch-action: none;
  position: relative;
  flex: 1;
  width:78%;
}
.foods-wrapper-title{
  position: absolute;
  top:0px;
  left:0px;
  float:left;
  width:100%;
  background:#fff;
}
.foods-wrapper-title,
.foods-wrapper .food-list-hook .cate{
  font-size:13px;
  font-weight:600;
  color:#666;
  padding:10px;
}
.food-item{
  overflow: hidden;
  display: list-item;
  padding:15px 10px;
  width:100%;
}
.food-item:first-child{
  padding-top:0px;
}
.food-item .icon{
  float: left;
  width:80px;
  height: 80px;
  box-sizing: border-box;
  text-align:center;
  margin-right:10px;
  background-size:auto 100%;
  border-radius: 4px; 
} 
.food-item .content{
  overflow: hidden;
  background-color: #fff;
}
.food-item .content .desc{
  color:gray;
  font-size: 11px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.food-item .content .desc text{
  margin-left:7px;
}
.food-item .content .desc:last-child{
  padding-top:0px;
  padding-bottom:5px;
}
.food-item .content .title{
  font-weight: 700;
  font-size: 15px;
}
.food-item .content .price{
  font-weight: 700;
  font-size: 17px;
  color:#d85455;
}
.food-item .content .price .price_add{
  float: right;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:#fed360;
  right:0px;
  position: relative;
  top:2px;
}
.food-item .content .price .price_add:before,
.food-item .content .price .price_add:after{
  position: absolute;
  content:' ';
  background:#000;
  float:left;
  border-radius:1px;
}
.food-item .content .price .price_add:before{
  width:12px;
  height:2px;
  left:5px;
  top:10px;
}
.food-item .content .price .price_add:after{
  width:2px;
  height:12px;
  left:10px;
  top:5px;
}

3.界面效果图

微信小程序实现美团goods商品列表页开发