chunk-8d78867a.fdf5eb64.js
14 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8d78867a"],{"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,n){var i=n("c6b6"),o=n("9263");t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var a=n.call(t,e);if("object"!==typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==i(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},"2f25":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"brandListTool"},[n("h3",{staticClass:"toolTit"},[t._v("定价捆绑")]),n("div",{staticClass:"porListBox"},[n("div",{staticClass:"addProduct"},[t.activeComponent.componentContent.activityName?n("div",{staticClass:"categoryName"},[n("span",[t._v(t._s(t.activeComponent.componentContent.activityName))]),n("div",{staticClass:"operation"},[n("span",{staticClass:"iconfont",on:{click:t.replaceActivity}},[t._v("")]),n("span",{staticClass:"iconfont",on:{click:t.deleteActivity}},[t._v("")])])]):n("div",{staticClass:"addProBtn addImgBtn",on:{click:t.selectActivity}},[n("span",{staticClass:"iconfont"},[t._v("")]),t._v("选择活动")])])]),4==t.terminal?n("div",[n("div",{staticClass:"styleSelectLine"},[n("div",{staticClass:"blockTit"},[n("span",[t._v("排列样式")]),n("span",[t._v(t._s(t.activeComponent.componentContent.arrangeType))])]),n("div",{staticClass:"selectCompose"},[n("div",{staticClass:"composeList"},t._l(t.arrangeList,(function(e){return n("span",{key:e.id,staticClass:"item iconfont",class:{active:t.activeComponent.componentContent.arrangeType===e.name},domProps:{innerHTML:t._s(e.Icon)},on:{click:function(n){return t.selectArrange(e)}}})})),0)])]),"多行多列"===t.activeComponent.componentContent.arrangeType?n("div",{staticClass:"toolBox"},[n("div",{staticClass:"productTit"},[n("span",[t._v("展示排数")]),n("span",[t._v(t._s(t.activeComponent.componentContent.productRowNum))])]),n("div",{staticClass:"itemBox"},[n("div",{staticClass:"block"},[n("el-slider",{attrs:{max:9,min:1},model:{value:t.activeComponent.componentContent.productRowNum,callback:function(e){t.$set(t.activeComponent.componentContent,"productRowNum",e)},expression:"activeComponent.componentContent.productRowNum"}})],1)]),n("div",{staticClass:"productTit"},[n("span",[t._v("每排商品数")]),n("span",[t._v(t._s(t.activeComponent.componentContent.productNum))])]),n("div",{staticClass:"itemBox"},[n("div",{staticClass:"block"},[n("el-slider",{attrs:{max:5,min:2},model:{value:t.activeComponent.componentContent.productNum,callback:function(e){t.$set(t.activeComponent.componentContent,"productNum",e)},expression:"activeComponent.componentContent.productNum"}})],1)])]):t._e()]):t._e(),n("div",{staticClass:"itemChoice"},[n("div",{staticClass:"Tit"},[t._v("查看更多")]),n("div",{staticClass:"Info",domProps:{textContent:t._s(t.activeComponent.componentContent.showMore?"显示":"隐藏")}}),n("div",{staticClass:"modifyBox"},[n("el-checkbox",{model:{value:t.activeComponent.componentContent.showMore,callback:function(e){t.$set(t.activeComponent.componentContent,"showMore",e)},expression:"activeComponent.componentContent.showMore"}})],1)]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.activeComponent.componentContent.showMore,expression:"activeComponent.componentContent.showMore"}],staticClass:"moreBox"},[n("div",{staticClass:"link"},[n("tool-select-link",{attrs:{linkObj:t.activeComponent.componentContent.linkObj,styleType:"1"},on:{"update:linkObj":function(e){return t.$set(t.activeComponent.componentContent,"linkObj",e)},"update:link-obj":function(e){return t.$set(t.activeComponent.componentContent,"linkObj",e)}}})],1)]),n("el-dialog",{attrs:{title:"选择活动",visible:t.showSkillActivity,width:"900px"},on:{"update:visible":function(e){t.showSkillActivity=e}}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.skillActivity,"highlight-current-row":""},on:{"row-click":t.rowClick}},[n("el-table-column",{attrs:{label:"",width:"35"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-radio",{attrs:{label:e.row.priceId},model:{value:t.radioId,callback:function(e){t.radioId=e},expression:"radioId"}})]}}])}),n("el-table-column",{attrs:{prop:"composeName",label:"标题"}}),n("el-table-column",{attrs:{formatter:t.getDate,width:"400",label:"活动时间"}}),n("el-table-column",{attrs:{prop:"state",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" 进行中 ")]}}])})],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:t.cancelSkill}},[t._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:t.confirmActivity}},[t._v("确 定")])],1)],1)],1)},o=[],a=n("5530"),c=(n("99af"),n("b0c0"),n("a78e")),l=n.n(c),s=n("b76a"),r=n.n(s),u=n("7a32"),d=n("629e"),p=n("f270"),m=n("2f62"),f=n("f6af"),v=n("54a1"),g=n("347c"),C={mixins:[d["a"],p["b"]],name:"groupTool",components:{ToolSelectLink:g["a"],ToolSingleImg:v["a"],ToolSelect:f["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,arrangeList:[{id:2,type:"L2",name:"多行多列",Icon:""},{id:3,type:"L3",name:"横向滑动",Icon:""}]}},computed:Object(a["a"])({},Object(m["b"])(["terminal"])),methods:Object(a["a"])(Object(a["a"])({},Object(m["c"])({setPriceNum:"SET_PRICENUM"})),{},{getDate:function(t){return"".concat(t.startTime,"至").concat(t.endTime)},selectActivity:function(){this.getActivity(),this.showSkillActivity=!0,this.radioId=this.activeComponent.componentContent.shopGroupWorkId},getActivity:function(){var t=this,e={method:"GET",url:"".concat(u["a"].getPrices,"?shopId=").concat(l.a.get("cereShopId"))};this.sendReq(e,(function(e){t.skillActivity=e.data}))},rowClick:function(t){this.selectSkill=t,this.radioId=t.shopGroupWorkId},confirmActivity:function(){this.activeComponent.componentContent.priceId=this.selectSkill.priceId,this.activeComponent.componentContent.activityName=this.selectSkill.composeName,this.showSkillActivity=!1,this.setPriceNum()},cancelSkill:function(){this.showSkillActivity=!1,this.radioId=""},replaceActivity:function(){this.showSkillActivity=!0,this.getActivity()},deleteActivity:function(){this.activeComponent.componentContent.activityName="",this.activeComponent.componentContent.priceId="",this.$forceUpdate(),this.setPriceNum()},selectArrange:function(t){this.activeComponent.componentContent.arrangeType=t.name}})},h=C,b=(n("7c1b"),n("2877")),x=Object(b["a"])(h,i,o,!1,null,"43518aef",null);e["default"]=x.exports},"311f":function(t,e,n){},"54a1":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"module-box single-img"},[n("div",{staticClass:"single-img__box"},[n("el-upload",{attrs:{drag:"",action:t.fileUploadApi.fileUpload,"on-success":t.handleAvatarSuccess,"before-upload":t.beforeAvatarUpload,"show-file-list":!1}},[t.imageUrl?n("img",{staticClass:"single-img__img",attrs:{src:t.imageUrl}}):n("i",{staticClass:"el-icon-upload"},[n("div",{staticClass:"el-upload__text"},[n("em",[t._v("选择图片")])]),n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v(t._s(t.tip))])])]),t.imageUrl?n("div",{staticClass:"overlay"},[n("i",{staticClass:"iconfont icon-chakan",on:{click:t.showImage}}),n("i",{staticClass:"iconfont icon-shanchu1",on:{click:t.delImage}})]):t._e()],1),n("el-dialog",{attrs:{title:"图片展示",visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("img",{attrs:{width:"100%",src:t.dialogImageUrl,alt:""}})])],1)},o=[],a=n("7a32"),c=n("f270"),l={name:"tool-single-img",mixins:[c["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=l,r=(n("7c05"),n("2877")),u=Object(r["a"])(s,i,o,!1,null,"7d74df17",null);e["a"]=u.exports},"7c05":function(t,e,n){"use strict";n("b57d")},"7c1b":function(t,e,n){"use strict";n("aec8")},"841c":function(t,e,n){"use strict";var i=n("d784"),o=n("825a"),a=n("1d80"),c=n("129f"),l=n("14c3");i("search",1,(function(t,e,n){return[function(e){var n=a(this),i=void 0==e?void 0:e[t];return void 0!==i?i.call(e,n):new RegExp(e)[t](String(n))},function(t){var i=n(e,t,this);if(i.done)return i.value;var a=o(t),s=String(this),r=a.lastIndex;c(r,0)||(a.lastIndex=0);var u=l(a,s);return c(a.lastIndex,r)||(a.lastIndex=r),null===u?-1:u.index}]}))},"8ebf":function(t,e,n){"use strict";n("311f")},9263:function(t,e,n){"use strict";var i=n("ad6d"),o=n("9f7f"),a=RegExp.prototype.exec,c=String.prototype.replace,l=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=o.UNSUPPORTED_Y||o.BROKEN_CARET,u=void 0!==/()??/.exec("")[1],d=s||u||r;d&&(l=function(t){var e,n,o,l,d=this,p=r&&d.sticky,m=i.call(d),f=d.source,v=0,g=t;return p&&(m=m.replace("y",""),-1===m.indexOf("g")&&(m+="g"),g=String(t).slice(d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==t[d.lastIndex-1])&&(f="(?: "+f+")",g=" "+g,v++),n=new RegExp("^(?:"+f+")",m)),u&&(n=new RegExp("^"+f+"$(?!\\s)",m)),s&&(e=d.lastIndex),o=a.call(p?n:d,g),p?o?(o.input=o.input.slice(v),o[0]=o[0].slice(v),o.index=d.lastIndex,d.lastIndex+=o[0].length):d.lastIndex=0:s&&o&&(d.lastIndex=d.global?o.index+o[0].length:e),u&&o&&o.length>1&&c.call(o[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(o[l]=void 0)})),o}),t.exports=l},"99af":function(t,e,n){"use strict";var i=n("23e7"),o=n("d039"),a=n("e8b5"),c=n("861d"),l=n("7b0b"),s=n("50c4"),r=n("8418"),u=n("65f0"),d=n("1dde"),p=n("b622"),m=n("2d00"),f=p("isConcatSpreadable"),v=9007199254740991,g="Maximum allowed index exceeded",C=m>=51||!o((function(){var t=[];return t[f]=!1,t.concat()[0]!==t})),h=d("concat"),b=function(t){if(!c(t))return!1;var e=t[f];return void 0!==e?!!e:a(t)},x=!C||!h;i({target:"Array",proto:!0,forced:x},{concat:function(t){var e,n,i,o,a,c=l(this),d=u(c,0),p=0;for(e=-1,i=arguments.length;e<i;e++)if(a=-1===e?c:arguments[e],b(a)){if(o=s(a.length),p+o>v)throw TypeError(g);for(n=0;n<o;n++,p++)n in a&&r(d,p,a[n])}else{if(p>=v)throw TypeError(g);r(d,p++,a)}return d.length=p,d}})},"9f7f":function(t,e,n){"use strict";var i=n("d039");function o(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=i((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=i((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},ac1f:function(t,e,n){"use strict";var i=n("23e7"),o=n("9263");i({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},ad6d:function(t,e,n){"use strict";var i=n("825a");t.exports=function(){var t=i(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}},aec8:function(t,e,n){},b0c0:function(t,e,n){var i=n("83ab"),o=n("9bf2").f,a=Function.prototype,c=a.toString,l=/^\s*function ([^ (]*)/,s="name";i&&!(s in a)&&o(a,s,{configurable:!0,get:function(){try{return c.call(this).match(l)[1]}catch(t){return""}}})},b57d:function(t,e,n){},d784:function(t,e,n){"use strict";n("ac1f");var i=n("6eeb"),o=n("d039"),a=n("b622"),c=n("9263"),l=n("9112"),s=a("species"),r=!o((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")}(),m=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,d){var f=a(t),v=!o((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),g=v&&!o((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[s]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return e=!0,null},n[f](""),!e}));if(!v||!g||"replace"===t&&(!r||!u||p)||"split"===t&&!m){var C=/./[f],h=n(f,""[t],(function(t,e,n,i,o){return e.exec===c?v&&!o?{done:!0,value:C.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=h[0],x=h[1];i(String.prototype,t,b),i(RegExp.prototype,f,2==e?function(t,e){return x.call(t,this,e)}:function(t){return x.call(t,this)})}d&&l(RegExp.prototype[f],"sham",!0)}},f6af:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"module-box link-select"},[n("div",{staticClass:"module-box__title"},[n("label",{staticClass:"module-box__label"},[t._v(t._s(t.title))])]),n("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 n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)},o=[],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)}}},c=a,l=(n("8ebf"),n("2877")),s=Object(l["a"])(c,i,o,!1,null,"50d1d6a7",null);e["a"]=s.exports}}]);