| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-33a98f06"],{"04d0":function(t,e,a){},"055f":function(t,e,a){},"0ea7":function(t,e,a){},"0fa2":function(t,e,a){t.exports=a.p+"img/ad_login_img.25b546f4.png"},"131b":function(t,e,a){"use strict";a.d(e,"g",(function(){return i})),a.d(e,"b",(function(){return l})),a.d(e,"e",(function(){return n})),a.d(e,"i",(function(){return o})),a.d(e,"d",(function(){return r})),a.d(e,"c",(function(){return c})),a.d(e,"a",(function(){return d})),a.d(e,"f",(function(){return p})),a.d(e,"h",(function(){return u}));var s=a("f175");const i=t=>s.a.get("/lucky_draw.lucky_draw/lists",{params:t}),l=t=>s.a.post("/lucky_draw.lucky_draw/delete",t),n=t=>s.a.post("/lucky_draw.lucky_draw/end",t),o=t=>s.a.post("/lucky_draw.lucky_draw/start",t),r=t=>s.a.post("lucky_draw.lucky_draw/edit",t),c=t=>s.a.get("/lucky_draw.lucky_draw/detail",{params:t}),d=t=>s.a.post("lucky_draw.lucky_draw/add",t),p=()=>s.a.get("lucky_draw.lucky_draw/getPrizeType"),u=t=>s.a.get("lucky_draw.lucky_draw/record",{params:t})},"14c6":function(t,e,a){"use strict";a.d(e,"p",(function(){return i})),a.d(e,"z",(function(){return l})),a.d(e,"A",(function(){return n})),a.d(e,"w",(function(){return o})),a.d(e,"E",(function(){return r})),a.d(e,"x",(function(){return c})),a.d(e,"F",(function(){return d})),a.d(e,"D",(function(){return p})),a.d(e,"y",(function(){return u})),a.d(e,"B",(function(){return g})),a.d(e,"C",(function(){return m})),a.d(e,"c",(function(){return h})),a.d(e,"g",(function(){return f})),a.d(e,"h",(function(){return b})),a.d(e,"d",(function(){return v})),a.d(e,"e",(function(){return y})),a.d(e,"f",(function(){return k})),a.d(e,"H",(function(){return _})),a.d(e,"K",(function(){return w})),a.d(e,"I",(function(){return x})),a.d(e,"J",(function(){return O})),a.d(e,"G",(function(){return j})),a.d(e,"O",(function(){return C})),a.d(e,"L",(function(){return L})),a.d(e,"M",(function(){return S})),a.d(e,"N",(function(){return D})),a.d(e,"i",(function(){return $})),a.d(e,"n",(function(){return T})),a.d(e,"j",(function(){return N})),a.d(e,"o",(function(){return z})),a.d(e,"k",(function(){return P})),a.d(e,"m",(function(){return G})),a.d(e,"l",(function(){return I})),a.d(e,"P",(function(){return A})),a.d(e,"S",(function(){return E})),a.d(e,"Q",(function(){return U})),a.d(e,"R",(function(){return q})),a.d(e,"t",(function(){return J})),a.d(e,"s",(function(){return M})),a.d(e,"u",(function(){return F})),a.d(e,"v",(function(){return B})),a.d(e,"r",(function(){return V})),a.d(e,"q",(function(){return H})),a.d(e,"T",(function(){return K})),a.d(e,"U",(function(){return Q})),a.d(e,"V",(function(){return R})),a.d(e,"W",(function(){return W})),a.d(e,"a",(function(){return X})),a.d(e,"b",(function(){return Y})),a.d(e,"Y",(function(){return Z})),a.d(e,"X",(function(){return tt}));var s=a("f175");const i=t=>s.a.post("/goods.goods/add",t),l=t=>s.a.post("/goods.goods/edit",t),n=t=>s.a.get("/goods.goods/lists",{params:t}),o=t=>s.a.get("/goods.goods/commonLists",{params:t}),r=t=>s.a.post("/goods.goods/status",t),c=t=>s.a.post("/goods.goods/del",t),d=t=>s.a.post("/goods.goods/changeCategory",t),p=t=>s.a.post("/goods.goods/sort",t),u=t=>s.a.get("/goods.goods/detail",{params:{id:t}}),g=t=>s.a.get("/goods.goods/otherList",{params:t}),m=t=>s.a.post("goods.goods/rename ",t),h=t=>s.a.post("/goods.goods_brand/add",t),f=t=>s.a.get("/goods.goods_brand/lists",{params:t}),b=t=>s.a.post("/goods.goods_brand/status",t),v=t=>s.a.post("/goods.goods_brand/del",t),y=t=>s.a.get("/goods.goods_brand/detail",{params:{id:t}}),k=t=>s.a.post("/goods.goods_brand/edit",t),_=t=>s.a.post("/goods.goods_supplier_category/add",t),w=t=>s.a.get("goods.goods_supplier_category/lists",{params:t}),x=t=>s.a.post("goods.goods_supplier_category/del",{id:t}),O=t=>s.a.post("goods.goods_supplier_category/edit",t),j=t=>s.a.post("/goods.goods_supplier/add",t),C=t=>s.a.get("/goods.goods_supplier/lists",{params:t}),L=t=>s.a.post("goods.goods_supplier/del",{id:t}),S=t=>s.a.get("/goods.goods_supplier/detail",{params:{id:t}}),D=t=>s.a.post("/goods.goods_supplier/edit",t),$=t=>s.a.post("/goods.goods_category/add",t),T=t=>s.a.get("/goods.goods_category/lists",{params:t}),N=t=>s.a.get("/goods.goods_category/commonLists",{params:t}),z=t=>s.a.post("/goods.goods_category/status",t),P=t=>s.a.post("goods.goods_category/del",{id:t}),G=t=>s.a.post("/goods.goods_category/edit",t),I=t=>s.a.get("/goods.goods_category/detail",{params:{id:t}}),A=t=>s.a.post("/goods.goods_unit/add",t),E=t=>s.a.get("/goods.goods_unit/lists",{params:t}),U=t=>s.a.post("goods.goods_unit/del",{id:t}),q=t=>s.a.post("/goods.goods_unit/edit",t),J=t=>s.a.get("goods.goods_comment/lists",{params:t}),M=t=>s.a.post("goods.goods_comment/del",t),F=t=>s.a.post("goods.goods_comment/reply",t),B=t=>s.a.post("/goods.goods_comment/status",t),V=t=>s.a.get("goods.goods_comment_assistant/lists",{params:t}),H=t=>s.a.post("goods.goods_comment_assistant/add",t),K=t=>s.a.get("goods.goodsServiceGuarantee/lists",t),Q=t=>s.a.post("goods.goodsServiceGuarantee/add",t),R=t=>s.a.post("goods.goodsServiceGuarantee/delete",t),W=t=>s.a.post("goods.goodsServiceGuarantee/edit",t),X=()=>s.a.get("goods.GoodsDeliveryTemplate/lists"),Y=t=>s.a.post("goods.GoodsDeliveryTemplate/add",t),Z=t=>s.a.post("goods.GoodsDeliveryTemplate/edit",t),tt=t=>s.a.post("goods.GoodsDeliveryTemplate/delete",t)},"24d7":function(t,e,a){"use strict";a("db8b")},"2b1d":function(t,e,a){"use strict";var s=a("9ab4"),i=a("1b40"),l=a("0a6d"),n=(a("14d9"),a("e9f5"),a("f665"),a("7d54"),a("dcb0")),o=a("a92d"),r=a("b6c4");let c=class extends i.e{constructor(){super(...arguments),this.linkList=[]}get link(){return this.value}set link(t){this.$emit("input",t)}getLists(){("mobile"==this.client?Object(r.d)({type:this.type}):Object(r.g)({type:this.type})).then(t=>{this.linkList=t})}created(){this.getLists()}};Object(s.a)([Object(i.c)()],c.prototype,"value",void 0),Object(s.a)([Object(i.c)()],c.prototype,"type",void 0),Object(s.a)([Object(i.c)({default:"mobile"})],c.prototype,"client",void 0),c=Object(s.a)([Object(i.a)({components:{}})],c);var d=c,p=(a("ba96"),a("2877")),u=Object(p.a)(d,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"shop"},[e("div",{staticClass:"link-list flex flex-wrap"},t._l(t.linkList,(function(a,s){return e("div",{key:s,staticClass:"link-item",class:{active:t.link.path==a.path},on:{click:function(e){t.link=a}}},[t._v(" "+t._s(a.name)+" ")])})),0)])}),[],!1,null,"662f455f",null).exports,g=a("14c6");let m=class extends i.e{constructor(){super(...arguments),this.lists=[]}get params(){return this.value}getLists(){Object(g.n)({pager_type:1}).then(t=>{this.lists=null==t?void 0:t.lists})}onSelect(){const t=this.$refs.cascader.getCheckedNodes();this.$emit("input",t[0].data)}created(){this.getLists()}};Object(s.a)([Object(i.c)()],m.prototype,"value",void 0),m=Object(s.a)([Object(i.a)({components:{}})],m);var h=m,f=Object(p.a)(h,(function(){var t=this._self._c;this._self._setupProxy;return t("div",{staticClass:"category flex"},[t("div",{staticClass:"m-r-20"},[this._v("选择分类")]),t("el-cascader",{ref:"cascader",attrs:{value:this.params.id,options:this.lists,props:{checkStrictly:!0,label:"name",value:"id",children:"sons",emitPath:!1},clearable:"",filterable:"",size:"small"},on:{change:this.onSelect}})],1)}),[],!1,null,"3870515c",null).exports,b=a("3c50"),v=a("6ddb"),y=a("db85");let k=class extends i.e{constructor(){super(...arguments),this.name="",this.pager=new v.a}get selectData(){return this.value}set selectData(t){this.$emit("input",t)}getList(t){t&&(this.pager.page=t),this.pager.request({callback:y.p,params:{type:1,name:this.name}}).then(t=>{})}onSelect(t,e){this.selectData=t?e:{}}created(){this.getList()}};Object(s.a)([Object(i.c)()],k.prototype,"value",void 0),k=Object(s.a)([Object(i.a)({components:{LsPagination:b.a}})],k);var _=k,w=Object(p.a)(_,(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 m-b-20"},[e("div",{staticClass:"m-r-10"},[t._v("页面搜索")]),e("el-input",{staticStyle:{width:"220px"},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.name,callback:function(e){t.name=e},expression:"name"}},[e("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1),e("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{data:t.pager.lists,height:"370px",size:"mini"}},[e("el-table-column",{attrs:{width:"45"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-checkbox",{attrs:{value:t.selectData.id==a.row.id},on:{change:function(e){return t.onSelect(e,a.row)}}})]}}])}),e("el-table-column",{attrs:{prop:"name",label:"页面名称"}}),e("el-table-column",{attrs:{prop:"create_time",label:"创建时间"}})],1),e("div",{staticClass:"flex row-right m-t-10"},[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,"41b84f60",null).exports;let x=class extends i.e{get params(){return this.value}set params(t){this.$emit("input",t)}};Object(s.a)([Object(i.c)()],x.prototype,"value",void 0),x=Object(s.a)([Object(i.a)({components:{}})],x);var O=x,j=Object(p.a)(O,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"custom"},[e("el-form",{attrs:{size:"small","label-width":"100px"}},[e("el-form-item",{attrs:{label:"跳转链接",required:""}},[e("el-input",{staticStyle:{width:"280px"},attrs:{placeholder:"请输入跳转链接"},model:{value:t.params,callback:function(e){t.params=e},expression:"params"}})],1),e("el-form-item",{attrs:{label:""}},[e("div",{staticClass:"muted",staticStyle:{"line-height":"1.3"}},[t._v(" 请填写完整的带有“https://”或“http://”的链接地址 "),e("br"),t._v(" 小程序中跳转,链接的域名必须在微信公众平台设置业务域名 ")])])],1)],1)}),[],!1,null,"e2dcbba4",null).exports,C=a("131b");let L=class extends i.e{constructor(){super(...arguments),this.name="",this.pager=new v.a}get selectData(){return this.value}set selectData(t){this.$emit("input",t)}getList(t){t&&(this.pager.page=t),this.pager.request({callback:C.g,params:{name:this.name}}).then(t=>{})}onSelect(t,e){this.selectData=t?e:{}}created(){this.getList()}};Object(s.a)([Object(i.c)()],L.prototype,"value",void 0),L=Object(s.a)([Object(i.a)({components:{LsPagination:b.a}})],L);var S=L,D=Object(p.a)(S,(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 m-b-20"},[e("div",{staticClass:"m-r-10"},[t._v("活动搜索")]),e("el-input",{staticStyle:{width:"220px"},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.name,callback:function(e){t.name=e},expression:"name"}},[e("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1),e("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{data:t.pager.lists,height:"370px",size:"mini"}},[e("el-table-column",{attrs:{width:"45",label:""},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-checkbox",{attrs:{value:a.row.id==t.selectData.id},on:{change:function(e){return t.onSelect(e,a.row)}}})]}}])}),e("el-table-column",{attrs:{label:"活动名称",prop:"name"}}),e("el-table-column",{attrs:{label:"活动状态"},scopedSlots:t._u([{key:"default",fn:function(a){return[1==a.row.status?e("el-tag",{attrs:{size:"medium",type:"success"}},[t._v(t._s(a.row.status_desc))]):e("el-tag",{attrs:{size:"medium",type:"info"}},[t._v(t._s(a.row.status_desc))])]}}])}),e("el-table-column",{attrs:{label:"活动时间","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.start_time_desc)+" ~ "+t._s(e.row.end_time_desc)+" ")]}}])})],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,"57a59e98",null).exports;const $=[{name:"商城页面",key:"shop",children:[{name:"基础页面",type:"shop",link:{path:"",name:"",params:{},type:"shop"}},{name:"微页面",type:"page",link:{path:"/pages/page/page",name:"微页面",params:{},type:"page"}}]},{name:"商品",key:"goods",children:[{name:"普通商品",type:"goods",link:{path:"/pages/goods_detail/goods_detail",name:"普通商品",params:{},type:"goods"}},{name:"秒杀商品",type:"seckill",link:{path:"/bundle/pages/seckill_detail/seckill_detail",name:"秒杀商品",params:{},type:"seckill"}},{name:"拼团商品",type:"team",link:{path:"/bundle/pages/goods_team_detail/goods_team_detail",name:"拼团商品",params:{},type:"team"}},{name:"预售商品",type:"presell",link:{path:"/bundle/pages/presell_detail/presell_detail",name:"预售商品",params:{},type:"presell"}},{name:"商品分类",type:"category",link:{path:"/pages/goods_search/goods_search",name:"商品分类",params:{},type:"category"}}]},{name:"营销活动",key:"marking",children:[{name:"营销活动页面",type:"marking",link:{path:"",name:"",params:{},type:"marking"}},{name:"积分抽奖",type:"draw",link:{path:"/bundle/pages/luck_draw/luck_draw",name:"积分抽奖",params:{},type:"draw"}}]},{name:"其他",key:"other",children:[{name:"自定义链接",type:"custom",link:{path:"/pages/webview/webview",name:"自定义链接",params:{url:""},type:"custom"}}]}],T=[{name:"商城页面",key:"shop",children:[{name:"基础页面",type:"shop",link:{path:"",name:"",params:{},type:"shop"}}]},{name:"商品",key:"goods",children:[{name:"普通商品",type:"goods",link:{path:"/goods_details",name:"普通商品",params:{},type:"goods"}},{name:"秒杀商品",type:"seckill",link:{path:"/goods_details_seckill",name:"秒杀商品",params:{},type:"seckill"}},{name:"商品分类",type:"category",link:{path:"/category",name:"商品分类",params:{},type:"category"}}]},{name:"营销活动",key:"marking",children:[{name:"营销活动页面",type:"marking",link:{path:"",name:"",params:{},type:"marking"}}]},{name:"其他",key:"other",children:[{name:"自定义链接",type:"custom",link:{params:{},path:"",name:"自定义链接",type:"custom"}}]}];let N=class extends i.e{constructor(){super(...arguments),this.activeName=[],this.linkType="shop",this.lists="mobile"==this.client?Object(v.c)($):Object(v.c)(T)}get link(){var t;let e={};return this.lists.forEach(t=>{const a=t.children.find(t=>t.type==this.linkType);a&&(e=a)}),null===(t=e)||void 0===t?void 0:t.link}set link(t){this.lists.forEach(e=>{e.children.forEach(a=>{a.type==this.linkType&&(t&&(a.link=t),this.activeName.includes(e.key)||this.activeName.push(e.key))})})}valueChange(t){t&&(this.linkType=t.type||"shop",this.link=t)}linkChange(t){this.$emit("input",t)}setLinkParams(t){if(!t.id)return this.link.params={};this.link&&(this.link={...this.link,params:{id:"presell"==this.linkType?t.goods_id:t.id,name:t.name}})}};Object(s.a)([Object(i.c)()],N.prototype,"value",void 0),Object(s.a)([Object(i.c)({default:"mobile"})],N.prototype,"client",void 0),Object(s.a)([Object(i.f)("value",{immediate:!0})],N.prototype,"valueChange",null),Object(s.a)([Object(i.f)("link",{deep:!0})],N.prototype,"linkChange",null),N=Object(s.a)([Object(i.a)({components:{Goods:n.a,Activity:o.a,Shop:u,Category:f,Page:w,Custom:j,Draw:D}})],N);var z=N,P=(a("f8e8"),Object(p.a)(z,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"detail"},[e("div",{staticClass:"content flex"},[e("div",{staticClass:"left m-r-10"},[e("el-scrollbar",{staticClass:"ls-scrollbar",staticStyle:{height:"100%"}},[e("el-collapse",{staticClass:"p-t-20",model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},t._l(t.lists,(function(a,s){return e("el-collapse-item",{key:s,attrs:{title:a.name,name:a.key}},[e("div",{staticClass:"nav-list"},t._l(a.children,(function(a,s){return e("div",{key:s,staticClass:"nav-item",class:{active:t.linkType==a.type},on:{click:function(e){t.linkType=a.type}}},[e("div",[t._v(t._s(a.name))])])})),0)])})),1)],1)],1),e("div",{staticClass:"right flex-1"},[e("div",{staticClass:"right-content"},["shop"==t.linkType||"marking"==t.linkType?e("shop",{key:t.linkType,attrs:{type:t.linkType,client:t.client},model:{value:t.link,callback:function(e){t.link=e},expression:"link"}}):t._e(),"goods"==t.linkType?e("goods",{attrs:{value:t.link.params,"show-virtual-goods":!0},on:{input:t.setLinkParams}}):t._e(),"seckill"==t.linkType||"team"==t.linkType||"bargain"==t.linkType||"presell"==t.linkType?e("activity",{key:t.linkType,attrs:{single:!0,type:t.linkType},on:{input:t.setLinkParams},model:{value:t.link.params,callback:function(e){t.$set(t.link,"params",e)},expression:"link.params"}}):t._e(),"category"==t.linkType?e("category",{attrs:{value:t.link.params},on:{input:t.setLinkParams}}):t._e(),"draw"==t.linkType?e("draw",{attrs:{value:t.link.params},on:{input:t.setLinkParams}}):t._e(),"page"==t.linkType?e("page",{attrs:{value:t.link.params},on:{input:t.setLinkParams}}):t._e(),"custom"==t.linkType&&"mobile"==t.client?e("custom",{model:{value:t.link.params.url,callback:function(e){t.$set(t.link.params,"url",e)},expression:"link.params.url"}}):t._e(),"custom"==t.linkType&&"pc"==t.client?e("custom",{model:{value:t.link.path,callback:function(e){t.$set(t.link,"path",e)},expression:"link.path"}}):t._e()],1)])])])}),[],!1,null,"864695fa",null).exports);let G=class extends i.e{constructor(){super(...arguments),this.link={}}get linkName(){const{type:t,name:e,params:a,path:s}=this.value;if(!e)return"";switch(t){case"custom":return a.url||s;default:return`${e}${a&&a.name?"("+a.name+")":""}`}}valueChange(t){this.link=JSON.parse(JSON.stringify(t))}onConfirm(){const{type:t,params:e,path:a}=this.link;switch(t){case"shop":if(!a)return void this.$message.warning("请选择商城页面");break;case"goods":if(!e.name)return void this.$message.warning("请选择商品");break;case"seckill":if(!e.name)return void this.$message.warning("请选择秒杀商品");break;case"team":if(!e.name)return void this.$message.warning("请选择拼团商品");break;case"marking":if(!a)return void this.$message.warning("请选择营销页面");break;case"draw":if(!e.name)return void this.$message.warning("请选择积分抽奖");break;case"category":if(!e.name)return void this.$message.warning("请选择分类");break;case"custom":if(!e.url&&!a)return void this.$message.warning("请输入自定义链接");break;case"page":if(!e.name)return void this.$message.warning("请选择微页面")}this.$refs.dialog.close(),this.$emit("input",this.link)}handleClear(){this.disabled||this.$emit("input",{})}};Object(s.a)([Object(i.c)({default:()=>({})})],G.prototype,"value",void 0),Object(s.a)([Object(i.c)({default:!1})],G.prototype,"disabled",void 0),Object(s.a)([Object(i.c)({default:"mobile"})],G.prototype,"client",void 0),Object(s.a)([Object(i.f)("value",{immediate:!0})],G.prototype,"valueChange",null),G=Object(s.a)([Object(i.a)({components:{LsDialog:l.a,Detail:P}})],G);var I=G,A=(a("24d7"),Object(p.a)(I,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("ls-dialog",{ref:"dialog",staticClass:"link-select",attrs:{title:"选择跳转链接",width:"1050px",top:"20vh",disabled:t.disabled,async:!0},on:{confirm:t.onConfirm}},[e("div",{staticClass:"link-select__trigger",attrs:{slot:"trigger"},slot:"trigger"},[e("el-input",{staticStyle:{width:"100%"},attrs:{value:t.linkName,placeholder:"请选择跳转链接",size:"small",readonly:"",disabled:t.disabled}},[t.linkName?e("i",{staticClass:"el-icon-close el-input__icon",attrs:{slot:"suffix"},on:{click:function(e){return e.stopPropagation(),t.handleClear.apply(null,arguments)}},slot:"suffix"}):e("i",{staticClass:"el-icon-arrow-right el-input__icon",attrs:{slot:"suffix"},slot:"suffix"})])],1),e("detail",{attrs:{client:t.client},model:{value:t.link,callback:function(e){t.link=e},expression:"link"}})],1)}),[],!1,null,"83bbe5bc",null));e.a=A.exports},"2de0":function(t,e,a){t.exports=a.p+"img/ad_seckill_img.5d41e2b3.png"},4814:function(t,e,a){"use strict";a("0ea7")},"4e40":function(t,e,a){"use strict";a("055f")},"6e4d":function(t,e,a){t.exports=a.p+"img/ad_notice_img.7827780f.png"},7764:function(t,e,a){"use strict";a.r(e);var s=a("9ab4"),i=a("db85"),l=a("1b40"),n=a("2b1d"),o=a("b3ad");let r=class extends l.e{constructor(){super(...arguments),this.activeName="2",this.loading=!0,this.tabs=[{type:2,label:"登录",title:"登录页背景图",desc:"建议尺寸:750*440",bg:a("0fa2"),css:{left:"148px",top:"83px",width:"315px",height:"192px"}},{type:3,label:"限时秒杀",title:"限时秒杀广告",desc:"建议尺寸:1180*240",bg:a("2de0"),css:{left:"153px",top:"76px",width:"493px",height:"101px"}},{type:4,label:"领券中心",title:"领券中心广告",desc:"建议尺寸:1180*240",bg:a("9ed1"),css:{left:"153px",top:"76px",width:"493px",height:"101px"}},{type:5,label:"商城公告",title:"商城公告广告",desc:"建议尺寸:1180*240",bg:a("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(i.i)({type:Number(this.activeName)}).then(t=>{this.page=t,this.loading=!1})}handleTabClick(){this.getData()}setData(){Object(i.j)({...this.page,content:JSON.stringify(this.page.content)}).then(t=>{this.loading=!1})}created(){this.getData()}};r=Object(s.a)([Object(l.a)({components:{MaterialSelect:o.a,LinkSelect:n.a}})],r);var c=r,d=(a("4814"),a("2877")),p=Object(d.a)(c,(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(a,s){return e("el-tab-pane",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],key:s,attrs:{label:a.label,name:String(a.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:a.bg,alt:""}}),e("el-image",{staticClass:"banner",style:a.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(a.title))]),e("span",{staticClass:"muted m-l-10"},[t._v(t._s(a.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=p.exports},"9ed1":function(t,e,a){t.exports=a.p+"img/ad_coupon_img.0c4375f0.png"},a92d:function(t,e,a){"use strict";var s=a("9ab4"),i=a("1b40"),l=a("3c50"),n=a("6ddb"),o=a("b99a");let r=class extends i.e{constructor(){super(...arguments),this.name="",this.goodsName="",this.activeId="",this.pager=new n.a,this.showGoods=!1,this.goodsLists=[]}get selectData(){return this.value}set selectData(t){this.$emit("input",t)}visibleChange(t){t.val?this.getList():(this.showGoods=!1,this.name="",this.goodsLists=[])}getList(t){t&&(this.pager.page=t),this.pager.request({callback:o.d,params:{keyword:this.name,type:this.type}}).then(t=>{})}getGoodsList(){Object(o.e)({keyword:this.goodsName,type:this.type,activity_id:this.activeId}).then(t=>{this.goodsLists=t})}handleCellClick(t){this.goodsName="",this.showGoods=!0,this.goodsLists=[],this.activeId=t.id,this.getGoodsList()}handleSelect(t){this.selectData=t}selectChange(t,e){this.selectData=t?e:{}}};Object(s.a)([Object(i.b)("visible")],r.prototype,"visible",void 0),Object(s.a)([Object(i.c)()],r.prototype,"value",void 0),Object(s.a)([Object(i.c)()],r.prototype,"type",void 0),Object(s.a)([Object(i.c)({default:!1})],r.prototype,"single",void 0),Object(s.a)([Object(i.f)("visible",{deep:!0,immediate:!0})],r.prototype,"visibleChange",null),r=Object(s.a)([Object(i.a)({components:{LsPagination:l.a}})],r);var c=r,d=(a("cf9b"),a("2877")),p=Object(d.a)(c,(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",staticStyle:{height:"475px"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.showGoods,expression:"!showGoods"}],staticClass:"activity-lists"},[e("div",{staticClass:"flex m-b-20"},[e("div",{staticClass:"m-r-10"},[t._v("活动搜索")]),e("el-input",{staticStyle:{width:"220px"},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.name,callback:function(e){t.name=e},expression:"name"}},[e("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1),e("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{data:t.pager.lists,height:"370px",size:"mini"},on:{"cell-click":t.handleCellClick}},[e("el-table-column",{attrs:{label:"活动名称",prop:"name"}}),e("el-table-column",{attrs:{label:"活动状态"},scopedSlots:t._u([{key:"default",fn:function(a){return[1==a.row.status?e("el-tag",{attrs:{size:"medium",type:"presell"==t.type?"success":"danger"}},[t._v(t._s(a.row.status_text))]):2==a.row.status?e("el-tag",{attrs:{size:"medium",type:"presell"==t.type?"danger":"success"}},[t._v(t._s(a.row.status_text))]):e("el-tag",{attrs:{size:"medium",type:"info"}},[t._v(t._s(a.row.status_text))])]}}])}),e("el-table-column",{attrs:{label:"商品数量",prop:"goods_num"}}),e("el-table-column",{attrs:{label:"活动时间","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.start_time)+" ~ "+t._s(e.row.end_time)+" ")]}}])})],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),e("div",{directives:[{name:"show",rawName:"v-show",value:t.showGoods,expression:"showGoods"}],staticClass:"goods-list"},[e("div",{staticClass:"flex m-b-20"},[e("el-button",{attrs:{type:"text",icon:"el-icon-arrow-left"},on:{click:function(e){t.showGoods=!1}}},[t._v("返回")]),e("div",{staticClass:"m-r-10 m-l-20"},[t._v("商品搜索")]),e("el-input",{staticStyle:{width:"220px"},attrs:{size:"small",placeholder:"请输入商品名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getGoodsList.apply(null,arguments)}},model:{value:t.goodsName,callback:function(e){t.goodsName=e},expression:"goodsName"}},[e("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:t.getGoodsList},slot:"append"})],1)],1),e("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{data:t.goodsLists,height:"420px",size:"mini"},on:{"selection-change":t.handleSelect}},[t.single?e("el-table-column",{attrs:{width:"45",label:""},scopedSlots:t._u([{key:"default",fn:function(a){return["presell"!=t.type?e("el-checkbox",{attrs:{value:a.row.id==t.value.id},on:{change:function(e){return t.selectChange(e,a.row)}}}):t._e(),"presell"==t.type?e("el-checkbox",{attrs:{value:a.row.goods_id==t.value.id},on:{change:function(e){return t.selectChange(e,a.row)}}}):t._e()]}}],null,!1,4017092039)}):e("el-table-column",{attrs:{width:"45",type:"selection"}}),e("el-table-column",{attrs:{label:"商品信息","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",{staticClass:"flex"},[e("el-image",{staticClass:"flex-none",staticStyle:{width:"58px",height:"58px"},attrs:{src:a.row.image,fit:"cover"}}),e("div",{staticClass:"goods-info m-l-8"},[e("div",{staticClass:"line-2"},[t._v(t._s(a.row.name))])])],1)]}}])}),e("el-table-column",{attrs:{label:"商品价格"},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v(" ¥"+t._s(a.row.min_activity_price)+" "),a.row.min_activity_price!=a.row.max_activity_price?e("span",[t._v(" ~ "+t._s(a.row.max_activity_price))]):t._e()]}}])}),e("el-table-column",{attrs:{label:"商品库存",prop:"total_stock"}})],1)],1)])}),[],!1,null,"6f38880e",null);e.a=p.exports},af3c:function(t,e,a){},b3ad:function(t,e,a){"use strict";a("e9f5"),a("ab43");var s=a("9ab4"),i=a("1b40"),l=a("0a6d"),n=a("c6fe"),o=a("e915"),r=a("b76a"),c=a.n(r);let d=class extends i.e{constructor(){super(...arguments),this.isAdd=!0,this.fileList=[]}get showUpload(){const{fileList:t,limit:e}=this;return e-t.length>0}get meterialLimit(){return this.isAdd?this.limit?this.limit-this.fileList.length:null:1}get tipsText(){switch(this.type){case"image":return"图片";case"video":return"视频"}}get imageUri(){return t=>this.enableDomain?t:this.$getImageUri(t)}valueChange(t){this.fileList=Array.isArray(t)?t:""==t?[]:[t]}showDialog(t=!0,e){var a;this.disabled||(this.isAdd=t,void 0!==e&&(this.currentIndex=e),null===(a=this.$refs.materialDialog)||void 0===a||a.onTrigger())}selectChange(t){this.select=t}handleConfirm(){this.$refs.material.clearSelectList();const t=this.select.map(t=>this.enableDomain?t.uri:t.url);this.isAdd?this.fileList=this.fileList.concat(t):this.fileList.splice(this.currentIndex,1,t.shift()),this.handleChange()}delImage(t){this.fileList.splice(t,1),this.handleChange()}handleChange(){const t=1!=this.limit?this.fileList:this.fileList[0]||"";this.$emit("input",t),this.$emit("change",t),this.fileList=[]}};Object(s.a)([Object(i.c)({default:()=>[]})],d.prototype,"value",void 0),Object(s.a)([Object(i.c)({default:1})],d.prototype,"limit",void 0),Object(s.a)([Object(i.c)({default:"100"})],d.prototype,"size",void 0),Object(s.a)([Object(i.c)({default:!1})],d.prototype,"disabled",void 0),Object(s.a)([Object(i.c)({default:!1})],d.prototype,"dragDisabled",void 0),Object(s.a)([Object(i.c)({default:!1})],d.prototype,"hiddenTrigger",void 0),Object(s.a)([Object(i.c)({default:"image"})],d.prototype,"type",void 0),Object(s.a)([Object(i.c)({default:"transparent"})],d.prototype,"uploadBg",void 0),Object(s.a)([Object(i.c)({default:!0})],d.prototype,"enableDomain",void 0),Object(s.a)([Object(i.c)({default:!0})],d.prototype,"enableDelete",void 0),Object(s.a)([Object(i.f)("value",{immediate:!0})],d.prototype,"valueChange",null),d=Object(s.a)([Object(i.a)({components:{LsDialog:l.a,LsMaterial:n.a,Draggable:c.a,FileItem:o.a}})],d);var p=d,u=(a("4e40"),a("2877")),g=Object(u.a)(p,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("ls-dialog",{ref:"materialDialog",staticClass:"material-select",attrs:{title:"选择"+t.tipsText,width:"1050px",top:"15vh"},on:{confirm:t.handleConfirm}},[t.hiddenTrigger?t._e():e("div",{staticClass:"material-select__trigger clearfix",attrs:{slot:"trigger"},on:{click:function(t){t.stopPropagation()}},slot:"trigger"},[e("draggable",{staticClass:"ls-draggable",attrs:{animation:"300",disabled:t.disabled||t.dragDisabled},on:{update:t.handleChange},model:{value:t.fileList,callback:function(e){t.fileList=e},expression:"fileList"}},t._l(t.fileList,(function(a,s){return e("div",{key:a+s,staticClass:"material-preview ls-del-wrap",class:{"is-disabled":t.disabled,"is-one":1==t.limit},on:{click:function(e){return t.showDialog(!1,s)}}},[t.$scopedSlots.preview?e("div",[t._t("preview",null,{item:t.imageUri(a)})],2):e("file-item",{attrs:{type:t.type,item:{uri:t.imageUri(a)},size:t.size}}),t.enableDelete?e("i",{staticClass:"el-icon-close ls-icon-del",on:{click:function(e){return e.stopPropagation(),t.delImage(s)}}}):t._e()],1)})),0),e("div",{directives:[{name:"show",rawName:"v-show",value:t.showUpload,expression:"showUpload"}],staticClass:"material-upload",class:{"is-disabled":t.disabled,"is-one":1==t.limit},on:{click:function(e){return t.showDialog(!0)}}},[t.$slots.upload?e("div",[t._t("upload")],2):e("div",{staticClass:"upload-btn flex row-center",style:{width:t.size+"px",height:t.size+"px",background:t.uploadBg}},[t._t("default"),t.$slots.default?t._e():e("span",[t._v("添加"+t._s(t.tipsText))])],2)])],1),e("div",{staticClass:"material-wrap"},[e("ls-material",{ref:"material",attrs:{"page-size":15,type:t.type,limit:t.meterialLimit},on:{change:t.selectChange}})],1)])}),[],!1,null,"62c92359",null);e.a=g.exports},b99a:function(t,e,a){"use strict";a.d(e,"f",(function(){return i})),a.d(e,"a",(function(){return l})),a.d(e,"d",(function(){return n})),a.d(e,"e",(function(){return o})),a.d(e,"c",(function(){return r})),a.d(e,"b",(function(){return c}));var s=a("f175");const i=()=>s.a.get("/config/getMarketingModule"),l=()=>s.a.get("/config/getAppModule"),n=t=>s.a.get("/common/activity",{params:t}),o=t=>s.a.get("/common/activityGoods",{params:t}),r=t=>s.a.post("award_integral/setConfig",t),c=()=>s.a.get("award_integral/getConfig")},ba96:function(t,e,a){"use strict";a("c091")},c091:function(t,e,a){},cf9b:function(t,e,a){"use strict";a("04d0")},db8b:function(t,e,a){},dcb0:function(t,e,a){"use strict";a("14d9"),a("e9f5"),a("d866"),a("7d54"),a("ab43"),a("a732");var s=a("9ab4"),i=a("1b40"),l=a("3c50"),n=a("6ddb"),o=a("14c6");let r=class extends i.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 a=e[t];if(!this.selectData.map(t=>t.id).includes(a.id)){if(this.checkLength())return;this.selectData.push(a)}}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:o.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(s.a)([Object(i.b)("visible")],r.prototype,"visible",void 0),Object(s.a)([Object(i.c)()],r.prototype,"value",void 0),Object(s.a)([Object(i.c)()],r.prototype,"goods",void 0),Object(s.a)([Object(i.c)({default:"single"})],r.prototype,"type",void 0),Object(s.a)([Object(i.c)()],r.prototype,"limit",void 0),Object(s.a)([Object(i.c)({default:!1})],r.prototype,"isSpec",void 0),Object(s.a)([Object(i.c)({default:()=>{}})],r.prototype,"params",void 0),Object(s.a)([Object(i.c)({default:!1})],r.prototype,"showVirtualGoods",void 0),Object(s.a)([Object(i.f)("visible",{deep:!0,immediate:!0})],r.prototype,"visibleChange",null),r=Object(s.a)([Object(i.a)({components:{LsPagination:l.a}})],r);var c=r,d=a("2877"),p=Object(d.a)(c,(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:a}){return[e("el-checkbox",{attrs:{value:t.selectItem(a)},on:{change:function(e){return t.handleSelect(e,a)}}})]}}],null,!1,3310675202)}):t._e(),"multiple"==t.type?e("el-table-column",{attrs:{width:"45"},scopedSlots:t._u([{key:"default",fn:function({row:a}){return[e("el-checkbox",{attrs:{value:t.selectItem(a)},on:{change:function(e){return t.handleSelect(e,a)}}})]}}],null,!1,3310675202)}):t._e(),e("el-table-column",{attrs:{label:"商品信息","min-width":"180"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",{staticClass:"flex"},[e("el-image",{staticClass:"flex-none",staticStyle:{width:"48px",height:"48px"},attrs:{src:a.row.image,fit:"cover"}}),e("div",{staticClass:"goods-info m-l-8"},[e("div",{staticClass:"line-2"},[t._v(t._s(a.row.name))]),e("div",[2==a.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(a){return[e("div",[t._v(t._s(a.row.is_distribution?"参与":"不参与"))])]}}])}),e("el-table-column",{attrs:{prop:"is_discount",label:"会员折扣",width:"120"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",[t._v(t._s(a.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=p.exports},f8e8:function(t,e,a){"use strict";a("af3c")}}]);
|