(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/shoping/list"],{"00cb":function(t,e,n){"use strict";(function(t,e){var o=n("4ea4");n("12d5");o(n("66fd"));var i=o(n("89c5"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"0feb":function(t,e,n){},5201:function(t,e,n){"use strict";(function(t){var o=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("9523")),r=n("26cb"),a=n("c46b");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var s={data:function(){return{page:1,limit:10,loadingType:"more",list:[],keyword:"",type:0}},watch:{keyword:function(t,e){this.keyword=t,console.log(t),this.search()}},computed:u({},(0,r.mapState)(["latitude","longitude"])),onLoad:function(t){t.type&&(this.type=t.type),this.getShoping()},onReachBottom:function(){this.getShoping()},methods:u(u({},(0,r.mapMutations)(["setLat","setLon","setStoreInfo"])),{},{search:function(t){var e=this;e.list.forEach((function(t){t.title.indexOf(e.keyword)>=0?t.show=!0:t.show=!1}))},navProduct:function(e){t.navigateTo({url:"./index?merid="+e.id})},getShoping:function(){var t=this;console.log(t.longitude,t.latitude),"loading"!=t.loadingType&&"noMore"!=t.loadingType&&(t.loadingType="loading",(0,a.store_list)({page:t.page,limit:t.limit}).then((function(e){var n=e.data;console.log(n);var o=n.list.map((function(t){return t.show=!0,t}));t.list=t.list.concat(o),t.page++,t.limit==n.list.length?t.loadingType="more":t.loadingType="noMore"})).catch((function(t){console.log(t)})))},chooseStore:function(e){3==this.type?(this.$api.prePage().storeInfo=e,t.navigateBack({})):4==this.type?(this.$api.prePage().shopAddress=e,t.navigateBack({})):5==this.type||(this.setStoreInfo(e),t.navigateBack({}))}})};e.default=s}).call(this,n("543d")["default"])},"7f66":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}));var o={uniLoadMore:function(){return n.e("components/uni-load-more/uni-load-more").then(n.bind(null,"bfdb"))}},i=function(){var t=this.$createElement;this._self._c},r=[]},"89c5":function(t,e,n){"use strict";n.r(e);var o=n("7f66"),i=n("9331");for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("c65d");var a=n("f0c5"),c=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=c.exports},9331:function(t,e,n){"use strict";n.r(e);var o=n("5201"),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},c65d:function(t,e,n){"use strict";var o=n("0feb"),i=n.n(o);i.a}},[["00cb","common/runtime","common/vendor"]]]);