(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-716672f4"],{"3f33":function(t,e,s){"use strict";s.d(e,"a",(function(){return o})),s.d(e,"b",(function(){return n})),s.d(e,"g",(function(){return i})),s.d(e,"c",(function(){return r})),s.d(e,"h",(function(){return l})),s.d(e,"f",(function(){return c})),s.d(e,"e",(function(){return u})),s.d(e,"d",(function(){return d}));var a=s("6b2d");const o=t=>a.a.post("/pointsshop.points_goods/add",t),n=t=>a.a.get("/pointsshop.points_goods/detail",{params:t}),i=t=>a.a.post("/pointsshop.points_goods/update",t),r=t=>a.a.get("/pointsshop.points_goods/list",{params:t}),l=t=>a.a.post("/pointsshop.points_goods/status",t),c=t=>a.a.get("/pointsshop.order/list",{params:t}),u=t=>a.a.get("/pointsshop.order/detail",{params:t}),d=t=>a.a.post("/pointsshop.order/delivery",t)},"6b2d":function(t,e,s){"use strict";var a=s("0613"),o=s("bc3a"),n=s.n(o),i=s("d70b"),r=s("afbc"),l=s("5c96"),c=s("6ddb");const u={baseURL:i.a.baseURL+"/adminapi",headers:{"content-type":"application/json"}},d=(Object(c.g)(()=>(a.a.commit("setToken",""),a.a.commit("setUserInfo",{}),a.a.commit("setPermission",{}),r.b.push("/account/login"),Promise.reject())),n.a.create(u));d.interceptors.request.use(t=>{const e=a.a.getters.token;return e&&(t.headers.token=e),t.headers.version=i.a.version,t},t=>Promise.reject(t)),d.interceptors.response.use(t=>t.data,t=>(Object(l.Message)({type:"error",message:"系统错误，请稍候再试"}),Promise.reject(t))),e.a=d},"74c9":function(t,e,s){"use strict";s.r(e);var a=s("3f33"),o={data:()=>({table:{currentPage:1,pageSizes:[10],total:0,data:null,loading:!0}}),methods:{queryShopLists(t){Object(a.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(a.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=s("2877"),i=Object(n.a)(o,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"score-shop"},[s("div",{staticClass:"ls-card m-t-24"},[s("div",{staticClass:"add-btn"},[s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.goGoodsAdd}},[t._v("添加商品")])],1),s("div",{staticClass:"m-t-24"},[s("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"}},[s("el-table-column",{attrs:{type:"selection",width:"55"}}),s("el-table-column",{attrs:{sortable:"",prop:"id",label:"商品id","min-width":"70"}}),s("el-table-column",{attrs:{prop:"title",label:"商品名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{staticClass:"line-1"},[t._v(t._s(e.row.name))])]}}])}),s("el-table-column",{attrs:{prop:"icon",label:"商品图片"},scopedSlots:t._u([{key:"default",fn:function(t){return[s("el-image",{staticStyle:{width:"50px",height:"50px"},attrs:{src:t.row.image,fit:"cover"}})]}}])}),s("el-table-column",{attrs:{prop:"synopsis",label:"所需积分"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{staticClass:"line-1"},[t._v(t._s(e.row.points_price))])]}}])}),s("el-table-column",{attrs:{prop:"cate_id",label:"库存数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{staticClass:"line-1"},[t._v(t._s(e.row.stock))])]}}])}),s("el-table-column",{attrs:{prop:"cate_id",label:"每人限购数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{staticClass:"line-1"},[t._v(t._s(e.row.limit_per_user))])]}}])}),s("el-table-column",{attrs:{prop:"status",label:"状态(上架/下架)"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":t.styleConfig.primary,"inactive-color":"#f4f4f5"},on:{change:function(s){return t.changeStatus(s,e.row)}},model:{value:e.row.status,callback:function(s){t.$set(e.row,"status",s)},expression:"scope.row.status"}})]}}])}),s("el-table-column",{attrs:{label:"操作",width:"260"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("el-button",{attrs:{type:"text"},on:{click:function(s){return t.edit(e.row.id)}}},[t._v("编辑")])]}}])})],1),s("div",{staticClass:"flex row-right m-t-16 row-right"},[s("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}}]);