(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/pintuan/goods"],{"225c":function(t,n,e){"use strict";e.r(n);var o=e("59be"),i=e("cf23");for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("a3b6"),e("be76");var s=e("828b"),u=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"1d0b081e",null,!1,o["a"],void 0);n["default"]=u.exports},"4d83":function(t,n,e){},"59be":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return o}));var o={uSearch:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-search/u-search")]).then(e.bind(null,"62ff"))},uIcon:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(e.bind(null,"0456"))},uEmpty:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-empty/u-empty")]).then(e.bind(null,"f5c5"))},merchantTabbar:function(){return e.e("components/merchantTabbar/merchantTabbar").then(e.bind(null,"7632"))}},i=function(){var t=this.$createElement,n=(this._self._c,this.goodsList.length);this.$mp.data=Object.assign({},{$root:{g0:n}})},a=[]},7688:function(t,n,e){},"7add":function(t,n,e){"use strict";(function(t){var o=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(e("af34")),a={components:{},data:function(){return{formData:{keyword:"",page:1},tabList:[{name:"全部",id:0},{name:"销售中",id:1},{name:"已下架",id:2},{name:"审核中",id:3},{name:"审核不通过",id:4}],goodsList:[],operationIndex:-1}},onReachBottom:function(){this.formData.page++,this.getGoodsList()},onLoad:function(){this.getGoodsList()},methods:{getGoodsList:function(){var t=this;this.$util.get("merchant_admin/pintuan/goods/getList",this.formData).then((function(n){1==n.code?1==t.formData.page?t.goodsList=n.data.list:t.goodsList=[].concat((0,i.default)(t.goodsList),(0,i.default)(n.data.list)):t.$util.toast(n.message)}))},refreshGoodsList:function(t){this.formData.page=1,this.goodsList=[],this.getGoodsList()},tabChange:function(t){this.formData.status=t.id,this.formData.page=1,this.getGoodsList()},searchGoods:function(){this.formData.page=1,this.getGoodsList()},addGoods:function(){this.$util.jump("/pages/pintuan/post")},editGoods:function(t){this.$util.jump("/pages/pintuan/post?id="+t.id)},viewPintuan:function(t){this.$util.jump("/plugin/pintuan/index?id="+t.id)},showOperation:function(t){-1==t||t==this.operationIndex?this.operationIndex=-1:this.operationIndex=t},deleteGoods:function(n){var e=this;t.showModal({title:"提示",content:"确定删除商品：《"+n.title+"》吗？",success:function(t){t.confirm&&e.$util.get("merchant_admin/pintuan/goods/delete",{id:n.id}).then((function(t){1==t.code?(e.refreshGoodsList(!0),e.$util.toast(t.message)):e.$util.toast(t.message,2e3)}))}})}}};n.default=a}).call(this,e("df3c")["default"])},a3b6:function(t,n,e){"use strict";var o=e("7688"),i=e.n(o);i.a},be76:function(t,n,e){"use strict";var o=e("4d83"),i=e.n(o);i.a},cf23:function(t,n,e){"use strict";e.r(n);var o=e("7add"),i=e.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},f4ec:function(t,n,e){"use strict";(function(t,n){var o=e("47a9");e("9c57");o(e("3240"));var i=o(e("225c"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])}},[["f4ec","common/runtime","common/vendor"]]]);