Commit 18e38497 by wuwx

优惠券侧边展示栏同步样式

1 parent 0b2ec1a4
......@@ -18,9 +18,9 @@ module.exports = {
code_message_map: {}
},
request: {
// baseURL: 'http://scrm.test.glsx.com.cn/',
baseURL: 'http://scrm.test.glsx.com.cn/',
// baseURL: 'http://192.168.2.42:8064/',
baseURL: 'http://scrm.dev.glsx.com.cn/',
// baseURL: 'http://scrm.dev.glsx.com.cn/',
// 设置超时时间
timeout: 180000,
// 携带凭证
......
......@@ -4,31 +4,59 @@
<div class="container edit-container" style="position: relative">
<div class="right_show">
<div class="card-top"></div>
<div class="card_one">
<div class="flex">
<div class="cname">{{ editForm.couponName }}</div>
<img src="../../images/cash.png" class="couponImg" />
</div>
<!-- <div class="ctype">
<div class="slider">
<div class="card_one">
<div class="flex">
<div :class="editForm.status == 3 ? 'darkColor' : ''" class="cname">{{ editForm.couponName }}</div>
<img src="../../images/unCash.png" class="couponImg" v-if="editForm.status == 3" />
<img src="../../images/cash.png" class="couponImg" v-else />
</div>
<!-- <div class="ctype">
<div class="ctypeName"></div>
</div> -->
<div class="validityPeriod">
<!-- <span class="ctime_name">有效期:</span> -->
<span v-if="editForm.effectiveType == 3">永久有效</span>
<span v-if="editForm.effectiveType == 1">领取后{{ editForm.effectiveDays }}天内有效</span>
<span v-if="editForm.effectiveType == 2">{{ couponTime }}</span>
<div class="validityPeriod">
<!-- <span class="ctime_name">有效期:</span> -->
<span v-if="editForm.effectiveType == 3">永久有效</span>
<span v-if="editForm.effectiveType == 1">领取后{{ editForm.effectiveDays }}天内有效</span>
<span v-if="editForm.effectiveType == 2">{{ couponTime }}</span>
</div>
<div style="height: 1px;background-color: rgb(238, 238, 238);margin: 0 16px;"></div>
<div :class="editForm.status == 3 ? 'darkColor' : ''" class="ctime">
<!-- <span class="ctime_name">使用限制:</span> -->
<span v-show="editForm.denomination" style="font-size: 12px;">¥</span>
<span class="ctime_content" style="font-size: 20px;font-weight: 600;" v-show="editForm.denomination">{{ editForm.denomination }}</span>
<span class="ctime_content">{{ editForm.useBarriers == 1 ? '无门槛' : '满' + editForm.full + '元可用' }}</span>
</div>
<div class="ccode">
<img src="../../assets/coupon/code2.png" />
</div>
<div style="height: 1px;background-color: rgb(238, 238, 238);margin: 7px 16px 8px;"></div>
<div class="process">
<img src="../../images/unArrow.png" v-if="editForm.status == 3" />
<img src="../../images/arrow.png" v-else />
<span class="process_text">导航到店</span>
<img class="rightArrow" src="../../images/rightArrow.png" />
<img src="../../images/unCar.png" v-if="editForm.status == 3" />
<img src="../../images/car.png" v-else />
<span class="process_text">开始服务</span>
<img class="rightArrow" src="../../images/rightArrow.png" />
<img src="../../images/unTicket.png" v-if="editForm.status == 3" />
<img src="../../images/ticket.png" v-else />
<span class="process_text">出示核销码</span>
</div>
</div>
<div style="height: 1px;background-color: rgb(238, 238, 238);margin: 0 16px;"></div>
<div></div>
<div class="ctime">
<span class="ctime_name">使用限制:</span>
<span class="ctime_content">{{ editForm.useBarriers == 1 ? '无限制' : '满' + editForm.full + '可用' }}</span>
<div class="card_two">
<div class="cremarks">有效日期:</div>
<div class="validityPeriod" style="margin: 0 8px 8px 8px;">
<span v-if="editForm.effectiveType == 3">永久有效</span>
<span v-if="editForm.effectiveType == 1">领取后{{ editForm.effectiveDays }}天内有效</span>
<span v-if="editForm.effectiveType == 2">{{ couponTime }}</span>
</div>
<div class="cremarks">使用说明:</div>
<div class="cremarks_content" style="white-space:pre-wrap">{{ editForm.useDescription }}</div>
</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">
......@@ -103,7 +131,6 @@
</GLTable>
</div>
<template slot="useDescriptionHtml">
<!-- <fileBox @change="writeChange" ref="fileBox"></fileBox> -->
<el-input type="textarea" v-model="editForm.useDescription" style="width: 320px" :autosize="{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="userDisable" />
</template>
<template slot="editHtml">
......@@ -122,12 +149,8 @@
<script>
import { limitPrice } from '@/common/constant'
import fileBox from './fileBox.vue'
export default {
name: 'editCashCoupon',
components: {
// fileBox
},
data() {
return {
defaultTime: ['00:00:00', '23:59:59'], // 选择日期后的默认时间
......@@ -438,12 +461,6 @@ export default {
},
methods: {
// 获取富文本框内容
// writeChange(val) {
// let reg = /(?<=(<p[^>]*?>)).*?(?=(<\/p>))/g
// this.editForm.useDescription = val.match(reg)
// console.log('this.editForm.useDescription', this.editForm.useDescription)
// },
haveChange() {
let oDateOne = new Date(this.editForm.effectiveTime[0]).getTime()
let timeStamp = new Date().getTime()
......@@ -674,7 +691,7 @@ export default {
//使用描述
obj.useDescription = form.useDescription
//预估成本
obj.anticipatedCost = form.anticipatedCost * 100
obj.anticipatedCost = (form.anticipatedCost * 100).toFixed(0)
return obj
},
......@@ -755,7 +772,7 @@ export default {
.card_one {
width: 243px;
height: 252px;
height: 288px;
background: #ffffff;
border-radius: 4px;
margin-left: 22px;
......@@ -797,23 +814,23 @@ export default {
}
.ctime {
margin-left: 8px;
margin-top: 10px;
margin: 8px 16px 9px;
text-align: center;
color: #fc5b32;
}
.ctime_name {
/* .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;
}
......@@ -821,8 +838,8 @@ export default {
.ccode {
width: 120px;
height: 120px;
margin-left: 62px;
margin-top: 8px;
margin: 0 16px;
margin: auto;
}
.ccodeName {
......@@ -851,7 +868,7 @@ export default {
.card_two {
width: 243px;
height: 115px;
height: 162px;
background: #ffffff;
border-radius: 4px;
margin-left: 22px;
......@@ -891,15 +908,45 @@ export default {
.couponImg {
width: 69px;
height: 69px;
position: absolute;
right: 20px;
position: sticky;
top: 114px;
right: 14px;
margin-top: -6px;
margin-right: -6px;
}
.validityPeriod {
font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #a0a0a0;
margin: 0 0 16px 16px;
margin: 0 16px 8px 16px;
}
.process {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 2px;
}
.process .process_text {
margin-left: 2px;
font-size: 12px;
color: #333;
}
.process img {
width: 12px;
height: 12px;
}
.process .rightArrow {
padding: 0 4px;
}
.slider {
height: 380px;
overflow: auto;
}
.slider::-webkit-scrollbar-thumb {
background: transparent;
}
.darkColor {
color: #999;
}
</style>
......@@ -25,26 +25,58 @@
</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 class="slider">
<div class="card_one">
<div class="flex">
<div :class="editForm.status == 3 ? 'darkColor' : ''" class="cname">{{ editForm.couponName }}</div>
<img src="../../images/unDiscount.png" class="couponImg" v-if="editForm.status == 3" />
<img src="../../images/discount.png" class="couponImg" v-else />
</div>
<!-- <div class="ctype">
<div class="ctypeName"></div>
</div> -->
<div class="validityPeriod">
<!-- <span class="ctime_name">有效期:</span> -->
<span v-if="editForm.effectiveType == 3">永久有效</span>
<span v-if="editForm.effectiveType == 1">领取后{{ editForm.effectiveDays }}天内有效</span>
<span v-if="editForm.effectiveType == 2">{{ couponTime }}</span>
</div>
<div style="height: 1px;background-color: rgb(238, 238, 238);margin: 0 16px;"></div>
<div :class="editForm.status == 3 ? 'darkColor' : ''" class="ctime">
<!-- <span class="ctime_name">使用限制:</span> -->
<span class="ctime_content" style="font-size: 20px;font-weight: 600;" v-show="editForm.discountIntensity">{{ editForm.discountIntensity }}</span>
<span v-show="editForm.discountIntensity" style="font-size: 12px;">折</span>
<span class="ctime_content">{{ editForm.useBarriers == 1 ? '无门槛' : '满' + editForm.full + '元可用' }}</span>
</div>
<div class="ccode">
<img src="../../assets/coupon/code2.png" />
</div>
<div style="height: 1px;background-color: rgb(238, 238, 238);margin: 7px 16px 8px;"></div>
<div class="process">
<img src="../../images/unArrow.png" v-if="editForm.status == 3" />
<img src="../../images/arrow.png" v-else />
<span class="process_text">导航到店</span>
<img class="rightArrow" src="../../images/rightArrow.png" />
<img src="../../images/unCar.png" v-if="editForm.status == 3" />
<img src="../../images/car.png" v-else />
<span class="process_text">开始服务</span>
<img class="rightArrow" src="../../images/rightArrow.png" />
<img src="../../images/unTicket.png" v-if="editForm.status == 3" />
<img src="../../images/ticket.png" v-else />
<span class="process_text">出示核销码</span>
</div>
</div>
<div class="link-top"></div>
<div class="code_d">
<span class="ctime_name">核销劵码</span>
<div class="card_two">
<div class="cremarks">有效日期:</div>
<div class="validityPeriod" style="margin: 0 8px 8px 8px;">
<span v-if="editForm.effectiveType == 3">永久有效</span>
<span v-if="editForm.effectiveType == 1">领取后{{ editForm.effectiveDays }}天内有效</span>
<span v-if="editForm.effectiveType == 2">{{ couponTime }}</span>
</div>
<div class="cremarks">使用说明:</div>
<div class="cremarks_content" style="white-space:pre-wrap">{{ editForm.useDescription }}</div>
</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>
</div>
<p class="edit-title">{{ title }}折扣劵</p>
......@@ -314,8 +346,8 @@ export default {
},
methods: {
loseFocus() {
if (this.editForm.useLimitPrice <= 0) {
this.editForm.useLimitPrice = ''
if (this.editForm.full <= 0 || this.editForm.full > 99999.99) {
this.editForm.full = ''
}
if (this.editForm.discountIntensity == 0) {
this.editForm.discountIntensity = ''
......@@ -607,7 +639,7 @@ export default {
.card_one {
width: 243px;
height: 252px;
height: 288px;
background: #ffffff;
border-radius: 4px;
margin-left: 22px;
......@@ -615,15 +647,16 @@ export default {
}
.cname {
width: 170px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #666666;
font-weight: 400;
margin-left: 8px;
margin-top: 10px;
margin: 16px 0 10px 16px;
display: inline-block;
font-size: 18px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #fc5b32;
max-width: 164px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ctype {
......@@ -648,23 +681,23 @@ export default {
}
.ctime {
margin-left: 8px;
margin-top: 10px;
margin: 8px 16px 9px;
text-align: center;
color: #fc5b32;
}
.ctime_name {
/* .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;
}
......@@ -672,8 +705,8 @@ export default {
.ccode {
width: 120px;
height: 120px;
margin-left: 62px;
margin-top: 8px;
margin: 0 16px;
margin: auto;
}
.ccodeName {
......@@ -702,7 +735,7 @@ export default {
.card_two {
width: 243px;
height: 115px;
height: 162px;
background: #ffffff;
border-radius: 4px;
margin-left: 22px;
......@@ -742,4 +775,48 @@ export default {
.glsx-combi-form .el-form-item--small.el-form-item {
margin-top: 0px !important;
}
.couponImg {
width: 69px;
height: 69px;
position: sticky;
top: 114px;
right: 14px;
margin-top: -6px;
margin-right: -6px;
}
.validityPeriod {
font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #a0a0a0;
margin: 0 16px 8px 16px;
}
.process {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 2px;
}
.process .process_text {
margin-left: 2px;
font-size: 12px;
color: #333;
}
.process img {
width: 12px;
height: 12px;
}
.process .rightArrow {
padding: 0 4px;
}
.slider {
height: 380px;
overflow: auto;
}
.slider::-webkit-scrollbar-thumb {
background: transparent;
}
.darkColor {
color: #999;
}
</style>
......@@ -4,26 +4,52 @@
<div class="container edit-container" style="height: 630px; position: relative">
<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 class="slider">
<div class="card_one">
<div class="flex">
<div :class="editForm.status == 3 ? 'darkColor' : ''" class="cname">{{ editForm.couponName }}</div>
<img src="../../images/unExchange.png" class="couponImg" v-if="editForm.status == 3" />
<img src="../../images/exchange.png" class="couponImg" v-else />
</div>
<!-- <div class="ctype">
<div class="ctypeName"></div>
</div> -->
<div class="validityPeriod">
<!-- <span class="ctime_name">有效期:</span> -->
<span v-if="editForm.effectiveType == 3">永久有效</span>
<span v-if="editForm.effectiveType == 1">领取后{{ editForm.effectiveDays }}天内有效</span>
<span v-if="editForm.effectiveType == 2">{{ couponTime }}</span>
</div>
<div style="height: 1px;background-color: rgb(238, 238, 238);margin: 0 16px 7px;"></div>
<div class="ccode">
<img src="../../assets/coupon/code2.png" />
</div>
<div style="height: 1px;background-color: rgb(238, 238, 238);margin: 7px 16px 8px;"></div>
<div class="process">
<img src="../../images/unArrow.png" v-if="editForm.status == 3" />
<img src="../../images/arrow.png" v-else />
<span class="process_text">导航到店</span>
<img class="rightArrow" src="../../images/rightArrow.png" />
<img src="../../images/unCar.png" v-if="editForm.status == 3" />
<img src="../../images/car.png" v-else />
<span class="process_text">开始服务</span>
<img class="rightArrow" src="../../images/rightArrow.png" />
<img src="../../images/unTicket.png" v-if="editForm.status == 3" />
<img src="../../images/ticket.png" v-else />
<span class="process_text">出示核销码</span>
</div>
</div>
<div class="link-top"></div>
<div class="code_d">
<span class="ctime_name">核销劵码</span>
<div class="card_two">
<div class="cremarks">有效日期:</div>
<div class="validityPeriod" style="margin: 0 8px 8px 8px;">
<span v-if="editForm.effectiveType == 3">永久有效</span>
<span v-if="editForm.effectiveType == 1">领取后{{ editForm.effectiveDays }}天内有效</span>
<span v-if="editForm.effectiveType == 2">{{ couponTime }}</span>
</div>
<div class="cremarks">使用说明:</div>
<div class="cremarks_content" style="white-space:pre-wrap">{{ editForm.useDescription }}</div>
</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>
</div>
<p class="edit-title">{{ title }}兑换券</p>
......@@ -340,7 +366,7 @@ export default {
//是否定制礼包专用
obj.directionalFlag = form.directionalFlag
//预估成本
obj.anticipatedCost = form.anticipatedCost * 100
obj.anticipatedCost = (form.anticipatedCost * 100).toFixed(0)
return obj
},
......@@ -410,7 +436,7 @@ export default {
.card_one {
width: 243px;
height: 252px;
height: 260px;
background: #ffffff;
border-radius: 4px;
margin-left: 22px;
......@@ -418,15 +444,16 @@ export default {
}
.cname {
width: 170px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #666666;
font-weight: 400;
margin-left: 8px;
margin-top: 10px;
margin: 16px 0 10px 16px;
display: inline-block;
font-size: 18px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #fc5b32;
max-width: 164px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ctype {
......@@ -450,33 +477,20 @@ export default {
margin-left: 6px;
}
.ctime {
margin-left: 8px;
margin-top: 10px;
}
.ctime_name {
/* .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;
margin: 0 16px;
margin: auto;
}
.ccodeName {
......@@ -505,7 +519,7 @@ export default {
.card_two {
width: 243px;
height: 115px;
height: 162px;
background: #ffffff;
border-radius: 4px;
margin-left: 22px;
......@@ -545,4 +559,48 @@ export default {
.glsx-combi-form .el-form-item--small.el-form-item {
margin-top: 0px !important;
}
.couponImg {
width: 69px;
height: 69px;
position: sticky;
top: 114px;
right: 14px;
margin-top: -6px;
margin-right: -6px;
}
.validityPeriod {
font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #a0a0a0;
margin: 0 16px 8px 16px;
}
.process {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 2px;
}
.process .process_text {
margin-left: 2px;
font-size: 12px;
color: #333;
}
.process img {
width: 12px;
height: 12px;
}
.process .rightArrow {
padding: 0 4px;
}
.slider {
height: 380px;
overflow: auto;
}
.slider::-webkit-scrollbar-thumb {
background: transparent;
}
.darkColor {
color: #999;
}
</style>
<template>
<div>
<div id="div-demo"></div>
</div>
</template>
<script>
import E from 'wangeditor'
export default {
name: 'textBox',
data() {
return {
editor: '',
content: '',
editorOption: {}
}
},
mounted() {
this.getEdit()
},
methods: {
getEdit() {
const _this = this
this.editor = new E('#div-demo')
// 配置菜单栏,删减菜单,调整顺序
this.editor.config.menus = []
this.editor.config.uploadImgShowBase64 = true
this.editor.config.showMenuTooltips = true
this.editor.config.menuTooltipPosition = 'down'
this.editor.config.height = 400
this.editor.config.width = 500
this.editor.config.uploadVideoServer = '/api/upload-video'
this.editor.config.excludeMenus = ['code', 'video']
this.editor.config.onchange = html => {
// console.log(html);
this.content = html // 绑定当前逐渐地值
this.$emit('change', this.content) // 将内容同步到父组件中
}
this.editor.config.customUploadImg = function(resultFiles, insertImgFn) {
var file = resultFiles[0]
var reader = new FileReader()
// 默认1MB
const limitSize = 10
const isLt = file.size / 1024 / 1024 < limitSize
if (!isLt) {
_this.$message.error('上传图片大小不能超过' + limitSize + 'MB!')
return true
}
reader.readAsDataURL(file)
reader.onload = e => {
const imgFile = e.target.result
const base64 = file.name.split('.')[1] + '@' + imgFile.split(',')[1]
_this.$apis.common.pictureUpload({ file: base64 }).then(res => {
if (res) {
// console.log(res)
insertImgFn(res)
}
})
// resultFiles 是 input 中选中的文件列表
// insertImgFn 是获取图片 url 后,插入到编辑器的方法
// 上传图片,返回结果,将图片插入到编辑器中
}
}
this.editor.config.onchangeTimeout = 5000
this.editor.create()
},
setEdit(html) {
this.$nextTick(() => {
this.editor.txt.html(html)
})
}
}
}
</script>
<style lang="scss" scoped>
#div-demo {
margin: 16px 300px 0 0;
}
.el-form .editor {
margin-top: 20px;
}
.myQuillEditor {
background-color: #fff;
height: 200px;
}
</style>
<style>
.w-e-text-container {
z-index: 1 !important;
height: 70px !important;
}
.w-e-toolbar {
z-index: 2 !important;
}
.w-e-text {
width: 220px !important;
}
</style>
......@@ -103,7 +103,7 @@
</el-form-item> -->
</el-form>
<div class="serviceCard">
<!-- <div class="serviceCard">
<div class="cardtop">
<img src="@/assets/serviceMemberCard.png" alt="" />
<span class="serviceName ellipsis-1" :title="ruleForm.couponName">{{ ruleForm.couponName || '-' }}</span>
......@@ -113,6 +113,55 @@
<div class="desc">使用说明:</div>
<span class="detailDesc">{{ ruleForm.useDescription }}</span>
</div>
</div> -->
<div class="right_show">
<div class="card-top"></div>
<div class="slider">
<div class="card_one">
<div :class="ruleForm.status == 3 ? 'darkColor' : ''" class="cname">{{ ruleForm.couponName }}</div>
<img src="../../images/unService.png" class="couponImg" v-if="ruleForm.status == 3" />
<img src="../../images/service.png" class="couponImg" v-else />
<!-- <div class="ctype">
<div class="ctypeName"></div>
</div> -->
<div class="validityPeriod">
<!-- <span class="ctime_name">有效期:</span> -->
<span>{{ effectiveRangeText }}</span>
</div>
<div style="height: 1px;background-color: rgb(238, 238, 238);margin: 0 16px;"></div>
<div :class="ruleForm.status == 3 ? 'darkColor' : ''" class="ctime">
<!-- <span class="ctime_name">使用限制:</span> -->
<span class="ctime_content">{{ limitText }}</span>
</div>
<div class="ccode">
<img src="../../assets/coupon/code2.png" />
</div>
<div style="height: 1px;background-color: rgb(238, 238, 238);margin: 7px 16px 8px;"></div>
<div class="process">
<img src="../../images/unArrow.png" v-if="ruleForm.status == 3" />
<img src="../../images/arrow.png" v-else />
<span class="process_text">导航到店</span>
<img class="rightArrow" src="../../images/rightArrow.png" />
<img src="../../images/unCar.png" v-if="ruleForm.status == 3" />
<img src="../../images/car.png" v-else />
<span class="process_text">开始服务</span>
<img class="rightArrow" src="../../images/rightArrow.png" />
<img src="../../images/unTicket.png" v-if="ruleForm.status == 3" />
<img src="../../images/ticket.png" v-else />
<span class="process_text">出示核销码</span>
</div>
</div>
<div class="card_two">
<div class="cremarks">有效日期:</div>
<div class="validityPeriod" style="margin: 0 8px 8px 8px;">
<span>{{ effectiveRangeText }}</span>
</div>
<div class="cremarks">使用说明:</div>
<div class="cremarks_content" style="white-space:pre-wrap">{{ ruleForm.useDescription }}</div>
</div>
</div>
</div>
</div>
<div
......@@ -255,7 +304,7 @@ export default {
} else if (this.ruleForm.effectiveType == 2) {
return `${this.ruleForm.daterange[0]}-${this.ruleForm.daterange[1]}`
}
return '无有效期'
return '永久有效'
}
// 有效期内可使用3次
},
......@@ -572,70 +621,70 @@ export default {
.itemBlock {
margin-top: 10px;
}
.serviceCard {
position: absolute;
padding: 10px;
box-sizing: border-box;
// .serviceCard {
// position: absolute;
// padding: 10px;
// box-sizing: border-box;
top: 136px;
right: 78px;
width: 343px;
min-height: 184px;
background: #ffffff;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
border-radius: 4px;
border: 1px solid #e4e7ed;
span {
font-size: 12px;
// top: 136px;
// right: 78px;
// width: 343px;
// min-height: 184px;
// background: #ffffff;
// box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
// border-radius: 4px;
// border: 1px solid #e4e7ed;
// span {
// font-size: 12px;
font-weight: 400;
color: #999999;
}
.cardtop {
position: relative;
.serviceName {
position: absolute;
left: 88px;
top: 5px;
width: 230px;
font-size: 14px;
// font-weight: 400;
// color: #999999;
// }
// .cardtop {
// position: relative;
// .serviceName {
// position: absolute;
// left: 88px;
// top: 5px;
// width: 230px;
// font-size: 14px;
font-weight: 600;
color: #333333;
}
.effectiveRange {
position: absolute;
left: 88px;
top: 30px;
}
.timeRange {
position: absolute;
left: 88px;
top: 60px;
}
.grayLine {
position: absolute;
width: 100%;
left: 0;
top: 90px;
height: 1px;
opacity: 0.14;
background-color: #979797;
}
.desc {
margin-top: 20px;
margin-left: 88px;
color: #333;
}
.detailDesc {
display: inline-block;
margin-left: 88px;
margin-top: 10px;
width: 230px;
word-wrap: break-word;
}
}
}
// font-weight: 600;
// color: #333333;
// }
// .effectiveRange {
// position: absolute;
// left: 88px;
// top: 30px;
// }
// .timeRange {
// position: absolute;
// left: 88px;
// top: 60px;
// }
// .grayLine {
// position: absolute;
// width: 100%;
// left: 0;
// top: 90px;
// height: 1px;
// opacity: 0.14;
// background-color: #979797;
// }
// .desc {
// margin-top: 20px;
// margin-left: 88px;
// color: #333;
// }
// .detailDesc {
// display: inline-block;
// margin-left: 88px;
// margin-top: 10px;
// width: 230px;
// word-wrap: break-word;
// }
// }
// }
}
.footer-panel {
display: flex;
......@@ -678,4 +727,200 @@ export default {
}
}
}
.right_show {
position: absolute;
z-index: 10;
height: 566px;
width: 290px;
right: 44px;
top: 92px;
background-image: url(../../assets/coupon/phone.png);
}
.right_show .card-top {
height: 59px;
width: 251px;
margin-left: 18px;
margin-top: 55px;
}
.card_one {
width: 243px;
height: 285px;
background: #ffffff;
border-radius: 4px;
margin-left: 22px;
margin-top: 5.81px;
}
.cname {
margin: 16px 0 10px 16px;
display: inline-block;
font-size: 18px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #fc5b32;
max-width: 164px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
height: 35px;
}
.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: 8px 16px 9px;
text-align: center;
color: #fc5b32;
}
/* .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;
font-weight: 400;
margin-left: 5px;
}
.ccode {
width: 120px;
height: 120px;
margin: 0 16px;
margin: auto;
}
.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: 162px;
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;
}
.promptCopy {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
color: #999;
margin-left: -10px;
}
.couponImg {
width: 69px;
height: 69px;
position: sticky;
float: right;
margin-top: -6px;
margin-right: -6px;
}
.validityPeriod {
font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #a0a0a0;
margin: 0 16px 8px 16px;
}
.process {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 2px;
}
.process .process_text {
margin-left: 2px;
font-size: 12px;
color: #333;
}
.process img {
width: 12px;
height: 12px;
}
.process .rightArrow {
padding: 0 4px;
}
.slider {
height: 380px;
overflow: auto;
}
.slider::-webkit-scrollbar-thumb {
background: transparent;
}
.darkColor {
color: #999;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!