(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1b44deb1"],{5226:function(t,i,e){"use strict";var s=e("6d00"),a=e.n(s);a.a},"6d00":function(t,i,e){},d6b5:function(t,i,e){"use strict";e.r(i);var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{attrs:{id:"shoplist"}},[e("div",{attrs:{id:"banner"}},[e("swiper",{attrs:{options:t.swiperOption}},t._l(t.banngList,function(t,i){return e("swiper-slide",{key:i},[e("img",{staticClass:"img imgRadius",attrs:{src:t}})])}),1)],1),e("ul",{staticClass:"list",attrs:{id:"liseUl"}},t._l(t.list,function(i,s){return e("li",{key:s,staticClass:"radius05rem overHidden whiteB relativeItem"},[e("a",{staticClass:"allA",on:{click:function(e){return t.toLink(i.url)}}}),e("div",{staticClass:"img relativeItem radius05rem overHidden"},[e("img",{staticClass:"absoluteItem centerImg",attrs:{src:i.img_url}})]),e("div",{staticClass:"text absoluteItem centerY"},[e("p",{staticClass:"p1"},[t._v("\n          ￥\n          "),e("span",[t._v(t._s(i.money))])]),e("p",{staticClass:"p2"},[t._v(t._s(i.title))])])])}),0),t.blankText?e("blanktext"):t._e()],1)},a=[],n=(e("ac6a"),e("dfa4"),e("7212")),o=e("c14a"),l={name:"shoplist",components:{swiper:n["swiper"],swiperSlide:n["swiperSlide"],blanktext:o["a"]},data:function(){return{blankText:!1,showList:!1,list:[],page:1,ismore:!0,banngList:[],swiperOption:{speed:500,autoplay:{delay:2500,disableOnInteraction:!1},loop:!0,self:this}}},methods:{getMore:function(){var t=this;window.onscroll=function(){var i=t.$tool.getScrollHeight()-(t.$tool.getScrollTop()+t.$tool.getWindowHeight()),e=i<=50;e&&t.ismore&&(t.page++,t.getList())}},getList:function(){if(this.ismore){var t=this,i={page:t.page};this.$tool.isStr(this.$route.query.uid)&&(i.uid=this.$route.query.uid),this.$jsonp(this.$apis("shoplist"),i,function(i){if(t.banngList.push(i.data.data.banner),i.data.data.data.length>0){var e=i.data.data.data;e.forEach(function(i){t.list.push(i)}),1==t.page&&t.getMore()}else t.ismore=!1,t.blankText=!0})}},toLink:function(t){"app"==this.$cookie.getC("platform")?this.$appAc.toShopLink(t):window.location.href=t},setTopHeight:function(){var t=document.getElementById("liseUl"),i=document.getElementsByClassName("swiper-slide")[0];t.style.marginTop=i.clientHeight+10+"px"}},mounted:function(){this.$tool.setTitle("商城首页"),this.$emit("showOhidden",!1,0),this.getList()}},r=l,c=(e("5226"),e("2877")),d=Object(c["a"])(r,s,a,!1,null,"d8d4726c",null);i["default"]=d.exports}}]);
//# sourceMappingURL=chunk-1b44deb1.7c53b7f8.js.map