|
@@ -6,10 +6,15 @@
|
|
|
append-to-body
|
|
|
:close-on-click-modal="false"
|
|
|
@close="cancel">
|
|
|
+ <el-form :model="form" :rules="rules1" ref="form" label-width="100px" class="demo-ruleForm">
|
|
|
+ <el-form-item label="模板名称" prop="name">
|
|
|
+ <el-input v-model="form.name"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
<div class="form-dialog-box" v-loading="loading" :element-loading-text="loadingText"
|
|
|
element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0)">
|
|
|
- <div class="form-make" :style="{ '--crad-zm': form.mainBg ? `url(${form.mainBg})`:'none' }">
|
|
|
- <div class="form-make_zm">
|
|
|
+ <div class="form-make">
|
|
|
+ <div class="form-make_zm" :style="{ '--crad-zm': form.mainBg ? `url(${form.mainBg})`:'none' }">
|
|
|
<div class="form-make_zm-title">正面</div>
|
|
|
<div class="form-make_zm-info">
|
|
|
<!-- 工具 -->
|
|
@@ -32,57 +37,51 @@
|
|
|
</el-upload>
|
|
|
<el-button style="margin-left: 10px;" size="small" type="primary" @click="centerDialogVisibleOpen('addText','zm')">添加文本</el-button>
|
|
|
<!-- <el-button size="small" type="primary" @click="centerDialogVisibleOpen('addImage','zm')">添加图片</el-button> -->
|
|
|
- <el-button size="small" type="primary" @click="centerDialogVisibleOpen('addQR','zm')">添加二维</el-button>
|
|
|
+ <el-button style="margin-left: 10px;" size="small" type="primary" @click="centerDialogVisibleOpen('addQR','zm')">添加二维</el-button>
|
|
|
</div>
|
|
|
<!-- 样式 -->
|
|
|
<div class="form-make_zm-style">
|
|
|
<div class="form-make_zm-style-bgm"></div>
|
|
|
- <div ref="styleInfo" id="styleInfo" class="form-make_zm-style-info">
|
|
|
+ <div ref="styleInfo_zm" id="styleInfo_zm" class="form-make_zm-style-info">
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div style="padding: 20px;">
|
|
|
- <span>编辑</span>
|
|
|
- <div id="styleInfo_list">
|
|
|
- <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
|
|
|
- <div v-if="ruleForm.type == 'text'">
|
|
|
- <el-form-item label="文本名称" prop="textInfo">
|
|
|
- <el-input v-model="ruleForm.textInfo"></el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="字体大小" prop="size">
|
|
|
- <el-input-number v-model="ruleForm.size" controls-position="right" :min="12" :max="100"></el-input-number>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="字体颜色" prop="color">
|
|
|
- <el-color-picker v-model="ruleForm.color"></el-color-picker>
|
|
|
- </el-form-item>
|
|
|
- </div>
|
|
|
- <div v-if="editFun == 'addQR'">
|
|
|
- <el-form-item label="宽度" prop="width">
|
|
|
- <el-input-number v-model="ruleForm.width" controls-position="right" :min="1"></el-input-number>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="高度" prop="height">
|
|
|
- <el-input-number v-model="ruleForm.height" controls-position="right" :min="1"></el-input-number>
|
|
|
- </el-form-item>
|
|
|
- </div>
|
|
|
- <el-form-item label="关联字段" prop="replace">
|
|
|
- <el-select v-model="ruleForm.replace" placeholder="请选择关联字段">
|
|
|
- <el-option
|
|
|
- v-for="item in dict.type.tourism_make_key"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item>
|
|
|
- <el-button type="primary" @click="updateFun('ruleForm')">更新</el-button>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
+ </div>
|
|
|
+ <div class="form-make_fm" :style="{ '--crad-zm': form.backBg ? `url(${form.backBg})`:'none' }">
|
|
|
+ <div class="form-make_fm-title">反面</div>
|
|
|
+ <div class="form-make_fm-info">
|
|
|
+ <!-- 工具 -->
|
|
|
+ <div class="form-make_fm-tool">
|
|
|
+ <el-upload
|
|
|
+ class="upload-demo"
|
|
|
+ :action="actionUrl"
|
|
|
+ :data="{
|
|
|
+ bucket: 'tourism'
|
|
|
+ }"
|
|
|
+ :show-file-list="false"
|
|
|
+ :before-upload="beforeAvatarUpload"
|
|
|
+ :on-success="(response, file, fileList)=>handleAvatarSuccess(response, file, fileList,'backBg')"
|
|
|
+ :on-progress="handleAvatarProgress"
|
|
|
+ :disabled="actionUrlLoading"
|
|
|
+ :on-error="handleAvatarError"
|
|
|
+ :loading="actionUrlLoading"
|
|
|
+ >
|
|
|
+ <el-button size="small" type="primary">上传底图</el-button>
|
|
|
+ </el-upload>
|
|
|
+ <el-button style="margin-left: 10px;" size="small" type="primary" @click="centerDialogVisibleOpen('addText','fm')">添加文本</el-button>
|
|
|
+ <!-- <el-button size="small" type="primary" @click="centerDialogVisibleOpen('addImage','fm')">添加图片</el-button> -->
|
|
|
+ <el-button style="margin-left: 10px;" size="small" type="primary" @click="centerDialogVisibleOpen('addQR','fm')">添加二维</el-button>
|
|
|
+ </div>
|
|
|
+ <!-- 样式 -->
|
|
|
+ <div class="form-make_fm-style">
|
|
|
+ <div class="form-make_fm-style-bgm"></div>
|
|
|
+ <div ref="styleInfo_fm" id="styleInfo_fm" class="form-make_fm-style-info">
|
|
|
+
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
@@ -102,9 +101,13 @@
|
|
|
:visible.sync="centerDialogVisible"
|
|
|
width="30%"
|
|
|
append-to-body
|
|
|
+ :close-on-click-modal="false"
|
|
|
center>
|
|
|
<div>
|
|
|
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
|
|
|
+ <div v-if="editFun == 'addImage'">
|
|
|
+
|
|
|
+ </div>
|
|
|
<div v-if="editFun == 'addText'">
|
|
|
<el-form-item label="文本名称" prop="textInfo">
|
|
|
<el-input v-model="ruleForm.textInfo"></el-input>
|
|
@@ -134,9 +137,13 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="层级" prop="zIndex">
|
|
|
+ <el-input-number v-model="ruleForm.zIndex" controls-position="right"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="danger" @click="delDiv">删除</el-button>
|
|
|
<el-button @click="centerDialogVisible = false">取 消</el-button>
|
|
|
<el-button type="primary" @click="centerDialogVisiblePush">确 定</el-button>
|
|
|
</span>
|
|
@@ -163,15 +170,22 @@ export default {
|
|
|
loadingText: "拼命加载数据中...",
|
|
|
formStatus: null, // 0/null : 加载中 1 : 获取详情成功 2 : 获取详情失败
|
|
|
configUrl: {
|
|
|
- add: '/merchant/merchantEntitycardConfig/insertOrUpdate', // 新增地址
|
|
|
- details: '/merchant/merchantEntitycardConfig/selectById', // 规格详情
|
|
|
- edit: '/merchant/merchantEntitycardConfig/insertOrUpdate', // 编辑地址
|
|
|
+ add: '/merchant/templateEntitycard/insertOrUpdate', // 新增地址
|
|
|
+ details: '/merchant/templateEntitycard/selectById', // 规格详情
|
|
|
+ edit: '/merchant/templateEntitycard/insertOrUpdate', // 编辑地址
|
|
|
},
|
|
|
performId: null,
|
|
|
form: {
|
|
|
id: undefined,
|
|
|
mainBg: null,
|
|
|
backBg: null,
|
|
|
+ mainText: null,
|
|
|
+ backText: null,
|
|
|
+ },
|
|
|
+ rules1: {
|
|
|
+ name: [
|
|
|
+ { required: true, message: '请输入模板名称', trigger: ['blur', 'change'] },
|
|
|
+ ],
|
|
|
},
|
|
|
// 上传文件
|
|
|
actionUrl: process.env.VUE_APP_BASE_API + process.env.VUE_APP_UPLOAD_IMAGE,
|
|
@@ -221,6 +235,9 @@ export default {
|
|
|
}
|
|
|
this.loading = false
|
|
|
this.$nextTick(()=>{
|
|
|
+ document.getElementById('styleInfo_zm').innerHTML = this.form.mainText?this.form.mainText:''
|
|
|
+ document.getElementById('styleInfo_fm').innerHTML = this.form.backText?this.form.backText:''
|
|
|
+ this.addEvent()
|
|
|
if(this.$refs["form"]) {
|
|
|
this.$refs["form"].clearValidate();
|
|
|
}
|
|
@@ -250,6 +267,23 @@ export default {
|
|
|
this.loading = false
|
|
|
}
|
|
|
},
|
|
|
+ /** 获取子元素 并添加 点击事件 和 拖拽事件 */
|
|
|
+ addEvent(){
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ // 获取所有子元素并绑定事件
|
|
|
+ const parent = document.getElementById('styleInfo_zm');
|
|
|
+ parent.querySelectorAll('div').forEach((child) => {
|
|
|
+ child.addEventListener('dragend',this.dragendFun)
|
|
|
+ child.addEventListener('click',this.clickFun)
|
|
|
+ });
|
|
|
+ const parent1 = document.getElementById('styleInfo_fm');
|
|
|
+ parent1.querySelectorAll('div').forEach((child) => {
|
|
|
+ child.addEventListener('dragend',this.dragendFun_fm)
|
|
|
+ child.addEventListener('click',this.clickFun)
|
|
|
+ });
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
/**
|
|
|
* 保存
|
|
|
* @date 2023-11-22
|
|
@@ -262,13 +296,13 @@ export default {
|
|
|
this.loadingText = "提交数据中..."
|
|
|
this.loading = true
|
|
|
let params = JSON.parse(JSON.stringify(this.form))
|
|
|
+ params['mainText'] = document.getElementById('styleInfo_zm').innerHTML
|
|
|
+ params['backText'] = document.getElementById('styleInfo_fm').innerHTML
|
|
|
addTableApi(this.configUrl.edit, {
|
|
|
...params,
|
|
|
- activationRule: params.activationRule?params.activationRule.join(','):null,
|
|
|
}).then(response => {
|
|
|
this.$modal.msgSuccess(`${this.form.id ? '编辑' : '新增'}成功`);
|
|
|
this.loading = false
|
|
|
- this.$set(this, 'form', {activationRule:[]})
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.form.clearValidate();
|
|
|
})
|
|
@@ -288,7 +322,6 @@ export default {
|
|
|
*/
|
|
|
reset() {
|
|
|
if (this.$refs["form"]) {
|
|
|
- //this.$refs["form"].resetFields();
|
|
|
this.$set(this, 'form', {activationRule:[]})
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs["form"].clearValidate();
|
|
@@ -335,54 +368,107 @@ export default {
|
|
|
handleRemove(index) {
|
|
|
this.form.goodsImage.splice(index,1)
|
|
|
},
|
|
|
-
|
|
|
+ /** 添加文本 */
|
|
|
addText(type){
|
|
|
- let div = document.createElement('div')
|
|
|
- div.setAttribute('class', 'form-make_zm-style-item');
|
|
|
- div.setAttribute('id', 'text_'+ Number((new Date()).getTime()));
|
|
|
- div.setAttribute('replace', 'text_'+ this.ruleForm.replace);
|
|
|
-
|
|
|
- div.setAttribute('draggable', 'true');
|
|
|
- div.style.color = this.ruleForm.color
|
|
|
- div.style.fontSize = this.ruleForm.size + 'px'
|
|
|
- div.style.backgroundColor = '#fff'
|
|
|
- div.innerHTML = this.ruleForm.textInfo
|
|
|
- div.addEventListener('dragend',this.dragendFun)
|
|
|
- div.addEventListener('click',this.clickFun)
|
|
|
- let box = document.getElementById('styleInfo')
|
|
|
- box.appendChild(div)
|
|
|
+ let className = `form-make_${type}-style-item`
|
|
|
+ let idName = `styleInfo_${type}`
|
|
|
+ if(!this.ruleForm.id){
|
|
|
+ this.addTitle = '添加文本'
|
|
|
+ let div = document.createElement('div')
|
|
|
+ div.setAttribute('class', className);
|
|
|
+ div.setAttribute('id', 'text_'+ Number((new Date()).getTime()));
|
|
|
+ div.setAttribute('replace', 'text_'+ (this.ruleForm.replace?this.ruleForm.replace:''));
|
|
|
+
|
|
|
+ div.setAttribute('draggable', 'true');
|
|
|
+ div.style.color = this.ruleForm.color
|
|
|
+ div.style.fontSize = this.ruleForm.size + 'px'
|
|
|
+ div.style.backgroundColor = 'rgba(255, 255, 255, 0)'
|
|
|
+ div.innerHTML = this.ruleForm.textInfo
|
|
|
+ div.style.zIndex = this.ruleForm.zIndex
|
|
|
+ if(type == 'zm'){
|
|
|
+ div.addEventListener('dragend',this.dragendFun)
|
|
|
+ }else {
|
|
|
+ div.addEventListener('dragend',this.dragendFun_fm)
|
|
|
+ }
|
|
|
+ div.addEventListener('click',this.clickFun)
|
|
|
+ let box = document.getElementById(idName)
|
|
|
+ box.appendChild(div)
|
|
|
+ }else {
|
|
|
+ let div = document.getElementById(this.ruleForm.id)
|
|
|
+ div.setAttribute('replace', 'text_'+ (this.ruleForm.replace?this.ruleForm.replace:''));
|
|
|
+ div.style.color = this.ruleForm.color
|
|
|
+ div.style.fontSize = this.ruleForm.size + 'px'
|
|
|
+ div.style.zIndex = this.ruleForm.zIndex
|
|
|
+ div.innerHTML = this.ruleForm.textInfo
|
|
|
+ }
|
|
|
this.centerDialogVisible = false
|
|
|
+ this.ruleForm = {}
|
|
|
},
|
|
|
+ /** 添加图片 */
|
|
|
addImage(type){
|
|
|
|
|
|
},
|
|
|
+ /** 添加二维码 */
|
|
|
addQR(type){
|
|
|
- let div = document.createElement('div')
|
|
|
- div.setAttribute('class', 'form-make_zm-style-item');
|
|
|
- div.setAttribute('id', 'qr_'+ Number((new Date()).getTime()));
|
|
|
- div.setAttribute('replace', 'qr_'+ this.ruleForm.replace);
|
|
|
-
|
|
|
- div.setAttribute('draggable', 'true');
|
|
|
- div.style.width = this.ruleForm.width + 'px'
|
|
|
- div.style.height = this.ruleForm.height + 'px'
|
|
|
- div.style.backgroundColor = '#fff'
|
|
|
- div.innerHTML = "二维码位置"
|
|
|
- div.style.color = '#000'
|
|
|
- div.style.fontSize = '16px'
|
|
|
- div.addEventListener('dragend',this.dragendFun)
|
|
|
- div.addEventListener('click',this.clickFun)
|
|
|
- let box = document.getElementById('styleInfo')
|
|
|
-
|
|
|
- box.appendChild(div)
|
|
|
- // let box1 = document.getElementById('styleInfo_list')
|
|
|
- // box1.appendChild(div)
|
|
|
+ let className = `form-make_${type}-style-item`
|
|
|
+ let idName = `styleInfo_${type}`
|
|
|
+ if(!this.ruleForm.id) {
|
|
|
+ this.addTitle = '添加二维码'
|
|
|
+ let div = document.createElement('div')
|
|
|
+ div.setAttribute('class', className);
|
|
|
+ div.setAttribute('id', 'qr_'+ Number((new Date()).getTime()));
|
|
|
+ div.setAttribute('replace', 'qr_'+ (this.ruleForm.replace?this.ruleForm.replace:''));
|
|
|
+
|
|
|
+ div.setAttribute('draggable', 'true');
|
|
|
+ div.style.width = this.ruleForm.width + 'px'
|
|
|
+ div.style.height = this.ruleForm.height + 'px'
|
|
|
+ div.style.backgroundColor = '#fff'
|
|
|
+ div.innerHTML = "二维码位置"
|
|
|
+ div.style.color = '#000'
|
|
|
+ div.style.fontSize = '16px'
|
|
|
+ div.style.zIndex = this.ruleForm.zIndex
|
|
|
+ if(type == 'zm'){
|
|
|
+ div.addEventListener('dragend',this.dragendFun)
|
|
|
+ }else {
|
|
|
+ div.addEventListener('dragend',this.dragendFun_fm)
|
|
|
+ }
|
|
|
+ div.addEventListener('click',this.clickFun)
|
|
|
+ let box = document.getElementById(idName)
|
|
|
+
|
|
|
+ box.appendChild(div)
|
|
|
+ // let box1 = document.getElementById('styleInfo_list')
|
|
|
+ // box1.appendChild(div)
|
|
|
+ }else {
|
|
|
+ let div = document.getElementById(this.ruleForm.id)
|
|
|
+ div.setAttribute('replace', 'qr_'+ (this.ruleForm.replace?this.ruleForm.replace:''));
|
|
|
+ div.style.width = this.ruleForm.width + 'px'
|
|
|
+ div.style.height = this.ruleForm.height + 'px'
|
|
|
+ div.style.zIndex = this.ruleForm.zIndex
|
|
|
+ }
|
|
|
this.centerDialogVisible = false
|
|
|
+ this.ruleForm = {}
|
|
|
},
|
|
|
|
|
|
- /** 拖拽事件 */
|
|
|
+ /** 正面 拖拽事件 */
|
|
|
dragendFun(e){
|
|
|
let draggedItem = document.getElementById(e.target.id);
|
|
|
- let dropzone = document.getElementById('styleInfo');
|
|
|
+ let dropzone = document.getElementById('styleInfo_zm');
|
|
|
+ // 获取元素相对于父元素的位置
|
|
|
+ let rect = draggedItem.getBoundingClientRect();
|
|
|
+ let parentRect = dropzone.getBoundingClientRect();
|
|
|
+
|
|
|
+ // 计算元素在父元素中的位置
|
|
|
+ let left =e.clientX - parentRect.x;
|
|
|
+ let top =e.clientY - parentRect.y;
|
|
|
+ console.log("dragend事件====",e.clientX,e.clientY)
|
|
|
+ // 设置元素的新位置
|
|
|
+ draggedItem.style.left = left + 'px';
|
|
|
+ draggedItem.style.top = top + 'px';
|
|
|
+ },
|
|
|
+ /** 正面 拖拽事件 */
|
|
|
+ dragendFun_fm(e){
|
|
|
+ let draggedItem = document.getElementById(e.target.id);
|
|
|
+ let dropzone = document.getElementById('styleInfo_fm');
|
|
|
// 获取元素相对于父元素的位置
|
|
|
let rect = draggedItem.getBoundingClientRect();
|
|
|
let parentRect = dropzone.getBoundingClientRect();
|
|
@@ -399,18 +485,32 @@ export default {
|
|
|
let draggedItem = document.getElementById(e.target.id);
|
|
|
let content = draggedItem.getAttribute('replace')
|
|
|
let info = draggedItem.innerHTML
|
|
|
+ console.log("content==",content)
|
|
|
if(content.indexOf('text_') > -1) {
|
|
|
+ console.log("draggedItem.style.color==",draggedItem.style.color)
|
|
|
+ this.editFun = 'addText'
|
|
|
+ this.centerDialogVisible = true
|
|
|
this.$set(this,'ruleForm',{
|
|
|
id: e.target.id,
|
|
|
type: 'text',
|
|
|
textInfo: info,
|
|
|
size: Number(draggedItem.style.fontSize.replace('px','')),
|
|
|
color: draggedItem.style.color,
|
|
|
+ zIndex: draggedItem.style.zIndex,
|
|
|
replace: content.replace('text_','')
|
|
|
})
|
|
|
}
|
|
|
if(content.indexOf('qr_') > -1) {
|
|
|
-
|
|
|
+ this.editFun = 'addQr'
|
|
|
+ this.centerDialogVisible = true
|
|
|
+ this.$set(this,'ruleForm',{
|
|
|
+ id: e.target.id,
|
|
|
+ type: 'qr',
|
|
|
+ width: Number(draggedItem.style.width.replace('px','')),
|
|
|
+ height: Number(draggedItem.style.height.replace('px','')),
|
|
|
+ zIndex: draggedItem.style.zIndex,
|
|
|
+ replace: content.replace('qr_','')
|
|
|
+ })
|
|
|
}
|
|
|
console.log(this.ruleForm)
|
|
|
},
|
|
@@ -418,8 +518,22 @@ export default {
|
|
|
centerDialogVisibleOpen(fun,type) {
|
|
|
this.editType = type
|
|
|
this.editFun = fun
|
|
|
+ this.ruleForm = {}
|
|
|
this.centerDialogVisible = true
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.$refs.ruleForm.clearValidate()
|
|
|
+ if(this.editFun == 'addText'){
|
|
|
+ this.$set(this.ruleForm,'zIndex',1)
|
|
|
+ }
|
|
|
+ if(this.editFun == 'addImage'){
|
|
|
+ this.$set(this.ruleForm,'zIndex',1)
|
|
|
+ }
|
|
|
+ if(this.editFun == 'addQR'){
|
|
|
+ this.$set(this.ruleForm,'zIndex',1)
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
+ /** 编辑div */
|
|
|
centerDialogVisiblePush() {
|
|
|
switch(this.editFun){
|
|
|
case 'addText' : this.addText(this.editType); break;
|
|
@@ -427,6 +541,14 @@ export default {
|
|
|
case 'addQR' : this.addQR(this.editType); break;
|
|
|
}
|
|
|
},
|
|
|
+ /** 删除div */
|
|
|
+ delDiv(){
|
|
|
+ if(this.ruleForm.id) {
|
|
|
+ document.getElementById(this.ruleForm.id).remove()
|
|
|
+ this.centerDialogVisible = false
|
|
|
+ this.ruleForm = {}
|
|
|
+ }
|
|
|
+ },
|
|
|
updateFun() {
|
|
|
let div = document.getElementById(this.ruleForm.id)
|
|
|
if(this.ruleForm.type == 'text') {
|
|
@@ -442,7 +564,6 @@ export default {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.form-dialog-box {
|
|
|
- padding: 0 30px;
|
|
|
padding: 0 30px;
|
|
|
min-height: 50vh;
|
|
|
max-height: 65vh;
|
|
@@ -597,17 +718,19 @@ export default {
|
|
|
|
|
|
.form-make {
|
|
|
display: flex;
|
|
|
- flex-direction: column;
|
|
|
- justify-content: center;
|
|
|
+ // flex-direction: column;
|
|
|
+ justify-content: space-between;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
--crad-zm: none;
|
|
|
--crad-fm: none;
|
|
|
- --crad-w: 860px;
|
|
|
- --crad-h: 540px;
|
|
|
+ // --crad-w: 860px;
|
|
|
+ // --crad-h: 540px;
|
|
|
+ --crad-w: 460px;
|
|
|
+ --crad-h: 288px;
|
|
|
.form-make_zm {
|
|
|
display: flex;
|
|
|
- height: 600px;
|
|
|
+ height: 350px;
|
|
|
.form-make_zm-title {
|
|
|
width: 20px;
|
|
|
height: 100%;
|
|
@@ -661,6 +784,63 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .form-make_fm {
|
|
|
+ display: flex;
|
|
|
+ height: 350px;
|
|
|
+ .form-make_fm-title {
|
|
|
+ width: 20px;
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ font-size: 24px;
|
|
|
+ font-family: 600;
|
|
|
+ padding: 20px 20px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ }
|
|
|
+ .form-make_fm-info {
|
|
|
+ width: var(--crad-w);
|
|
|
+ height: 100%;
|
|
|
+ .form-make_fm-tool{
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ width: 100%;
|
|
|
+ height: calc( 100% - var(--crad-h) );
|
|
|
+ box-sizing: border-box;
|
|
|
+ ///padding-bottom: 10px;
|
|
|
+ }
|
|
|
+ .form-make_fm-style {
|
|
|
+ width: 100%;
|
|
|
+ height: var(--crad-h);
|
|
|
+ border: 1px dashed #000;
|
|
|
+ border-radius: 20px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ overflow: hidden;
|
|
|
+ position: relative;
|
|
|
+ .form-make_fm-style-bgm {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ background-image: var(--crad-zm);
|
|
|
+ background-size: 100% 100%;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ border-radius: 20px;
|
|
|
+ }
|
|
|
+ .form-make_fm-style-info {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ position: absolute;
|
|
|
+ z-index: 9;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ border-radius: 20px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|
|
@@ -682,5 +862,20 @@ export default {
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
flex-shrink: 0;
|
|
|
+ background-color: rgba(255, 255, 255, 1);
|
|
|
+}
|
|
|
+.form-make_fm-style-item {
|
|
|
+ position: absolute;
|
|
|
+ top: 30px;
|
|
|
+ left: 30px;
|
|
|
+ color: #000;
|
|
|
+ font-size: 16px;
|
|
|
+ cursor: pointer;
|
|
|
+ white-space: nowrap;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ flex-shrink: 0;
|
|
|
+ background-color: rgba(255, 255, 255, 1);
|
|
|
}
|
|
|
</style>
|