chunk-0cfb9570.809f5895.js 5.15 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0cfb9570"],{3482:function(t,e,n){"use strict";n("5ce0")},"43aa":function(t,e,n){"use strict";n.r(e);var o=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:"toolBox"},[n("tool-product-source",{attrs:{productData:t.activeComponent.componentContent.productData,type:t.activeComponent.type},on:{"update:productData":function(e){return t.$set(t.activeComponent.componentContent,"productData",e)},"update:product-data":function(e){return t.$set(t.activeComponent.componentContent,"productData",e)}}}),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&&4==t.terminal?n("div",[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(),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)])],1),n("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible,width:"30%","before-close":t.deleteItem},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("span",[t._v("点击确定删除此项")]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("确 定")])],1)])],1)},a=[],i=n("5530"),c=(n("a434"),n("b0c0"),n("d3b7"),n("3ca3"),n("ddb0"),n("2b3d"),n("bf19"),n("9861"),n("b76a")),s=n.n(c),l=n("629e"),r=n("2f62"),p=n("f6af"),m=n("54a1"),u=n("347c"),d=n("13af"),C={mixins:[l["a"]],name:"productListTool",components:{ToolProductSource:d["a"],ToolSelectLink:u["a"],ToolSingleImg:m["a"],ToolSelect:p["a"],Draggable:s.a},data:function(){return{title:"",textInfo:"",imgTextData:[{title:"",isShow:!0,imgData:"",describe:"",url:""}],alignList:[{id:1,label:"居左",value:"left"},{id:2,label:"居中",value:"center"}],textAlign:"left",imgCurrent:null,dialogVisible:!1,currentCategory:null,productList:[],productNum:2,labelCurrent:null,arrangePCList:[{id:1,type:"L2",name:"多行多列",Icon:"&#xe625"},{id:2,type:"L2",name:"横向滑动",Icon:""}],arrangeAppList:[{id:1,type:"L1",name:"多行多列",Icon:"&#xe625"},{id:2,type:"L2",name:"横向滑动",Icon:""}]}},computed:Object(i["a"])(Object(i["a"])({},Object(r["b"])(["terminal"])),{},{arrangeList:function(){return 4==this.terminal?this.arrangePCList:this.arrangeAppList}}),methods:{openAddImg:function(t,e){if(this.imgCurrent===e)return this.imgCurrent=null,!1;this.imgCurrent=e},addImgText:function(){this.activeComponent.componentContent.imgTextData.push({title:"",isShow:!0,imgData:"",url:""})},deleteItem:function(t,e){var n=this;this.$confirm("确定删除此项?").then((function(t){n.activeComponent.componentContent.imgTextData.splice(e,1)})).catch((function(t){}))},handleAvatarSuccess:function(t,e){this.imageUrl=URL.createObjectURL(e.raw)},openAddLabel:function(t,e){if(this.labelCurrent===e)return this.labelCurrent=null,!1;this.labelCurrent=e},addLabel:function(){this.activeComponent.componentContent.labelList.push({name:"",url:""})},deleteLabelItem:function(t,e){var n=this;this.$confirm("确定删除此项?").then((function(t){n.activeComponent.componentContent.labelList.splice(e,1)})).catch((function(t){}))},selectArrange:function(t){this.activeComponent.componentContent.arrangeType=t.name}}},v=C,f=(n("3482"),n("2877")),b=Object(f["a"])(v,o,a,!1,null,"413769fc",null);e["default"]=b.exports},"5ce0":function(t,e,n){}}]);