(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/product/groupBooking/index"],{1872:function(e,t,n){"use strict";(function(e){n("5935");o(n("66fd"));var t=o(n("4007"));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},4007:function(e,t,n){"use strict";n.r(t);var o=n("570b"),r=n("8f7c");for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);n("a7c7");var i,c=n("f0c5"),u=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],i);t["default"]=u.exports},"570b":function(e,t,n){"use strict";var o;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));var r=function(){var e=this,t=e.$createElement,n=(e._self._c,e._f("longstorename")(e.checkedStore.name)),o=e._f("distance")(e.des);e.$mp.data=Object.assign({},{$root:{f0:n,f1:o}})},a=[]},"8f7c":function(e,t,n){"use strict";n.r(t);var o=n("d49b"),r=n.n(o);for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=r.a},a7c7:function(e,t,n){"use strict";var o=n("deb4"),r=n.n(o);r.a},d49b:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("a34a")),r=n("7e95"),a=n("26cb");function i(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n,o,r,a,i){try{var c=e[a](i),u=c.value}catch(f){return void n(f)}c.done?t(u):Promise.resolve(u).then(o,r)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var a=e.apply(t,n);function i(e){c(a,o,r,i,u,"next",e)}function u(e){c(a,o,r,i,u,"throw",e)}i(void 0)}))}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(){n.e("components/uni-load-more/uni-load-more").then(function(){return resolve(n("20fd"))}.bind(null,n)).catch(n.oe)},p={components:{uniLoadMore:s},data:function(){return{goodsList:[],loadingType:"more",limit:20,page:1}},computed:d({},(0,a.mapState)("user",["userInfo","checkedStore","des","latlng"])),onLoad:function(e){this.loadData()},onPullDownRefresh:function(){this.loadData("refresh")},onReachBottom:function(){this.loadData()},filters:{storename:function(e){var t="";return e&&(t=e,e.length>5&&(t=e.slice(0,5)+"...")),t},longstorename:function(e){var t="";return e&&(t=e,e.length>10&&(t=e.slice(0,10)+"...")),t},distance:function(e){var t="";return e?1*e>1e3?(1*e/1e3).toFixed(1)+"km":t:(1*e).toFixed(0)+"m"}},methods:{loadData:function(){var t=arguments,n=this;return u(o.default.mark((function a(){var i,c,u,f;return o.default.wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(i=t.length>0&&void 0!==t[0]?t[0]:"add",c=t.length>1?t[1]:void 0,u=n,f={page:u.page,limit:u.limit},"add"!==i){o.next=10;break}if("nomore"!==u.loadingType){o.next=7;break}return o.abrupt("return");case 7:u.loadingType="loading",o.next=11;break;case 10:u.loadingType="more";case 11:(0,r.getCombinationList)(f).then((function(t){console.log(t,"++++++++++++e+++++++"),"refresh"===i&&(u.goodsList=[]),u.goodsList=u.goodsList.concat(t.data),u.limit==t.data.length?(u.page++,u.loadingType="more"):u.loadingType="nomore","refresh"===i&&(1==c?e.hideLoading():e.stopPullDownRefresh())})).catch();case 12:case"end":return o.stop()}}),a)})))()},goProduct:function(t){e.navigateTo({url:"/pages/product/groupBooking/productGroup?id="+t.id})}}};t.default=p}).call(this,n("543d")["default"])},deb4:function(e,t,n){}},[["1872","common/runtime","common/vendor"]]]);