Commit 88f21edd by wangql

修改样式

1 parent 871c4392
<!-- 选择商品弹窗 -->
<template>
<glsx-dialog class="muti-pro" title="选择商品" :isVisible.sync="isMutiSelectVisible" width="70%" @confirmDialog="handleMutiSelectConfirm" @closeDialog="handleMutiSelectClose" :noClose="false" :noCancel="true">
<glsx-dialog class="muti-pro" title="选择商品" :isVisible.sync="isMutiSelectVisible" width="70%" @confirmDialog="handleMutiSelectConfirm" @closeDialog="handleMutiSelectClose" :noClose="false" :noCancel="true" :showClose="true">
<div style="max-height:60vh">
<div class="noproDiv" v-if="!productList.length && fnCallBack">
<img src="@/assets/noPro.png" />
......
<!-- 选择商品 - 单选 -->
<template>
<glsx-dialog class="single-pro" title="选择商品" :isVisible.sync="isSingleSelectVisible" width="900px" @confirmDialog="handleSingleSelectConfirm" @closeDialog="handleSingleSelectClose">
<glsx-dialog class="single-pro" title="选择商品" :isVisible.sync="isSingleSelectVisible" width="900px" @confirmDialog="handleSingleSelectConfirm" @closeDialog="handleSingleSelectClose" :showClose="true">
<div style="max-height:60vh">
<div class="noproDiv" v-if="!productList.length && fnCallBack">
<img src="@/assets/noPro.png" />
......
......@@ -2,7 +2,7 @@
<template>
<div class="edit-share marketing p-t-20 edit-box">
<div class="container edit-container" style="position: relative;">
<div class="right_show">
<!-- <div class="right_show">
<div class="card-top"></div>
<div class="card-middle">
<div>
......@@ -22,6 +22,29 @@
<div class="cremarks">使用说明:</div>
<div class="cremarks_content">{{ editForm.useDescription }}</div>
</div>
</div> -->
<div class="right_show">
<div class="card-top"></div>
<div class="card_one">
<div>
<span class="cname">{{ editForm.couponName }}</span>
<span class="ctype"><span class="ctypeName">代金券</span></span>
</div>
<div class="ctime">
<span class="ctime_name">有效期:</span>
<span class="ctime_content" v-if="editForm.effectiveType == 3">无限制</span>
<span class="ctime_content" v-if="editForm.effectiveType == 1">{{ editForm.effectiveDays }}天</span>
<span class="ctime_content" v-if="editForm.effectiveType == 2">{{ couponTime }}</span>
</div>
<div class="ctime">
<span class="ctime_name">使用限制:</span>
<span class="ctime_content">{{ editForm.useBarriers == 1 ? '无限制' : '满' + editForm.full + '可用' }}</span>
</div>
</div>
<div class="card_two">
<div class="cremarks">使用说明:</div>
<div class="cremarks_content">{{ editForm.useDescription }}</div>
</div>
</div>
<p class="edit-title">{{ title }}代金券</p>
<glsx-combi-form class="edit-form-container" style="min-height: 570px;" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
......@@ -267,7 +290,7 @@ export default {
},
'editForm.effectiveTime'(newValue, oldValue) {
if (newValue && newValue.length > 0) {
this.couponTime = this.setDateString(newValue[0], true) + ' - ' + this.setDateString(newValue[1], true)
this.couponTime = this.setDateString(newValue[0], true) + ' ~ ' + this.setDateString(newValue[1], true)
} else {
this.couponTime = ''
}
......@@ -605,7 +628,6 @@ export default {
</script>
<style scoped>
.right_show {
/* float: right; */
position: absolute;
z-index: 10;
height: 566px;
......@@ -622,37 +644,39 @@ export default {
margin-top: 55px;
}
.right_show .card-middle {
height: 388px;
width: 251px;
margin-left: 18px;
overflow: auto;
.card_one {
width: 243px;
height: 252px;
background: #ffffff;
border-radius: 4px;
margin-left: 22px;
margin-top: 5.81px;
}
.right_show .card-middle .cname {
.cname {
width: 170px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #666666;
font-weight: 400;
margin-left: 10px;
margin-top: 15px;
margin-left: 8px;
margin-top: 10px;
display: inline-block;
}
.right_show .card-middle .ctype {
.ctype {
width: 48px;
height: 20px;
background: #5850ff;
border-radius: 10px;
margin-right: 6px;
margin-top: 10px;
border-radius: 2px;
margin-right: 8px;
margin-top: 8px;
display: inline-block;
float: right;
}
.right_show .card-middle .ctype .ctypeName {
.ctypeName {
width: 36px;
height: 17px;
font-family: PingFangSC-Regular;
......@@ -662,11 +686,11 @@ export default {
margin-left: 6px;
}
.right_show .card-middle .ctime {
margin-left: 10px;
margin-top: 17px;
.ctime {
margin-left: 8px;
margin-top: 10px;
}
.right_show .card-middle .ctime .ctime_name {
.ctime_name {
width: 48px;
height: 17px;
font-family: PingFangSC-Regular;
......@@ -675,7 +699,7 @@ export default {
font-weight: 400;
}
.right_show .card-middle .ctime .ctime_content {
.ctime_content {
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
......@@ -684,27 +708,49 @@ export default {
margin-left: 5px;
}
.right_show .card-middle .ccode {
.ccode {
width: 120px;
height: 120px;
margin-left: 67px;
margin-left: 62px;
margin-top: 8px;
}
.right_show .card-middle .ccodeName {
.ccodeName {
width: 68px;
height: 17px;
font-family: PingFangSC-Medium;
font-size: 12px;
color: #1d1d1d;
font-weight: 500;
margin-left: 93px;
margin-left: 88px;
margin-top: 8px;
}
.right_show .card-middle .cremarks {
margin-left: 10px;
margin-top: 17px;
.link-top {
width: 227px;
height: 1px;
background: #eeeeee;
margin-left: 8px;
margin-top: 8px;
}
.code_d {
margin-left: 98px;
margin-top: 10px;
}
.card_two {
width: 243px;
height: 115px;
background: #ffffff;
border-radius: 4px;
margin-left: 22px;
margin-top: 8px;
}
.cremarks {
padding-left: 8px;
padding-top: 8px;
width: 60px;
height: 17px;
font-family: PingFangSC-Regular;
......@@ -713,16 +759,17 @@ export default {
font-weight: 400;
}
.right_show .card-middle .cremarks_content {
margin-left: 10px;
margin-right: 11px;
.cremarks_content {
margin-left: 8px;
margin-right: 8px;
margin-top: 4px;
width: 230px;
height: 34px;
width: 227px;
height: 80px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #666666;
font-weight: 400;
word-break: break-word;
overflow: auto;
}
</style>
<!-- 编辑代金券 -->
<!-- 编辑折扣券 -->
<template>
<div class="edit-share marketing p-t-20 edit-box">
<div class="container edit-container" style="height: 630px; position: relative">
<div class="right_show">
<!-- <div class="right_show">
<div class="card-top"></div>
<div class="card-middle">
<div>
......@@ -17,8 +17,32 @@
<div class="ctime">
<span class="ctime_name">核销劵码:</span>
</div>
<img class="ccode" src="../../assets/coupon/code.png" />
<img class="ccode" src="../../assets/coupon/code2.png" />
<div class="ccodeName">GH078-003</div>
<div class="cremarks">使用说明:</div>
<div class="cremarks_content">{{ editForm.useDescription }}</div>
</div>
</div> -->
<div class="right_show">
<div class="card-top"></div>
<div class="card_one">
<div>
<span class="cname">{{ editForm.couponName }}</span>
<span class="ctype"><span class="ctypeName">折扣券</span></span>
</div>
<div class="ctime">
<span class="ctime_name">有效期:</span>
<span class="ctime_content" v-if="editForm.effectiveType == 1">{{ editForm.effectiveDays }}天</span>
<span class="ctime_content" v-if="editForm.effectiveType == 2">{{ couponTime }}</span>
</div>
<div class="link-top"></div>
<div class="code_d">
<span class="ctime_name">核销劵码</span>
</div>
<img class="ccode" src="../../assets/coupon/code2.png" />
<div class="ccodeName">GH078-003</div>
</div>
<div class="card_two">
<div class="cremarks">使用说明:</div>
<div class="cremarks_content">{{ editForm.useDescription }}</div>
</div>
......@@ -276,7 +300,6 @@ export default {
</script>
<style scoped>
.right_show {
/* float: right; */
position: absolute;
z-index: 10;
height: 566px;
......@@ -293,7 +316,7 @@ export default {
margin-top: 55px;
}
.right_show .card-middle {
/* .right_show .card-middle {
height: 388px;
width: 251px;
margin-left: 18px;
......@@ -395,5 +418,134 @@ export default {
color: #666666;
font-weight: 400;
word-break: break-word;
} */
.card_one {
width: 243px;
height: 252px;
background: #ffffff;
border-radius: 4px;
margin-left: 22px;
margin-top: 5.81px;
}
.cname {
width: 170px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #666666;
font-weight: 400;
margin-left: 8px;
margin-top: 10px;
display: inline-block;
}
.ctype {
width: 48px;
height: 20px;
background: #5850ff;
border-radius: 2px;
margin-right: 8px;
margin-top: 8px;
display: inline-block;
float: right;
}
.ctypeName {
width: 36px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #ffffff;
font-weight: 400;
margin-left: 6px;
}
.ctime {
margin-left: 8px;
margin-top: 10px;
}
.ctime_name {
width: 48px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #333333;
font-weight: 400;
}
.ctime_content {
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #717171;
font-weight: 400;
margin-left: 5px;
}
.ccode {
width: 120px;
height: 120px;
margin-left: 62px;
margin-top: 8px;
}
.ccodeName {
width: 68px;
height: 17px;
font-family: PingFangSC-Medium;
font-size: 12px;
color: #1d1d1d;
font-weight: 500;
margin-left: 88px;
margin-top: 8px;
}
.link-top {
width: 227px;
height: 1px;
background: #eeeeee;
margin-left: 8px;
margin-top: 8px;
}
.code_d {
margin-left: 98px;
margin-top: 10px;
}
.card_two {
width: 243px;
height: 115px;
background: #ffffff;
border-radius: 4px;
margin-left: 22px;
margin-top: 8px;
}
.cremarks {
padding-left: 8px;
padding-top: 8px;
width: 60px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #333333;
font-weight: 400;
}
.cremarks_content {
margin-left: 8px;
margin-right: 8px;
margin-top: 4px;
width: 227px;
height: 80px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #666666;
font-weight: 400;
word-break: break-word;
overflow: auto;
}
</style>
<!-- 编辑代金券 -->
<!-- 编辑兑换券 -->
<template>
<div class="edit-share marketing p-t-20 edit-box">
<div class="container edit-container" style="height: 630px;position: relative;">
<div class="right_show">
<div class="card-top"></div>
<div class="card-middle">
<div class="card_one">
<div>
<span class="cname">{{ editForm.couponName }}</span>
<span class="ctype"><span class="ctypeName">兑换券</span></span>
......@@ -14,11 +14,14 @@
<span class="ctime_content" v-if="editForm.effectiveType == 1">{{ editForm.effectiveDays }}天</span>
<span class="ctime_content" v-if="editForm.effectiveType == 2">{{ couponTime }}</span>
</div>
<div class="ctime">
<span class="ctime_name">核销劵码:</span>
<div class="link-top"></div>
<div class="code_d">
<span class="ctime_name">核销劵码</span>
</div>
<img class="ccode" src="../../assets/coupon/code.png" />
<img class="ccode" src="../../assets/coupon/code2.png" />
<div class="ccodeName">GH078-003</div>
</div>
<div class="card_two">
<div class="cremarks">使用说明:</div>
<div class="cremarks_content">{{ editForm.useDescription }}</div>
</div>
......@@ -159,7 +162,7 @@ export default {
},
'editForm.effectiveTime'(newValue, oldValue) {
if (newValue && newValue.length > 0) {
this.couponTime = this.setDateString(newValue[0], true) + ' - ' + this.setDateString(newValue[1], true)
this.couponTime = this.setDateString(newValue[0], true) + ' ~ ' + this.setDateString(newValue[1], true)
} else {
this.couponTime = ''
}
......@@ -276,7 +279,6 @@ export default {
</script>
<style scoped>
.right_show {
/* float: right; */
position: absolute;
z-index: 10;
height: 566px;
......@@ -293,37 +295,39 @@ export default {
margin-top: 55px;
}
.right_show .card-middle {
height: 388px;
width: 251px;
margin-left: 18px;
overflow: auto;
.card_one {
width: 243px;
height: 252px;
background: #ffffff;
border-radius: 4px;
margin-left: 22px;
margin-top: 5.81px;
}
.right_show .card-middle .cname {
.cname {
width: 170px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #666666;
font-weight: 400;
margin-left: 10px;
margin-top: 15px;
margin-left: 8px;
margin-top: 10px;
display: inline-block;
}
.right_show .card-middle .ctype {
.ctype {
width: 48px;
height: 20px;
background: #5850ff;
border-radius: 10px;
margin-right: 6px;
margin-top: 10px;
border-radius: 2px;
margin-right: 8px;
margin-top: 8px;
display: inline-block;
float: right;
}
.right_show .card-middle .ctype .ctypeName {
.ctypeName {
width: 36px;
height: 17px;
font-family: PingFangSC-Regular;
......@@ -333,11 +337,11 @@ export default {
margin-left: 6px;
}
.right_show .card-middle .ctime {
margin-left: 10px;
margin-top: 17px;
.ctime {
margin-left: 8px;
margin-top: 10px;
}
.right_show .card-middle .ctime .ctime_name {
.ctime_name {
width: 48px;
height: 17px;
font-family: PingFangSC-Regular;
......@@ -346,7 +350,7 @@ export default {
font-weight: 400;
}
.right_show .card-middle .ctime .ctime_content {
.ctime_content {
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
......@@ -355,27 +359,49 @@ export default {
margin-left: 5px;
}
.right_show .card-middle .ccode {
.ccode {
width: 120px;
height: 120px;
margin-left: 67px;
margin-left: 62px;
margin-top: 8px;
}
.right_show .card-middle .ccodeName {
.ccodeName {
width: 68px;
height: 17px;
font-family: PingFangSC-Medium;
font-size: 12px;
color: #1d1d1d;
font-weight: 500;
margin-left: 93px;
margin-left: 88px;
margin-top: 8px;
}
.right_show .card-middle .cremarks {
margin-left: 10px;
margin-top: 17px;
.link-top {
width: 227px;
height: 1px;
background: #eeeeee;
margin-left: 8px;
margin-top: 8px;
}
.code_d {
margin-left: 98px;
margin-top: 10px;
}
.card_two {
width: 243px;
height: 115px;
background: #ffffff;
border-radius: 4px;
margin-left: 22px;
margin-top: 8px;
}
.cremarks {
padding-left: 8px;
padding-top: 8px;
width: 60px;
height: 17px;
font-family: PingFangSC-Regular;
......@@ -384,16 +410,17 @@ export default {
font-weight: 400;
}
.right_show .card-middle .cremarks_content {
margin-left: 10px;
margin-right: 11px;
.cremarks_content {
margin-left: 8px;
margin-right: 8px;
margin-top: 4px;
width: 230px;
height: 34px;
width: 227px;
height: 80px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #666666;
font-weight: 400;
word-break: break-word;
overflow: auto;
}
</style>
......@@ -3,7 +3,7 @@
<div class="marketing pro-group p-t-20">
<div class="m-b-20">
<el-button :size="size" type="primary" class="el-icon-plus" @click="addCashCoupon()">新建代金券</el-button>
<el-button :size="size" type="primary" class="el-icon-plus" style="margin-left:30px;" @click="addService()">新建会员服务</el-button>
<!-- <el-button :size="size" type="primary" class="el-icon-plus" style="margin-left:30px;" @click="addService()">新建会员服务</el-button> -->
<el-button :size="size" type="primary" class="el-icon-plus" style="margin-left:30px;" @click="addDiscountCoupon()">新建折扣劵</el-button>
<el-button :size="size" type="primary" class="el-icon-plus" style="margin-left:30px;" @click="addExchangeCoupon()">新建兑换券</el-button>
</div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!