require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugin/scoreshop/goods/index"],{"4e68":function(t,e,n){"use strict";n.r(e);var r=n("b1ee"),i=n("72bb");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("ad9a"),n("ae7b");var c=n("828b"),a=Object(c["a"])(i["default"],r["b"],r["c"],!1,null,"619c98da",null,!1,r["a"],void 0);e["default"]=a.exports},"685a":function(t,e,n){"use strict";(function(t){var r=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("af34")),o=r(n("7ca3")),c=n("8f59");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var u={data:function(){return{keyword:"",category:[],current:0,page:1,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,c.mapGetters)(["user","base"])),watch:{base:function(e,n){t.setNavigationBarTitle({title:(e.texts.score||"积分")+"商品"})}},onLoad:function(){this.init()},methods:{init:function(){var t=this;this.$util.get("scoreshop/goods/category").then((function(e){1==e.code&&(t.category=e.data.category)})),this.getList()},search:function(){this.page=1,this.getList()},onTab:function(t){this.current=t.index,this.page=1,this.getList()},getList:function(){var t=this,e={keyword:this.keyword,page:this.page};this.category[this.current]&&(e.category_id=this.category[this.current].id),this.$util.get("scoreshop/goods/getList",e).then((function(e){1==t.page&&(t.list=[]),1==e.code&&(t.list=[].concat((0,i.default)(t.list),(0,i.default)(e.data)),t.page++)})).catch((function(e){1==t.page&&(t.list=[])}))}}};e.default=u}).call(this,n("df3c")["default"])},"72bb":function(t,e,n){"use strict";n.r(e);var r=n("685a"),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"8c94":function(t,e,n){"use strict";(function(t,e){var r=n("47a9");n("4c1a");r(n("3240"));var i=r(n("4e68"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},ad9a:function(t,e,n){"use strict";var r=n("c3c0"),i=n.n(r);i.a},ae7b:function(t,e,n){"use strict";var r=n("eda5"),i=n.n(r);i.a},b1ee:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={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"))},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"))}},i=function(){var t=this.$createElement,e=(this._self._c,this.list.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},o=[]},c3c0:function(t,e,n){},eda5:function(t,e,n){}},[["8c94","common/runtime","common/vendor"]]]);