(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6e2a11e9"],{"3f33":function(t,e,a){"use strict";a.d(e,"a",(function(){return o})),a.d(e,"b",(function(){return n})),a.d(e,"g",(function(){return i})),a.d(e,"c",(function(){return l})),a.d(e,"h",(function(){return r})),a.d(e,"f",(function(){return u})),a.d(e,"e",(function(){return c})),a.d(e,"d",(function(){return d}));var s=a("6b2d");const o=t=>s.a.post("/pointsshop.points_goods/add",t),n=t=>s.a.get("/pointsshop.points_goods/detail",{params:t}),i=t=>s.a.post("/pointsshop.points_goods/update",t),l=t=>s.a.get("/pointsshop.points_goods/list",{params:t}),r=t=>s.a.post("/pointsshop.points_goods/status",t),u=t=>s.a.get("/pointsshop.order/list",{params:t}),c=t=>s.a.get("/pointsshop.order/detail",{params:t}),d=t=>s.a.post("/pointsshop.order/delivery",t)},"74c9":function(t,e,a){"use strict";a.r(e);var s=a("3f33"),o={data:()=>({table:{currentPage:1,pageSizes:[10],total:0,data:null,loading:!0}}),methods:{queryShopLists(t){Object(s.c)({page:t}).then(t=>{1==t.code?(this.table.data=t.data.data,this.table.total=t.data.total):this.$message.success(t.msg),this.table.loading=!1})},changeStatus(t,e){Object(s.h)({id:e.id,status:t}).then(t=>{this.$message.success(t.msg)})},goGoodsAdd(){this.$router.push({path:"/application/my/pointsshop/add"})},handleSizeChange(){},handleCurrentChange(t){this.queryShopLists(t)},edit(t){this.$router.push({path:"/application/my/pointsshop/edit?id="+t,query:{id:t}})},del(){}},mounted(){this.queryShopLists(1)}},n=a("2877"),i=Object(n.a)(o,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"score-shop"},[a("div",{staticClass:"ls-card m-t-24"},[a("div",{staticClass:"add-btn"},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.goGoodsAdd}},[t._v("添加商品")])],1),a("div",{staticClass:"m-t-24"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.loading,expression:"table.loading"}],staticStyle:{width:"100%"},attrs:{data:t.table.data,size:"mini"}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{sortable:"",prop:"id",label:"商品id","min-width":"70"}}),a("el-table-column",{attrs:{prop:"title",label:"商品名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-1"},[t._v(t._s(e.row.name))])]}}])}),a("el-table-column",{attrs:{prop:"icon",label:"商品图片"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("el-image",{staticStyle:{width:"50px",height:"50px"},attrs:{src:t.row.image,fit:"cover"}})]}}])}),a("el-table-column",{attrs:{prop:"synopsis",label:"所需积分"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-1"},[t._v(t._s(e.row.points_price))])]}}])}),a("el-table-column",{attrs:{prop:"cate_id",label:"库存数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-1"},[t._v(t._s(e.row.stock))])]}}])}),a("el-table-column",{attrs:{prop:"cate_id",label:"每人限购数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-1"},[t._v(t._s(e.row.limit_per_user))])]}}])}),a("el-table-column",{attrs:{prop:"status",label:"状态(上架/下架)"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":t.styleConfig.primary,"inactive-color":"#f4f4f5"},on:{change:function(a){return t.changeStatus(a,e.row)}},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scope.row.status"}})]}}])}),a("el-table-column",{attrs:{label:"操作",width:"260"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.edit(e.row.id)}}},[t._v("编辑")])]}}])})],1),a("div",{staticClass:"flex row-right m-t-16 row-right"},[a("el-pagination",{attrs:{"current-page":t.table.currentPage,"page-sizes":t.table.pageSizes,"page-size":10,layout:"total, sizes, prev, pager, next, jumper",total:t.table.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)])])}),[],!1,null,"512226a4",null);e.default=i.exports}}]);