(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/merchant/merchant_street/index"],{"1af7":function(e,t,n){"use strict";(function(e){var i=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("7eb4")),o=i(n("ee10")),r=n("28e0"),c=n("8f59"),s=getApp(),l={data:function(){return{urlDomain:this.$Cache.get("imgHost"),theme:s.globalData.theme,where:{page:1,limit:20,circleIds:""},merchantList:[],skeletonShow:!1,loadTitle:"",loading:!1,loadend:!1,fromRegion:!1,regionIds:"",allRegionMerchants:[]}},components:{merchantList:function(){Promise.all([n.e("common/vendor"),n.e("components/merchantList/index")]).then(function(){return resolve(n("5e38"))}.bind(null,n)).catch(n.oe)},tuiSkeleton:function(){Promise.all([n.e("common/vendor"),n.e("components/base/tui-skeleton")]).then(function(){return resolve(n("caab"))}.bind(null,n)).catch(n.oe)},pageFooter:function(){n.e("components/pageFooter/index").then(function(){return resolve(n("3c92"))}.bind(null,n)).catch(n.oe)},emptyPage:function(){n.e("components/emptyPage").then(function(){return resolve(n("a342"))}.bind(null,n)).catch(n.oe)}},computed:(0,c.mapGetters)(["bottomNavigationIsCustom"]),onLoad:function(t){t.regionIds?(this.fromRegion=!0,this.regionIds=t.regionIds,this.where.circleIds=this.regionIds,e.setNavigationBarTitle({title:"圈层店铺街"})):e.setNavigationBarTitle({title:"店铺街"}),this.skeletonShow=!0,this.getMerStreet()},onPageScroll:function(t){e.$emit("scroll")},methods:{goback:function(){e.navigateBack()},getMerStreet:function(e){this.loadend||this.loading||(!0===e&&this.$set(this,"merchantList",[]),this.loading=!0,this.loadTitle="",this.getPlatformMerStreet())},getPlatformMerStreet:function(){var e=this,t=this;(0,r.getMerStreetApi)(t.where).then((function(n){e.skeletonShow=!1;var i=n.data.list,a=t.$util.SplitArray(i,t.merchantList),o=i.length<t.where.limit;t.loadend=o,t.loadTitle=o?"没有了":"加载更多",t.$set(t,"merchantList",a),t.$set(t.where,"page",t.where.page+1),t.loading=!1})).catch((function(e){t.loading=!1,t.loadTitle="加载更多"}))},getRegionMerStreet:function(){var e=(0,o.default)(a.default.mark((function e(){var t,n,i,o,c,s,l,u,h,d;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this,e.prev=1,1!==t.where.page){e.next=9;break}return n={num:500,circleIds:t.regionIds},e.next=6,(0,r.getRegionMerListApi)(n);case 6:i=e.sent,o=i.data,this.allRegionMerchants=o||[];case 9:this.skeletonShow=!1,c=this.allRegionMerchants||[],s=(t.where.page-1)*t.where.limit,l=s+t.where.limit,u=c.slice(s,l),h=t.$util.SplitArray(u,t.merchantList),d=u.length<t.where.limit||l>=c.length,t.loadend=d,t.loadTitle=d?"没有了":"加载更多",t.$set(t,"merchantList",h),t.$set(t.where,"page",t.where.page+1),t.loading=!1,e.next=29;break;case 23:e.prev=23,e.t0=e["catch"](1),t.loading=!1,t.loadTitle="加载更多",this.skeletonShow=!1;case 29:case"end":return e.stop()}}),e,this,[[1,23]])})));return function(){return e.apply(this,arguments)}}()},onReachBottom:function(){this.merchantList.length>0&&this.getMerStreet()}};t.default=l}).call(this,n("df3c")["default"])},"3c87":function(e,t,n){"use strict";n.r(t);var i=n("1af7"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},4177:function(e,t,n){"use strict";var i=n("e7d3"),a=n.n(i);a.a},"5e4b":function(e,t,n){"use strict";n.r(t);var i=n("8255"),a=n("3c87");for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("4177"),n("ee56");var r=n("828b"),c=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"e0be09f6",null,!1,i["a"],void 0);t["default"]=c.exports},"6d4e":function(e,t,n){"use strict";(function(e,t){var i=n("47a9");n("1d3c");i(n("3240"));var a=i(n("5e4b"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"6e11":function(e,t,n){},8255:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var i=function(){var e=this.$createElement,t=(this._self._c,!this.merchantList.length&&!this.loading);this.$mp.data=Object.assign({},{$root:{g0:t}})},a=[]},e7d3:function(e,t,n){},ee56:function(e,t,n){"use strict";var i=n("6e11"),a=n.n(i);a.a}},[["6d4e","common/runtime","common/vendor"]]]);