chunk-3f026a34.cce018c4.js 14 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3f026a34"],{"0ea7":function(t,e,s){},"0fa2":function(t,e,s){t.exports=s.p+"img/ad_login_img.25b546f4.png"},"14c6":function(t,e,s){"use strict";s.d(e,"p",(function(){return o})),s.d(e,"z",(function(){return i})),s.d(e,"A",(function(){return n})),s.d(e,"w",(function(){return l})),s.d(e,"E",(function(){return r})),s.d(e,"x",(function(){return d})),s.d(e,"F",(function(){return c})),s.d(e,"D",(function(){return u})),s.d(e,"y",(function(){return p})),s.d(e,"B",(function(){return g})),s.d(e,"C",(function(){return f})),s.d(e,"c",(function(){return m})),s.d(e,"g",(function(){return h})),s.d(e,"h",(function(){return b})),s.d(e,"d",(function(){return v})),s.d(e,"e",(function(){return _})),s.d(e,"f",(function(){return y})),s.d(e,"H",(function(){return x})),s.d(e,"K",(function(){return w})),s.d(e,"I",(function(){return k})),s.d(e,"J",(function(){return D})),s.d(e,"G",(function(){return C})),s.d(e,"O",(function(){return O})),s.d(e,"L",(function(){return S})),s.d(e,"M",(function(){return j})),s.d(e,"N",(function(){return L})),s.d(e,"i",(function(){return G})),s.d(e,"n",(function(){return N})),s.d(e,"j",(function(){return $})),s.d(e,"o",(function(){return I})),s.d(e,"k",(function(){return T})),s.d(e,"m",(function(){return z})),s.d(e,"l",(function(){return A})),s.d(e,"P",(function(){return J})),s.d(e,"S",(function(){return P})),s.d(e,"Q",(function(){return E})),s.d(e,"R",(function(){return F})),s.d(e,"t",(function(){return V})),s.d(e,"s",(function(){return q})),s.d(e,"u",(function(){return M})),s.d(e,"v",(function(){return U})),s.d(e,"r",(function(){return B})),s.d(e,"q",(function(){return H})),s.d(e,"T",(function(){return K})),s.d(e,"U",(function(){return Q})),s.d(e,"V",(function(){return R})),s.d(e,"W",(function(){return W})),s.d(e,"a",(function(){return X})),s.d(e,"b",(function(){return Y})),s.d(e,"Y",(function(){return Z})),s.d(e,"X",(function(){return tt}));var a=s("f175");const o=t=>a.a.post("/goods.goods/add",t),i=t=>a.a.post("/goods.goods/edit",t),n=t=>a.a.get("/goods.goods/lists",{params:t}),l=t=>a.a.get("/goods.goods/commonLists",{params:t}),r=t=>a.a.post("/goods.goods/status",t),d=t=>a.a.post("/goods.goods/del",t),c=t=>a.a.post("/goods.goods/changeCategory",t),u=t=>a.a.post("/goods.goods/sort",t),p=t=>a.a.get("/goods.goods/detail",{params:{id:t}}),g=t=>a.a.get("/goods.goods/otherList",{params:t}),f=t=>a.a.post("goods.goods/rename ",t),m=t=>a.a.post("/goods.goods_brand/add",t),h=t=>a.a.get("/goods.goods_brand/lists",{params:t}),b=t=>a.a.post("/goods.goods_brand/status",t),v=t=>a.a.post("/goods.goods_brand/del",t),_=t=>a.a.get("/goods.goods_brand/detail",{params:{id:t}}),y=t=>a.a.post("/goods.goods_brand/edit",t),x=t=>a.a.post("/goods.goods_supplier_category/add",t),w=t=>a.a.get("goods.goods_supplier_category/lists",{params:t}),k=t=>a.a.post("goods.goods_supplier_category/del",{id:t}),D=t=>a.a.post("goods.goods_supplier_category/edit",t),C=t=>a.a.post("/goods.goods_supplier/add",t),O=t=>a.a.get("/goods.goods_supplier/lists",{params:t}),S=t=>a.a.post("goods.goods_supplier/del",{id:t}),j=t=>a.a.get("/goods.goods_supplier/detail",{params:{id:t}}),L=t=>a.a.post("/goods.goods_supplier/edit",t),G=t=>a.a.post("/goods.goods_category/add",t),N=t=>a.a.get("/goods.goods_category/lists",{params:t}),$=t=>a.a.get("/goods.goods_category/commonLists",{params:t}),I=t=>a.a.post("/goods.goods_category/status",t),T=t=>a.a.post("goods.goods_category/del",{id:t}),z=t=>a.a.post("/goods.goods_category/edit",t),A=t=>a.a.get("/goods.goods_category/detail",{params:{id:t}}),J=t=>a.a.post("/goods.goods_unit/add",t),P=t=>a.a.get("/goods.goods_unit/lists",{params:t}),E=t=>a.a.post("goods.goods_unit/del",{id:t}),F=t=>a.a.post("/goods.goods_unit/edit",t),V=t=>a.a.get("goods.goods_comment/lists",{params:t}),q=t=>a.a.post("goods.goods_comment/del",t),M=t=>a.a.post("goods.goods_comment/reply",t),U=t=>a.a.post("/goods.goods_comment/status",t),B=t=>a.a.get("goods.goods_comment_assistant/lists",{params:t}),H=t=>a.a.post("goods.goods_comment_assistant/add",t),K=t=>a.a.get("goods.goodsServiceGuarantee/lists",t),Q=t=>a.a.post("goods.goodsServiceGuarantee/add",t),R=t=>a.a.post("goods.goodsServiceGuarantee/delete",t),W=t=>a.a.post("goods.goodsServiceGuarantee/edit",t),X=()=>a.a.get("goods.GoodsDeliveryTemplate/lists"),Y=t=>a.a.post("goods.GoodsDeliveryTemplate/add",t),Z=t=>a.a.post("goods.GoodsDeliveryTemplate/edit",t),tt=t=>a.a.post("goods.GoodsDeliveryTemplate/delete",t)},"2de0":function(t,e,s){t.exports=s.p+"img/ad_seckill_img.5d41e2b3.png"},4814:function(t,e,s){"use strict";s("0ea7")},"6e4d":function(t,e,s){t.exports=s.p+"img/ad_notice_img.7827780f.png"},7764:function(t,e,s){"use strict";s.r(e);var a=s("9ab4"),o=s("db85"),i=s("1b40"),n=s("2b1d"),l=s("b3ad");let r=class extends i.e{constructor(){super(...arguments),this.activeName="2",this.loading=!0,this.tabs=[{type:2,label:"登录",title:"登录页背景图",desc:"建议尺寸:750*440",bg:s("0fa2"),css:{left:"148px",top:"83px",width:"315px",height:"192px"}},{type:3,label:"限时秒杀",title:"限时秒杀广告",desc:"建议尺寸:1180*240",bg:s("2de0"),css:{left:"153px",top:"76px",width:"493px",height:"101px"}},{type:4,label:"领券中心",title:"领券中心广告",desc:"建议尺寸:1180*240",bg:s("9ed1"),css:{left:"153px",top:"76px",width:"493px",height:"101px"}},{type:5,label:"商城公告",title:"商城公告广告",desc:"建议尺寸:1180*240",bg:s("6e4d"),css:{left:"153px",top:"76px",width:"493px",height:"101px"}}],this.page={content:{url:"",link:{},name:""}},this.client=1}getData(){this.loading=!0,this.page={content:{url:"",link:{},name:""}},Object(o.i)({type:Number(this.activeName)}).then(t=>{this.page=t,this.loading=!1})}handleTabClick(){this.getData()}setData(){Object(o.j)({...this.page,content:JSON.stringify(this.page.content)}).then(t=>{this.loading=!1})}created(){this.getData()}};r=Object(a.a)([Object(i.a)({components:{MaterialSelect:l.a,LinkSelect:n.a}})],r);var d=r,c=(s("4814"),s("2877")),u=Object(c.a)(d,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"shop-index"},[e("div",{staticClass:"ls-card",staticStyle:{"padding-top":"0"}},[e("el-tabs",{on:{"tab-click":t.handleTabClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},t._l(t.tabs,(function(s,a){return e("el-tab-pane",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],key:a,attrs:{label:s.label,name:String(s.type)}},[e("el-form",{ref:"form",refInFor:!0,attrs:{"label-width":"80px",size:"small","label-position":"left"}},[e("div",{staticClass:"flex col-top flex-wrap"},[e("div",{staticClass:"preview m-r-30 m-t-20"},[e("img",{attrs:{src:s.bg,alt:""}}),e("el-image",{staticClass:"banner",style:s.css,attrs:{src:t.$getImageUri(t.page.content.url),alt:"",fit:"cover"}})],1),e("div",{staticClass:"setting m-t-20 flex-1"},[e("div",{staticClass:"title"},[e("span",{staticClass:"lg weight-500"},[t._v(t._s(s.title))]),e("span",{staticClass:"muted m-l-10"},[t._v(t._s(s.desc))])]),e("el-form-item",{attrs:{"label-width":"0"}},[e("div",{staticClass:"flex m-t-20"},[e("material-select",{ref:"materialSelect",refInFor:!0,staticClass:"m-r-10",attrs:{size:96,"upload-bg":"#fff","enable-domain":!1},model:{value:t.page.content.url,callback:function(e){t.$set(t.page.content,"url",e)},expression:"page.content.url"}},[e("i",{staticClass:"el-icon-plus lg"})]),e("div",[e("el-form-item",{attrs:{label:"广告名称"}},[e("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入广告名称"},model:{value:t.page.content.name,callback:function(e){t.$set(t.page.content,"name",e)},expression:"page.content.name"}})],1),e("el-form-item",{attrs:{label:"链接地址"}},[e("link-select",{attrs:{client:"pc"},model:{value:t.page.content.link,callback:function(e){t.$set(t.page.content,"link",e)},expression:"page.content.link"}})],1)],1)],1)]),e("el-form-item",{attrs:{"label-width":"0"}},[e("el-button",{attrs:{type:"primary"},on:{click:t.setData}},[t._v("保存")])],1)],1)])])],1)})),1)],1)])}),[],!1,null,"29a74519",null);e.default=u.exports},"9ed1":function(t,e,s){t.exports=s.p+"img/ad_coupon_img.0c4375f0.png"},dcb0:function(t,e,s){"use strict";s("14d9"),s("e9f5"),s("d866"),s("7d54"),s("ab43"),s("a732");var a=s("9ab4"),o=s("1b40"),i=s("3c50"),n=s("6ddb"),l=s("14c6");let r=class extends o.e{constructor(){super(...arguments),this.searchData={name:"",is_distribution:"",is_discount:""},this.pager=new n.a,this.selectedObj={}}visibleChange(t){t.val&&this.getList()}get selectData(){return this.value}set selectData(t){this.$emit("input",t)}get selectItem(){return t=>"single"==this.type?this.selectData.id==t.id:this.selectData.some(e=>e.id==t.id)}get selectAll(){const{pager:{lists:t}}=this,e=this.selectData.map(t=>t.id);return!!t.length&&t.every(t=>e.includes(t.id))}set selectAll(t){const{pager:{lists:e}}=this;if(t)for(let t=0;t<e.length;t++){const s=e[t];if(!this.selectData.map(t=>t.id).includes(s.id)){if(this.checkLength())return;this.selectData.push(s)}}else e.forEach(t=>{this.setSelectData(t)})}getList(t){let e=void 0;this.showVirtualGoods&&(e=0),t&&(this.pager.page=t),this.pager.request({callback:l.w,params:{...this.searchData,is_spec:this.isSpec,...this.params,type:e}}).then(t=>{})}handleSelect(t,e){if("single"==this.type)this.selectData=t?e:{};else if(t){if(this.checkLength())return;this.selectData.push(e)}else this.setSelectData(e)}setSelectData(t){const e=this.selectData.findIndex(e=>e.id==t.id);-1!=e&&this.selectData.splice(e,1)}checkLength(){return this.selectData.length>=this.limit&&(this.$message({message:`最多选择${this.limit}件商品`,type:"warning"}),!0)}};Object(a.a)([Object(o.b)("visible")],r.prototype,"visible",void 0),Object(a.a)([Object(o.c)()],r.prototype,"value",void 0),Object(a.a)([Object(o.c)()],r.prototype,"goods",void 0),Object(a.a)([Object(o.c)({default:"single"})],r.prototype,"type",void 0),Object(a.a)([Object(o.c)()],r.prototype,"limit",void 0),Object(a.a)([Object(o.c)({default:!1})],r.prototype,"isSpec",void 0),Object(a.a)([Object(o.c)({default:()=>{}})],r.prototype,"params",void 0),Object(a.a)([Object(o.c)({default:!1})],r.prototype,"showVirtualGoods",void 0),Object(a.a)([Object(o.f)("visible",{deep:!0,immediate:!0})],r.prototype,"visibleChange",null),r=Object(a.a)([Object(o.a)({components:{LsPagination:i.a}})],r);var d=r,c=s("2877"),u=Object(c.a)(d,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.pager.loading,expression:"pager.loading"}],staticClass:"detail"},[e("div",{staticClass:"flex row m-b-10"},[e("div",{staticClass:"flex"},[e("div",{staticClass:"m-r-10"},[t._v("商品搜索")]),e("el-input",{staticStyle:{width:"180px"},attrs:{size:"small",placeholder:"请输入商品名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.searchData.name,callback:function(e){t.$set(t.searchData,"name",e)},expression:"searchData.name"}}),e("div",{staticClass:"m-l-10"},[t._v("参与分销")]),e("el-select",{staticClass:"m-l-10",staticStyle:{width:"180px"},model:{value:t.searchData.is_distribution,callback:function(e){t.$set(t.searchData,"is_distribution",e)},expression:"searchData.is_distribution"}},[e("el-option",{attrs:{label:"全部",value:""}}),e("el-option",{attrs:{label:"参与",value:1}}),e("el-option",{attrs:{label:"不参与",value:0}})],1),e("div",{staticClass:"m-l-10"},[t._v("会员折扣")]),e("el-select",{staticClass:"m-l-10",staticStyle:{width:"180px"},model:{value:t.searchData.is_discount,callback:function(e){t.$set(t.searchData,"is_discount",e)},expression:"searchData.is_discount"}},[e("el-option",{attrs:{label:"全部",value:""}}),e("el-option",{attrs:{label:"参与",value:1}}),e("el-option",{attrs:{label:"不参与",value:0}})],1),e("div",{staticClass:"m-l-10"},[e("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}}})],1)],1)]),e("div",{staticClass:"m-b-10"},["multiple"==t.type?e("el-checkbox",{model:{value:t.selectAll,callback:function(e){t.selectAll=e},expression:"selectAll"}},[t._v("全选")]):t._e()],1),e("el-table",{staticStyle:{width:"100%"},attrs:{ef:"table",data:t.pager.lists,height:"370px",size:"mini","row-key":"id"}},["single"==t.type?e("el-table-column",{attrs:{width:"45"},scopedSlots:t._u([{key:"default",fn:function({row:s}){return[e("el-checkbox",{attrs:{value:t.selectItem(s)},on:{change:function(e){return t.handleSelect(e,s)}}})]}}],null,!1,3310675202)}):t._e(),"multiple"==t.type?e("el-table-column",{attrs:{width:"45"},scopedSlots:t._u([{key:"default",fn:function({row:s}){return[e("el-checkbox",{attrs:{value:t.selectItem(s)},on:{change:function(e){return t.handleSelect(e,s)}}})]}}],null,!1,3310675202)}):t._e(),e("el-table-column",{attrs:{label:"商品信息","min-width":"180"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("div",{staticClass:"flex"},[e("el-image",{staticClass:"flex-none",staticStyle:{width:"48px",height:"48px"},attrs:{src:s.row.image,fit:"cover"}}),e("div",{staticClass:"goods-info m-l-8"},[e("div",{staticClass:"line-2"},[t._v(t._s(s.row.name))]),e("div",[2==s.row.spec_type?e("el-tag",{attrs:{size:"mini"}},[t._v("多规格")]):t._e()],1)])],1)]}}])}),e("el-table-column",{attrs:{prop:"price",label:"价格",width:"120"}}),e("el-table-column",{attrs:{prop:"total_stock",label:"库存",width:"120"}}),e("el-table-column",{attrs:{prop:"is_distribution",label:"参与分销",width:"120"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("div",[t._v(t._s(s.row.is_distribution?"参与":"不参与"))])]}}])}),e("el-table-column",{attrs:{prop:"is_discount",label:"会员折扣",width:"120"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("div",[t._v(t._s(s.row.is_discount?"参与":"不参与"))])]}}])})],1),e("div",{staticClass:"flex row-right m-t-20"},[e("ls-pagination",{on:{change:function(e){return t.getList()}},model:{value:t.pager,callback:function(e){t.pager=e},expression:"pager"}})],1)],1)}),[],!1,null,"47d0e261",null);e.a=u.exports}}]);