require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesS/scoreshop/order"],{"3b58":function(t,e,n){},"9a98":function(t,e,n){"use strict";n.r(e);var i=n("c630"),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},adad:function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("4c1a");i(n("3240"));var r=i(n("b797"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},b797:function(t,e,n){"use strict";n.r(e);var i=n("d701"),r=n("9a98");for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("dfd9");var s=n("828b"),a=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=a.exports},c630:function(t,e,n){"use strict";var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("af34")),o=i(n("7ca3")),s=n("8f59");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}var u={data:function(){return{tabList:[{name:"全部",status:-1},{name:"待支付",status:0},{name:"待发货",status:1},{name:"已发货",status:2},{name:"已完成",status:3},{name:"退款",status:4}],current:0,order:{},list:[],page:1,loading:!1,identity:0,keyword:"",store_id:"",sIndex:-1,store_list:[]}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,s.mapGetters)(["base"])),onLoad:function(t){t.identity&&(this.identity=t.identity),t.current&&(this.current=t.current),this.getList(),1==this.identity&&this.getDealerStoreList()},onReachBottom:function(){this.getList()},methods:{clearSearch:function(){this.keyword=""},getDealerStoreList:function(){var t=this;this.$util.get("store/dealer/getStoreList",{identity:this.identity},!1).then((function(e){1==e.code&&(t.store_list=e.data)}))},selStore:function(t){this.sIndex=t.detail.value},onTab:function(t){this.current=t.index,this.page=1,this.getList()},search:function(){this.page=1,this.getList()},getList:function(){var t=this;if(!this.loading){this.loading=!0;var e={status:this.tabList[this.current].status,page:this.page,identity:this.identity,keyword:this.keyword};this.store_list[this.sIndex]&&(e.store_id=this.store_list[this.sIndex].id),this.$util.get("store/scoreshop/order/getList",e).then((function(e){t.loading=!1,1==t.page&&(t.list=[]),1==e.code&&(t.list=[].concat((0,r.default)(t.list),(0,r.default)(e.data)),t.page++)})).catch((function(e){t.loading=!1,1==t.page&&(t.list=[])}))}}}};e.default=u},d701:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uTabs:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-tabs/u-tabs")]).then(n.bind(null,"614b"))},uSearch:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-search/u-search")]).then(n.bind(null,"31f6"))},uSafeBottom:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom")]).then(n.bind(null,"f585"))},uEmpty:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-empty/u-empty")]).then(n.bind(null,"f174"))}},r=function(){var t=this.$createElement,e=(this._self._c,this.list.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},o=[]},dfd9:function(t,e,n){"use strict";var i=n("3b58"),r=n.n(i);r.a}},[["adad","common/runtime","common/vendor"]]]);