text: webpackJsonp([1],{EZNv:function(t,a){},wpRo:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i=s("/KFX"),e=s("2qVQ"),n=s("nGsH"),r=s("Zrlr"),c=s.n(r),d=s("wxAW"),l=s.n(d),o=s("0Mti"),v=new(function(){function t(){c()(this,t)}return l()(t,[{key:"getProductList",value:function(t){return o.a.get("/index/item/item_list",t)}},{key:"getCate",value:function(t){return o.a.get("/index/category/get_cate_data",t)}}]),t}()),_=s("z+TU"),h={name:"index.vue",data:function(){return{data:"",cateid:"",childid:"",cateList:[],childList:[],keyword:"",money:0,page:0,options:[{value:"0",label:"最新"},{value:"1",label:"热度"}],order:"0",count:0,adve:""}},mounted:function(){var t=this.$route.query,a=t.cateid,s=void 0===a?"":a,i=t.childid,e=void 0===i?"":i,n=t.keyword,r=void 0===n?"":n,c=t.order,d=void 0===c?"0":c;this.cateid=s,this.childid=e,this.keyword=r,this.order=d,this.getCateList(),s&&this.getChildList(),this.getData(),this.getAdve()},beforeRouteUpdate:function(t,a,s){var i=t.query,e=i.cateid,n=void 0===e?"":e,r=i.childid,c=void 0===r?"":r,d=i.keyword,l=void 0===d?"":d,o=i.order,v=void 0===o?"0":o;this.cateid=n,this.childid=c,this.keyword=l,this.order=v,this.getCateList(),n&&this.getChildList(),this.getData(),this.getAdve(),s()},methods:{getData:function(){var t=this,a=this.childid,s=void 0===a?"":a,i=this.money,e=this.keyword,n=this.order,r=this.page;v.getProductList({cate_id:s,money:i,keyword:e,order:n,page:r}).then(function(a){t.count=a.count,t.data=a.data})},getCateList:function(){var t=this;v.getCate({d:0}).then(function(a){t.cateList=a})},getChildList:function(){var t=this,a=this.cateid;v.getCate({d:a}).then(function(a){t.childList=a})},getAdve:function(){var t=this;_.a.getAdve({wp:3}).then(function(a){t.adve=a})},cateChange:function(t){this.cateid=t.target.dataset.id,this.childid="",this.getChildList(),this.getData()},childChange:function(t){this.childid=t.target.dataset.id,this.getData()},moneyChange:function(t){this.money=t.target.dataset.money,this.getData()},orderChange:function(){this.getData()},pageChange:function(t){this.page=t-1,window.scrollTo(0,0),this.getData()}},components:{Search:i.a,HotOrder:e.a,IndustryList:n.a}},u={render:function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"list"},[i("Search"),t._v(" "),i("div",{staticClass:"commonNav"},[i("div",{staticClass:"wrapper"},[i("div",{staticClass:"part"},[i("router-link",{attrs:{to:"/"}},[i("span",[t._v("首页")]),t._v(" "),i("i")]),t._v(" "),i("router-link",{staticClass:"active",attrs:{to:"/list"}},[i("span",[t._v("找项目")]),t._v(" "),i("img",{staticClass:"hot",attrs:{src:s("J7Va")}}),t._v(" "),i("i")]),t._v(" "),i("router-link",{attrs:{to:"/rankingList"}},[i("span",[t._v("排行榜")]),t._v(" "),i("i")]),t._v(" "),i("router-link",{attrs:{to:"/news"}},[i("span",[t._v("行业资讯")]),t._v(" "),i("i")])],1)])]),t._v(" "),i("div",{staticClass:"wrapper clearfix"},[i("div",{staticClass:"classifyList"},[i("div",{staticClass:"classify"},[i("div",{staticClass:"left"},[i("span",{staticClass:"title"},[t._v("行业分类")]),t._v(" "),i("span",{class:[""==t.cateid?"currentClassify":""],attrs:{"data-id":""},on:{click:t.cateChange}},[t._v("不限")])]),t._v(" "),i("div",{staticClass:"right",on:{click:t.cateChange}},t._l(t.cateList,function(a){return i("span",{key:"cata"+a.id,class:[t.cateid==a.id?"currentClassify":""],attrs:{"data-id":a.id}},[t._v(t._s(a.name))])}),0)]),t._v(" "),""!=t.cateid?i("div",{staticClass:"classify"},[i("div",{staticClass:"left"},[i("span",{staticClass:"title"},[t._v("二级分类")]),t._v(" "),i("span",{class:[""==t.childid?"currentClassify":""],attrs:{"data-id":""},on:{click:t.childChange}},[t._v("不限")])]),t._v(" "),i("div",{staticClass:"right",on:{click:t.childChange}},t._l(t.childList,function(a){return i("span",{key:"child"+a.id,class:[t.childid==a.id?"currentClassify":""],attrs:{"data-id":a.id}},[t._v(t._s(a.name))])}),0)]):t._e(),t._v(" "),i("div",{staticClass:"classify"},[i("div",{staticClass:"left"},[i("span",{staticClass:"title"},[t._v("投资金额")]),t._v(" "),i("span",{class:[0==t.money?"currentClassify":""],attrs:{"data-money":"0"},on:{click:t.moneyChange}},[t._v("不限")])]),t._v(" "),i("div",{staticClass:"right",on:{click:t.moneyChange}},[i("span",{class:[1==t.money?"currentClassify":""],attrs:{"data-money":"1"}},[t._v("1万以下")]),t._v(" "),i("span",{class:[2==t.money?"currentClassify":""],attrs:{"data-money":"2"}},[t._v("1-10万")]),t._v(" "),i("span",{class:[3==t.money?"currentClassify":""],attrs:{"data-money":"3"}},[t._v("10-20万")]),t._v(" "),i("span",{class:[4==t.money?"currentClassify":""],attrs:{"data-money":"4"}},[t._v("20-50万")]),t._v(" "),i("span",{class:[5==t.money?"currentClassify":""],attrs:{"data-money":"5"}},[t._v("50-100万")]),t._v(" "),i("span",{class:[6==t.money?"currentClassify":""],attrs:{"data-money":"6"}},[t._v("100万以上")])])])]),t._v(" "),i("div",{staticClass:"content fl clearfix"},[i("div",{staticClass:"title clearfix"},[i("div",{staticClass:"fl"},[t._v("加盟项目")]),t._v(" "),i("el-select",{staticClass:"select fr",attrs:{placeholder:"请选择"},on:{change:function(a){return t.orderChange()}},model:{value:t.order,callback:function(a){t.order=a},expression:"order"}},t._l(t.options,function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1)],1),t._v(" "),t._l(t.data,function(a){return i("router-link",{key:"pro"+a.id,staticClass:"item",attrs:{to:"/detail?id="+a.id}},[i("img",{attrs:{src:a.img,alt:""}}),t._v(" "),i("div",{staticClass:"right"},[i("div",{staticClass:"name clearfix"},[i("span",{staticClass:"fl"},[t._v(t._s(a.item_name))]),t._v(" "),i("span",{staticClass:"money fr"},[t._v("￥"+t._s(a.money)+"万")])]),t._v(" "),i("div",{staticClass:"detail"},[i("div",{staticClass:"info"},[t._v("\n                  所属行业："),i("span",[t._v(t._s(a.cate_name))])]),t._v(" "),i("div",{staticClass:"info"},[t._v("\n                直营店："),i("span",[t._v(t._s(a.shop_count)+"家")])]),t._v(" "),i("div",{staticClass:"info"},[t._v("\n                申请人数："),i("span",[t._v(t._s(a.apply))])]),t._v(" "),i("div",{staticClass:"info"},[t._v("\n                加盟店："),i("span",[t._v(t._s(a.fran_store_num)+"家")])])])])])}),t._v(" "),i("el-pagination",{staticClass:"pages",attrs:{background:"",layout:"prev, pager, next",total:t.count},on:{"current-change":t.pageChange}})],2),t._v(" "),t._l(t.adve[0],function(t){return i("div",{key:"adve0"+t.id},[1!=t.type?i("router-link",{attrs:{to:t.link}},[i("img",{staticClass:"fr advertising",attrs:{src:t.img}})]):i("a",{attrs:{href:t.link,target:"_blank"}},[i("img",{staticClass:"fr advertising",attrs:{src:t.img}})])],1)}),t._v(" "),i("HotOrder",{staticClass:"hotOrder fr",attrs:{more:!1}}),t._v(" "),i("IndustryList",{staticClass:"IndustryList fr"})],2)],1)},staticRenderFns:[]};var f=s("VU/8")(h,u,!1,function(t){s("EZNv")},"data-v-090fba9a",null);a.default=f.exports}});
  //# sourceMappingURL=1.d409c12a50a592d2b54a.js.map