Commit 0da2f428 authored by 黄奎's avatar 黄奎
parents 3022d5d6 146df150
This diff is collapsed.
...@@ -49,6 +49,47 @@ ...@@ -49,6 +49,47 @@
align-items: center; align-items: center;
padding: 10px 0; padding: 10px 0;
} }
.goodsSpecifica .app-attr-group .attr-list {
display: inline-block;
margin-right: 10px;
margin-bottom: 10px;
position: relative;
}
.goodsSpecifica .app-attr-group .close {
position: absolute;
top: -4px;
right: -4px;
font-size: 16px;
cursor: pointer;
}
.goodsSpecifica .box-grow-0 {
min-width: 0;
-webkit-box-flex: 0;
flex-grow: 0;
flex-shrink: 0;
}
.goodsSpecifica .app-attr-group .img-box {
position: relative;
height: 100px;
width: 100px;
margin-top: 8px;
border: 1px solid #ebeef5;
}
.goodsSpecifica .app-attr-group .attr-jt {
background: #ffffff;
width: 6px;
height: 6px;
border-top: 1px solid rgb(235, 238, 245);
border-right: 1px solid #ebeef5;
transform: rotate(-45deg);
-o-transform: rotate(-45deg);
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
position: absolute;
top: -5px;
}
</style> </style>
<template> <template>
<div> <div>
...@@ -202,12 +243,20 @@ ...@@ -202,12 +243,20 @@
<el-button type="primary" size="small" @click="chooseSpecificationValueList">确定选择</el-button> <el-button type="primary" size="small" @click="chooseSpecificationValueList">确定选择</el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 选择图片 -->
<el-dialog title="选择文件" :visible.sync="changeState" width="1240px">
<ChooseImg @SelectId="SelectId" :IsMultiple="true"></ChooseImg>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import ChooseImg from "@/components/global/ChooseImg.vue";
export default { export default {
components:{
ChooseImg
},
data() { data() {
return { return {
SpecificationList: [], //规格数组 SpecificationList: [], //规格数组
...@@ -228,6 +277,7 @@ ...@@ -228,6 +277,7 @@
ggplList: [], ggplList: [],
speciList: [], speciList: [],
DropdownList: [], DropdownList: [],
huiyList: [],
SeparateDistributionType: 1, //待传递给父组件 SeparateDistributionType: 1, //待传递给父组件
EnjoyMember: 1, //待传父组件 EnjoyMember: 1, //待传父组件
...@@ -546,6 +596,33 @@ ...@@ -546,6 +596,33 @@
}); });
}); });
}, },
//选择图片
SelectId(msg) {
let that = this;
if (msg && msg.length > 0) {
if (this.imgType == 1) {
msg.forEach(item => {
let obj = {
Id: item.selectId,
Path: that.getIconLink(item.url),
};
this.addMsg.CarouselImageList.push(obj);
})
}
if (this.imgType == 2) {
this.addMsg.CustomShareImage = that.getIconLink(msg[0].url);
}
if (this.imgType == 3) {
let imgListIndex1 = this.imgListIndex1;
let imgListIndex2 = this.imgListIndex2;
this.SpecificationList[imgListIndex1].SpecificationValueList[
imgListIndex2
].Image = that.getIconLink(msg[0].url);
}
}
this.changeState = false;
},
TbaleSelectionChange(val) { TbaleSelectionChange(val) {
this.ggplList = val; this.ggplList = val;
}, },
...@@ -587,6 +664,9 @@ ...@@ -587,6 +664,9 @@
} }
}); });
}, },
CheckBox(val) {
console.log(val,'valll');
},
}, },
mounted() { mounted() {
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
cursor: pointer; cursor: pointer;
color: #c9c9c9; color: #c9c9c9;
z-index: 11; z-index: 11;
background-color: #fff;
} }
.diy-component-preview { .diy-component-preview {
...@@ -78,8 +79,9 @@ ...@@ -78,8 +79,9 @@
style="right: -25px; top: 30px;"></el-button> style="right: -25px; top: 30px;"></el-button>
</div> </div>
<div class="diy-rubik"> <div class="diy-rubik">
<div class="diy-component-preview"> <div class="diy-component-preview" :style="{backgroundColor:rubData.data.background}">
<div :style="{marginTop:rubData.data.top+'px',marginRight:rubData.data.right+'px',marginBottom:rubData.data.bottom+'px',marginLeft:rubData.data.left+'px'}"> <div :style="{marginTop:rubData.data.top+'px',marginRight:rubData.data.right+'px',marginBottom:rubData.data.bottom+'px',
marginLeft:rubData.data.left+'px'}">
<div class="layout" :style="blockStyle(rubData.data.style)" :class="{'defaultImg':rubData.data.style==8}" <div class="layout" :style="blockStyle(rubData.data.style)" :class="{'defaultImg':rubData.data.style==8}"
@click="blockClick"> @click="blockClick">
<div class="rubik" style="width:100%;height:100%;" @mousemove="blockMove" <div class="rubik" style="width:100%;height:100%;" @mousemove="blockMove"
...@@ -142,6 +144,13 @@ ...@@ -142,6 +144,13 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row>
<el-col :span="12">
<el-form-item label="背景色">
<el-color-picker v-model="rubData.data.background"></el-color-picker>
</el-form-item>
</el-col>
</el-row>
<el-form-item label="样式"> <el-form-item label="样式">
<div flex="dir:left" style="flex-wrap: wrap;"> <div flex="dir:left" style="flex-wrap: wrap;">
<div class="block" @click="selectStyle(index)" :class="blockActive(index)" <div class="block" @click="selectStyle(index)" :class="blockActive(index)"
......
...@@ -651,7 +651,8 @@ ...@@ -651,7 +651,8 @@
top:0, // 上边距 top:0, // 上边距
right:0, //右边距 right:0, //右边距
bottom:0, //下边距 bottom:0, //下边距
left:0 //左边距 left:0, //左边距
background:'', //背景颜色
} }
} }
this.dataList.push(rubObj); this.dataList.push(rubObj);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment