chunk-bd110c2e.58f54e0e.js 12.4 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bd110c2e"],{"129f":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"14c3":function(t,e,i){var n=i("c6b6"),l=i("9263");t.exports=function(t,e){var i=t.exec;if("function"===typeof i){var a=i.call(t,e);if("object"!==typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==n(t))throw TypeError("RegExp#exec called on incompatible receiver");return l.call(t,e)}},"1fa7":function(t,e,i){},"311f":function(t,e,i){},"3dd4":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"brandListTool"},[i("h3",{staticClass:"toolTit"},[t._v("秒杀专区")]),i("div",{staticClass:"porListBox"},[i("div",{staticClass:"addProduct"},[i("div",t._l(t.activeComponent.componentContent.activityName,(function(e,n){return i("div",{key:n,staticClass:"categoryName"},[i("span",[t._v(t._s(e))]),i("div",{staticClass:"operation"},[i("span",{staticClass:"iconfont",on:{click:function(e){return t.deleteActivity(n)}}},[t._v("")])])])})),0),i("div",{staticClass:"addProBtn addImgBtn",on:{click:t.selectActivity}},[i("span",{staticClass:"iconfont"},[t._v("")]),t._v("选择活动")])])]),i("el-dialog",{attrs:{title:"选择活动",visible:t.showSkillActivity,width:"900px"},on:{"update:visible":function(e){t.showSkillActivity=e}}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.skillActivity,border:"","highlight-current-row":"","row-key":"shopSeckillId"},on:{"row-click":t.rowClick,"selection-change":t.handleSelectionChange}},[1==t.typeId?i("el-table-column",{attrs:{type:"selection",width:"40"}}):t._e(),3==t.typeId?i("el-table-column",{attrs:{label:"",width:"35"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-radio",{attrs:{label:e.row.shopSeckillId},model:{value:t.radioId,callback:function(e){t.radioId=e},expression:"radioId"}},[t._v("1")])]}}],null,!1,1696068839)}):t._e(),i("el-table-column",{attrs:{prop:"seckillName",label:"标题"}}),i("el-table-column",{attrs:{formatter:t.getDate,width:"400",label:"活动时间"}}),i("el-table-column",{attrs:{label:"状态",formatter:t.getState}})],1),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.cancelSkill}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:t.confirmActivity}},[t._v("确 定")])],1)],1)],1)},l=[],a=i("5530"),o=(i("99af"),i("a434"),i("a78e")),c=i.n(o),s=i("b76a"),r=i.n(s),u=i("7a32"),d=i("629e"),p=i("f270"),f=i("2f62"),h=(i("6b3f"),i("f6af")),v=i("54a1"),g=i("347c"),m={mixins:[d["a"],p["b"]],name:"spikeTool",components:{ToolSelectLink:g["a"],ToolSingleImg:v["a"],ToolSelect:h["a"],Draggable:r.a},data:function(){return{radioId:"",skillActivity:[],selectSkill:{},showSkillActivity:!1,title:"",textInfo:"",imgTextData:[{title:"",isShow:!0,imgData:"",describe:"",url:""}],alignList:[{id:1,label:"居左",value:"left"},{id:2,label:"居中",value:"center"}],categoryList:[],textAlign:"left",imgCurrent:null,dialogVisible:!1,dialogCategory:!1,currentCategory:null,productList:[],productNum:2,labelCurrent:null,multipleSelection:[],arrangeList:[{id:2,type:"L2",name:"多行多列",Icon:"&#xe625"},{id:3,type:"L3",name:"横向滑动",Icon:"&#xe624;"}]}},computed:Object(a["a"])({},Object(f["b"])(["terminal","typeId"])),methods:Object(a["a"])(Object(a["a"])({},Object(f["c"])({setSpikeNum:"SET_SPIKENUM"})),{},{getDate:function(t){return 1===this.typeId?"".concat(t.startTime,"至").concat(t.endTime):3===this.typeId?"".concat(t.effectiveStart,"至").concat(t.effectiveEnd):void 0},getState:function(t){if(1===this.typeId){var e={0:"报名未开始",1:"报名进行中",2:"活动待开始",3:"活动进行中",4:"活动已结束"};return e[t.state]}if(3===this.typeId){var i={0:"未开始",1:"进行中",2:"已结束"};return i[t.state]}},selectActivity:function(){this.getActivity(),this.showSkillActivity=!0,this.radioId=this.activeComponent.componentContent.shopSeckillId},getActivity:function(){var t=this,e="";1===this.typeId?e="".concat(u["a"].getPlatformSeckills):3===this.typeId&&(e="".concat(u["a"].getSeckills,"?shopId=").concat(c.a.get("cereShopId")));var i={method:"GET",url:e};this.sendReq(i,(function(e){t.skillActivity=e.data}))},rowClick:function(t){this.selectSkill=t,this.radioId=t.shopSeckillId},confirmActivity:function(){if(1===this.typeId){for(var t=[],e=[],i=0;i<this.multipleSelection.length;i++)t.push(this.multipleSelection[i].seckillId),e.push(this.multipleSelection[i].seckillName);this.activeComponent.componentContent.shopSeckillId=t,this.activeComponent.componentContent.activityName=e}3===this.typeId&&(this.activeComponent.componentContent.shopSeckillId=[this.selectSkill.shopSeckillId],this.activeComponent.componentContent.activityName=[this.selectSkill.seckillName]),this.showSkillActivity=!1,this.setSpikeNum()},cancelSkill:function(){this.showSkillActivity=!1,this.radioId=""},replaceActivity:function(){this.showSkillActivity=!0,this.getActivity()},deleteActivity:function(t){this.activeComponent.componentContent.activityName.splice(t,1),this.activeComponent.componentContent.shopSeckillId.splice(t,1),this.$forceUpdate(),this.setSpikeNum()},handleSelectionChange:function(t){this.multipleSelection=t,console.log(this.multipleSelection)}})},b=m,y=(i("b2e4"),i("2877")),x=Object(y["a"])(b,n,l,!1,null,"45e9463e",null);e["default"]=x.exports},"54a1":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"module-box single-img"},[i("div",{staticClass:"single-img__box"},[i("el-upload",{attrs:{drag:"",action:t.fileUploadApi.fileUpload,"on-success":t.handleAvatarSuccess,"before-upload":t.beforeAvatarUpload,"show-file-list":!1}},[t.imageUrl?i("img",{staticClass:"single-img__img",attrs:{src:t.imageUrl}}):i("i",{staticClass:"el-icon-upload"},[i("div",{staticClass:"el-upload__text"},[i("em",[t._v("选择图片")])]),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v(t._s(t.tip))])])]),t.imageUrl?i("div",{staticClass:"overlay"},[i("i",{staticClass:"iconfont icon-chakan",on:{click:t.showImage}}),i("i",{staticClass:"iconfont icon-shanchu1",on:{click:t.delImage}})]):t._e()],1),i("el-dialog",{attrs:{title:"图片展示",visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("img",{attrs:{width:"100%",src:t.dialogImageUrl,alt:""}})])],1)},l=[],a=i("7a32"),o=i("f270"),c={name:"tool-single-img",mixins:[o["b"]],data:function(){return{dialogVisible:!1,dialogImageUrl:"",fileUploadApi:{fileUpload:""}}},props:{imageUrl:{type:String,default:""},tip:{type:String,default:"建议尺寸: 1080*900px, 高度自适应"}},mounted:function(){console.log(a["a"]),this.fileUploadApi=a["a"]},methods:{handleAvatarSuccess:function(t,e){this.$emit("update:imageUrl",t.data.url)},beforeAvatarUpload:function(t){var e=t.size/1024/1024<1;return e||this.$message.error("上传图片大小不能超过 1MB!"),e},showImage:function(){this.dialogImageUrl=this.imageUrl,this.dialogVisible=!0},delImage:function(){this.$emit("update:imageUrl","")}}},s=c,r=(i("7c05"),i("2877")),u=Object(r["a"])(s,n,l,!1,null,"7d74df17",null);e["a"]=u.exports},"7c05":function(t,e,i){"use strict";i("b57d")},"841c":function(t,e,i){"use strict";var n=i("d784"),l=i("825a"),a=i("1d80"),o=i("129f"),c=i("14c3");n("search",1,(function(t,e,i){return[function(e){var i=a(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,i):new RegExp(e)[t](String(i))},function(t){var n=i(e,t,this);if(n.done)return n.value;var a=l(t),s=String(this),r=a.lastIndex;o(r,0)||(a.lastIndex=0);var u=c(a,s);return o(a.lastIndex,r)||(a.lastIndex=r),null===u?-1:u.index}]}))},"8ebf":function(t,e,i){"use strict";i("311f")},9263:function(t,e,i){"use strict";var n=i("ad6d"),l=i("9f7f"),a=RegExp.prototype.exec,o=String.prototype.replace,c=a,s=function(){var t=/a/,e=/b*/g;return a.call(t,"a"),a.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),r=l.UNSUPPORTED_Y||l.BROKEN_CARET,u=void 0!==/()??/.exec("")[1],d=s||u||r;d&&(c=function(t){var e,i,l,c,d=this,p=r&&d.sticky,f=n.call(d),h=d.source,v=0,g=t;return p&&(f=f.replace("y",""),-1===f.indexOf("g")&&(f+="g"),g=String(t).slice(d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==t[d.lastIndex-1])&&(h="(?: "+h+")",g=" "+g,v++),i=new RegExp("^(?:"+h+")",f)),u&&(i=new RegExp("^"+h+"$(?!\\s)",f)),s&&(e=d.lastIndex),l=a.call(p?i:d,g),p?l?(l.input=l.input.slice(v),l[0]=l[0].slice(v),l.index=d.lastIndex,d.lastIndex+=l[0].length):d.lastIndex=0:s&&l&&(d.lastIndex=d.global?l.index+l[0].length:e),u&&l&&l.length>1&&o.call(l[0],i,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(l[c]=void 0)})),l}),t.exports=c},"99af":function(t,e,i){"use strict";var n=i("23e7"),l=i("d039"),a=i("e8b5"),o=i("861d"),c=i("7b0b"),s=i("50c4"),r=i("8418"),u=i("65f0"),d=i("1dde"),p=i("b622"),f=i("2d00"),h=p("isConcatSpreadable"),v=9007199254740991,g="Maximum allowed index exceeded",m=f>=51||!l((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),b=d("concat"),y=function(t){if(!o(t))return!1;var e=t[h];return void 0!==e?!!e:a(t)},x=!m||!b;n({target:"Array",proto:!0,forced:x},{concat:function(t){var e,i,n,l,a,o=c(this),d=u(o,0),p=0;for(e=-1,n=arguments.length;e<n;e++)if(a=-1===e?o:arguments[e],y(a)){if(l=s(a.length),p+l>v)throw TypeError(g);for(i=0;i<l;i++,p++)i in a&&r(d,p,a[i])}else{if(p>=v)throw TypeError(g);r(d,p++,a)}return d.length=p,d}})},"9f7f":function(t,e,i){"use strict";var n=i("d039");function l(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=n((function(){var t=l("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=n((function(){var t=l("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},ac1f:function(t,e,i){"use strict";var n=i("23e7"),l=i("9263");n({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},ad6d:function(t,e,i){"use strict";var n=i("825a");t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},b0c0:function(t,e,i){var n=i("83ab"),l=i("9bf2").f,a=Function.prototype,o=a.toString,c=/^\s*function ([^ (]*)/,s="name";n&&!(s in a)&&l(a,s,{configurable:!0,get:function(){try{return o.call(this).match(c)[1]}catch(t){return""}}})},b2e4:function(t,e,i){"use strict";i("1fa7")},b57d:function(t,e,i){},d784:function(t,e,i){"use strict";i("ac1f");var n=i("6eeb"),l=i("d039"),a=i("b622"),o=i("9263"),c=i("9112"),s=a("species"),r=!l((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),u=function(){return"$0"==="a".replace(/./,"$0")}(),d=a("replace"),p=function(){return!!/./[d]&&""===/./[d]("a","$0")}(),f=!l((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]}));t.exports=function(t,e,i,d){var h=a(t),v=!l((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),g=v&&!l((function(){var e=!1,i=/a/;return"split"===t&&(i={},i.constructor={},i.constructor[s]=function(){return i},i.flags="",i[h]=/./[h]),i.exec=function(){return e=!0,null},i[h](""),!e}));if(!v||!g||"replace"===t&&(!r||!u||p)||"split"===t&&!f){var m=/./[h],b=i(h,""[t],(function(t,e,i,n,l){return e.exec===o?v&&!l?{done:!0,value:m.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),y=b[0],x=b[1];n(String.prototype,t,y),n(RegExp.prototype,h,2==e?function(t,e){return x.call(t,this,e)}:function(t){return x.call(t,this)})}d&&c(RegExp.prototype[h],"sham",!0)}},f6af:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"module-box link-select"},[i("div",{staticClass:"module-box__title"},[i("label",{staticClass:"module-box__label"},[t._v(t._s(t.title))])]),i("el-select",{staticClass:"link-select__select",attrs:{"popper-append-to-body":!1,placeholder:"请选择跳转到的页面"},on:{change:t.selectChanged},model:{value:t.selsectValue,callback:function(e){t.selsectValue=e},expression:"selsectValue"}},t._l(t.options,(function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)},l=[],a={name:"tool-select",data:function(){return{selsectValue:""}},props:{title:{type:String,default:"标题"},linkValue:{type:String,default:""},options:{type:Array,default:function(){return[]}}},mounted:function(){this.selsectValue=this.linkValue},methods:{selectChanged:function(t){this.$emit("update:linkValue",t)}}},o=a,c=(i("8ebf"),i("2877")),s=Object(c["a"])(o,n,l,!1,null,"50d1d6a7",null);e["a"]=s.exports}}]);