(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-13edca78"],{"5f23":function(t,s,i){},e066:function(t,s,i){"use strict";i("5f23")},f266:function(t,s,i){"use strict";i.r(s);var e=function(){var t=this,s=t._self._c;t._self._setupProxy;return s("div",[s("div",{staticClass:"three"},[s("div",{staticClass:"food_title",staticStyle:{padding:"10px 0 15px"}},[t._v("光明三宝")]),s("div",{staticClass:"three_list"},t._l(t.images_url,(function(i,e){return s("div",{key:e,staticStyle:{position:"relative"},on:{click:function(s){return t.toDetail(i.goods_id,i.type_id)}}},[s("van-image",{attrs:{fit:"cover",width:"103",height:"103",radius:"6",src:i.images_url[0]}}),s("div",{staticClass:"three_des"},[t._v(t._s(i.name))])],1)})),0)]),s("div",{staticClass:"food"},[s("div",{staticClass:"food_title",staticStyle:{padding:"30px 15px 0px"}},[t._v("特色美食")]),s("div",{staticClass:"food_list"},t._l(t.food,(function(i,e){return s("div",{key:e,staticClass:"foot-item",on:{click:function(s){return t.toDetail(i.goods_id,i.type_id)}}},[s("van-image",{attrs:{fit:"cover",width:"187",height:"210",src:i.images_url.length?i.images_url[0]:t.empty}}),s("div",{staticStyle:{padding:"10px 10px 15px"}},[s("div",{staticClass:"food_name"},[t._v(t._s(i.name))])])],1)})),0)]),s("div",{staticClass:"food"},[s("div",{staticClass:"food_title"},[t._v("特色店铺")]),s("div",{staticClass:"food_list",staticStyle:{"margin-bottom":"50px"}},t._l(t.shop,(function(i,e){return s("div",{key:e,staticClass:"foot-item",on:{click:function(s){return t.toDetail(i.site_id,i.type_id)}}},[s("van-image",{attrs:{fit:"cover",width:"187",height:"210",src:i.images_url.length?i.images_url[0]:t.empty}}),s("div",{staticStyle:{padding:"10px 10px 15px"}},[s("div",{staticClass:"food_name"},[t._v(t._s(i.name))])])],1)})),0)])])},o=[],a=(i("14d9"),i("9ab4")),d=i("60a3");let n=class extends d["d"]{constructor(){super(...arguments),this.empty="https://img.yzcdn.cn/vant/empty-image-default.png",this.images_url=[],this.shop=[],this.shopPage=1,this.shopCount=0,this.food=[],this.foodPage=1,this.foodCount=0}created(){this.getThree(),this.getFood(),this.getShop()}getThree(){const t={type_id:22,page:1,size:3};this.$request("/wttCms/wxGoods/list",t).then(t=>{this.images_url=t.data.list})}getFood(){const t={type_id:23,page:this.foodPage,size:5};this.$request("/wttCms/wxGoods/list",t).then(t=>{this.food=this.food.concat(t.data.list),this.foodCount=t.data.count,this.foodCount>this.food.length&&(this.foodPage++,this.getFood())})}getShop(){const t={type_id:3,page:this.shopPage,size:5};this.$request("/wttCms/wxSite/tourList",t).then(t=>{this.shop=this.shop.concat(t.data.list),this.shopCount=t.data.count,this.shopCount>this.shop.length&&(this.shopPage++,this.getShop())})}toDetail(t,s){let i="";switch(s){case 3:i="/shopDetail?site_id="+t+"&type_id="+s;break;default:i="/foodDetail?goods_id="+t+"&type_id="+s}this.$gmRouter.push(i)}};n=Object(a["a"])([Object(d["a"])({})],n);var h=n,c=h,l=(i("e066"),i("2877")),p=Object(l["a"])(c,e,o,!1,null,"099ea64a",null);s["default"]=p.exports}}]);
//# sourceMappingURL=chunk-13edca78.6f392c12.js.map