Commit 767facea by 王志慧

fixed

1 parent 1ba673b5
......@@ -204,10 +204,10 @@ export default {
},
// 选择/取消 门店服务
handleSelectionServiceTable(selection, val) {
if (selection && selection.find(item => item && item.id == row.id)) {
this.addRows(this.selectedServiceList, [row])
if (selection && selection.find(item => item && item.id == val.id)) {
this.addRows(this.selectedServiceList, [val])
} else {
this.deleteRows(this.selectedServiceList, [row])
this.deleteRows(this.selectedServiceList, [val])
}
console.log(this.selectedServiceList)
// this.selectedServiceList = val
......
......@@ -14,46 +14,42 @@
<div class="review-title_top">{{ detail.marketingTitle || detail.activityName }}</div>
<div class="review-content">
<div class="review-main">
<template>
<div class="main-title" :style="{ 'font-weight': item.bold ? 'bold' : '', top: item.y + 'px', 'font-size': item.fontSize + 'px', color: item.color }" v-for="(item, index) in textList" :key="index">{{ item.text }}</div>
<div class="review-bg-img">
<img :src="detail.backgroundImage" v-if="detail.backgroundImage" />
</div>
<div class="review-main-img">
<img :src="detail.detailImage" v-if="detail.detailImage" />
</div>
<div class="review-logo-img" :style="{ height: logoInfo.height + 'px', width: logoInfo.width + 'px', top: logoInfo.y + 'px', left: logoInfo.x + 'px' }">
<img :src="detail.merchantLog" v-if="detail.merchantLog" />
</div>
</template>
</div>
<div class="review-package" :style="{ background: activityInfo.mainColor }">
<div class="review-equity" v-if="detail.selectedEquityList && detail.selectedEquityList.length">
<div class="service-item" v-for="(item, index) in detail.selectedEquityList" :key="index">
<div class="service-time">1年</div>
<div class="service-title">{{ item.packageName }}</div>
</div>
</div>
<div class="review-goods" v-if="detail.selectedGoodsList && detail.selectedGoodsList.length">
<div class="goods-item" v-for="(item, index) in detail.selectedGoodsList" :key="index">
<div class="service-desc">
<div class="title">{{ item.brandName }}{{ item.goodsName }}</div>
<div class="content">x{{ item.couponAmount }} 抵扣券</div>
</div>
<div class="service-price">
{{ item.couponAnticipatedCost || item.denomination }}
<span>元</span>
</div>
</div>
<div class="review-bg-img">
<img :src="detail.backgroundImg" v-if="detail.backgroundImg" />
</div>
<div class="review-service" v-if="detail.couponList && detail.couponList.length">
<div class="coupon-item" v-for="(item, index) in detail.couponList" :key="index">
<div class="service-time">{{ discount[item.discountType] }}</div>
<div class="service-title">
<span>{{ item.couponName }}</span>
<span>x{{ item.couponAmount }}</span>
</div>
</div>
<div class="main-body" style="background: #DEEAF2;">
<template v-if="modelNum == 1">
<!-- 权益服务 -->
<equity-one :detail="detail"></equity-one>
<!-- 商品券 -->
<goods-one :detail="detail"></goods-one>
<!-- 服务券 -->
<coupon-one :detail="detail"></coupon-one>
</template>
<template v-if="modelNum == 2">
<!-- 权益服务 -->
<equity-two :detail="detail"></equity-two>
<!-- 商品券 -->
<goods-two :detail="detail"></goods-two>
<!-- 服务券 -->
<coupon-two :detail="detail"></coupon-two>
</template>
<template v-if="modelNum == 3">
<!-- 权益服务 -->
<equity-three :detail="detail"></equity-three>
<!-- 商品券 -->
<goods-three :detail="detail"></goods-three>
<!-- 服务券 -->
<coupon-three :detail="detail"></coupon-three>
</template>
<template v-if="modelNum == 4">
<!-- 权益服务 -->
<equity-four :detail="detail"></equity-four>
<!-- 商品券 -->
<goods-four :detail="detail"></goods-four>
<!-- 服务券 -->
<coupon-four :detail="detail"></coupon-four>
</template>
</div>
<div class="review-address" v-if="detail.merchantname">
<div class="navigation">
......@@ -83,10 +79,6 @@
</div>
</div>
</div>
<div class="review-footer" v-if="!isNaN(detail.activityPrice)">
<label>¥</label>
{{ (detail.activityPrice / 100).toFixed(2) }}
</div>
</template>
<template v-else-if="isSuper">
<img src="@/assets/seckillActivity/phone.png" class="review-phone" />
......@@ -175,12 +167,25 @@
<script>
import PhoneViewA from './PhoneViewA'
import draw from '@/mixins/draw'
import equityOne from './model/model_1/equity'
import goodsOne from './model/model_1/goods'
import couponOne from './model/model_1/coupon'
import equityTwo from './model/model_2/equity'
import goodsTwo from './model/model_2/goods'
import couponTwo from './model/model_2/coupon'
import equityThree from './model/model_3/equity'
import goodsThree from './model/model_3/goods'
import couponThree from './model/model_3/coupon'
import equityFour from './model/model_4/equity'
import goodsFour from './model/model_4/goods'
import couponFour from './model/model_4/coupon'
import { mapState } from 'vuex'
export default {
mixins: [draw],
data() {
return {
isModel: true,
modelNum: 4,
activityInfo: {},
detail: {},
logoInfo: {},
......@@ -194,7 +199,19 @@ export default {
}
},
components: {
PhoneViewA
PhoneViewA,
equityOne,
goodsOne,
couponOne,
equityTwo,
goodsTwo,
couponTwo,
equityThree,
goodsThree,
couponThree,
goodsFour,
equityFour,
couponFour
},
computed: {
...mapState('marketing', ['packageList'])
......@@ -254,6 +271,7 @@ export default {
packageList: {
handler(val) {
console.log(val, 8888)
this.detail = val
},
deep: true,
immediate: true
......@@ -295,14 +313,15 @@ export default {
}
.review-content {
position: absolute;
width: calc(100% - 20px);
height: 484px;
width: calc(100% - 36px);
height: 504px;
overflow-y: auto;
overflow-x: hidden;
top: 77px;
left: 13px;
left: 22px;
.review-main {
position: relative;
overflow: hidden;
height: 300px;
.main-title {
position: absolute;
width: 100%;
......@@ -503,5 +522,8 @@ export default {
}
}
}
.main-body {
margin-top: 63px;
}
}
</style>
<template>
<div class="wrap" v-if="serviceList.length > 0">
<div class="container-panel">
<img class="angle" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/get.png?v=1.0.2" />
<div class="title">
<span>门店专享服务</span>
<img class="xing " src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/xing_1.png?v=1.0.2" />
</div>
<div class="service-panel">
<div class="service-panel-bg"></div>
<div class="service-panel-box">
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-time">{{ discount[item.discountType] }}</div>
<div class="service-title">
<span>{{ item.couponName }}</span>
<span>x{{ item.couponAmount }}</span>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
discount: {
2: '折扣券',
3: '代金券',
4: '兑换券',
7: '服务券'
},
serviceList: []
}
},
props: {
detail: {
type: Object,
default: () => {}
}
},
watch: {
detail: {
handler(n) {
const serviceList = n.selectedServiceList
this.serviceList = serviceList
},
deep: true,
immediate: true
}
}
}
</script>
<style scoped lang="scss">
.wrap {
margin-top: 20px;
.container-panel {
background-image: linear-gradient(180deg, #ff626f 0%, #ff626f00 100%);
box-shadow: inset 0 3px 15px 0 #ffffffbf;
border-radius: 20px;
padding: 8px;
position: relative;
.angle {
position: absolute;
top: -8px;
left: -8px;
width: 80.87px;
height: 79.24px;
}
.title {
font-weight: 700;
font-size: 16px;
color: #ffffff;
padding-left: 38px;
padding-top: 5px;
position: relative;
display: inline-block;
text-shadow: 0 2px 3px #d81033;
font-weight: 700;
.xing {
position: absolute;
top: -5px;
width: 31.99px;
height: 34.89px;
}
}
.service-panel {
position: relative;
z-index: 2;
margin-top: 15px;
&-bg {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
background: rgba($color: #ffffff, $alpha: 0.3);
box-shadow: inset 0 0 18px 0 #ffffff;
border-radius: 20px;
z-index: -1;
}
&-box {
padding: 8px 10px;
}
}
.service-item {
margin-top: 10px;
display: flex;
&:first-child {
margin-top: 0px;
display: flex;
}
.service-title {
flex: 1;
height: 50px;
background: #fcf9ef;
background-image: linear-gradient(-84deg, #fe6a7545 0%, #fcf0ee00 96%);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0px 27px 0px 14px;
border-radius: 0px 8px 8px 0px;
font-size: 14px;
color: #5a3c36;
text {
font-size: 14px;
color: #5a3c36;
}
}
.service-time {
width: 50px;
height: 50px;
padding: 6px 20px;
box-sizing: border-box;
background-image: linear-gradient(180deg, #ede7fa 0%, #b498ff 100%);
font-size: 12px;
line-height: 14px;
color: #04005d;
position: relative;
border-radius: 8px 0px 0px 8px;
}
}
}
}
</style>
<template>
<div class="wrap" v-if="serviceList.length>0">
<div class="container-panel">
<img class="angle" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/rob.png?v=1.0.2" />
<div class="title">用车权益</div>
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-title">{{ item.packageName }}</div>
<div class="service-time">
{{ item.price }}
<span>元</span>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
serviceList:[]
}
},
props: {
detail: {
type: Object,
default:()=> {}
}
},
watch: {
detail: {
handler(n) {
const serviceList = n.selectedCarList
this.serviceList =serviceList
},
deep: true,
immediate: true
}
}
}
</script>
<style scoped lang="scss">
.wrap {
margin-bottom: 20px;
.container-panel {
background: #ffffff;
background-image: linear-gradient(90deg, #ffa4a4 0%, #f5dea2c7 27%, #ffc8d9 75%, #fe9ca400 100%);
box-shadow: inset 0 4px 54px 0 #ffffff;
border-radius: 16px;
padding: 16px 20px;
position: relative;
.angle {
position: absolute;
top: -8px;
left: -8px;
width: 80.87px;
height: 79.24px;
}
.title {
font-weight: 700;
font-size: 16px;
color: #ffffff;
text-shadow: 0 2px 3px #f37b87;
padding-left: 22px;
}
.service-item {
height: 40px;
background: #fefdf8;
background-image: linear-gradient(-84deg, #fdeef7 0%, #f6ffee 53%, #ffffff 96%);
border-radius: 8px;
margin-top: 10px;
padding: 0px 12px;
display: flex;
align-items: center;
&:first-child {
margin-top: 0px;
}
.service-title {
flex: 1;
font-size: 14px;
color: #5a3c36;
line-height: 40px;
}
.service-time {
color: #8e5310;
text-align: center;
font-size: 31px;
color: #ff5c67;
span {
font-size: 12px;
line-height: 40px;
}
}
}
}
}
</style>
<template>
<div class="wrap" v-if="serviceList.length>0">
<div class="container-panel">
<img class="angle" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/deliver.png?v=1.0.2" />
<div class="title">
<span>超爽生活权益</span>
<img class="xing " src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/xing_2.png?v=1.0.2" />
</div>
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-logo"></div>
<div class="service-desc">
<div class="service-title">{{ item.brandName }}{{ item.goodsName }}</div>
<div class="service-content">x{{ item.couponAmount }} 抵扣券</div>
</div>
<div class="service-price">
{{ item.couponAnticipatedCost }}
<span>元</span>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
discount: {
2: '折扣券',
3: '代金券',
4: '兑换券',
7: '服务券'
},
serviceList:[]
}
},
props: {
detail: {
type: Object,
default:()=> {}
}
},
watch: {
detail: {
handler(n) {
const serviceList = n.selectedGoodsList
serviceList.length>0&&serviceList.forEach(item=>{
item.couponAnticipatedCost = (item.denomination/100).toFixed(2).replace(/\.[0]+$/,'')
})
this.serviceList =serviceList
},
deep: true,
immediate: true
}
}
}
</script>
<style scoped lang="scss">
.wrap {
margin-top: 20px;
.container-panel {
background-image: linear-gradient(180deg, #efb94f 0%, #f8d87d00 100%);
box-shadow: inset 0 3px 15px 0 #ffffffbf;
border-radius: 20px;
padding: 8px;
position: relative;
.angle {
position: absolute;
top: -8px;
left: -8px;
width: 80.87px;
height: 79.24px;
}
.title {
font-weight: 700;
font-size: 16px;
color: #ffffff;
text-shadow: 0 2px 3px #d89410;
padding-left: 41px;
padding-top: 5px;
position: relative;
display: inline-block;
.xing {
position: absolute;
top: -5px;
width: 31.99px;
height: 34.89px;
}
}
.service-item {
display: flex;
height: 56.15px;
align-items: center;
background: #fcf9ef;
background-image: linear-gradient(-83deg, #fe6a7545 0%, #fcf0ee00 96%);
border-radius: 10px;
margin-top: 10px;
padding:8px;
box-sizing: border-box;
&:last-child {
margin-bottom: 0px;
}
.service-logo {
width: 32px;
height: 32px;
margin-right: 10px;
}
.service-desc {
.service-title {
font-size: 12px;
color: #5a3c36;
}
.service-content {
margin-top: 3px;
font-size: 11px;
color: #e16578;
}
}
.service-price {
margin-left: auto;
font-size: 15px;
color: #ff5c67;
font-weight: 700;
span {
font-size: 12px;
}
}
}
}
}
</style>
<template>
<div class="wrap" v-if="serviceList.length>0">
<div class="container-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/get.png?v=1.0.2" />
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-time">{{ discount[item.discountType] }}</div>
<div class="service-title">
<div class="service-couponName">{{ item.couponName }}</div>
<div class="service-amount">x{{ item.couponAmount }}</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
discount: {
2: '折扣券',
3: '代金券',
4: '兑换券',
7: '服务券'
},
serviceList: []
}
},
props: {
detail: {
type: Object,
default: () => {}
}
},
watch: {
detail: {
handler(n) {
const serviceList = n.selectedServiceList
this.serviceList = serviceList
},
deep: true,
immediate: true
}
}
}
</script>
<style scoped lang="scss">
.wrap {
padding: 0px 10px;
.container-panel {
background: #ffffff;
border-radius: 12px;
padding: 39px 10px 16px;
position: relative;
.header-panel {
position: absolute;
top: -15px;
left: 50%;
transform: translateX(-50%);
width: 246.5px;
height: 41px;
}
.service-item {
margin-top: 10px;
display: flex;
height: 67px;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/get_b.png');
background-size: 100% 100%;
border-radius: 8px;
align-items: center;
&:first-child {
margin-top: 0px;
}
.service-title {
flex: 1;
display: flex;
border-radius: 0px 8px 8px 0px;
.service-couponName {
font-size: 14px;
color: #5a3c36;
margin-left: 50px;
}
.service-amount {
font-size: 14px;
color: #5a3c36;
margin-left: auto;
margin-right: 20px;
}
}
.service-time {
box-sizing: border-box;
font-size: 15px;
color: #763510;
line-height: 11px;
position: relative;
border-radius: 50%;
margin-left: 15px;
white-space: nowrap;
}
}
}
}
</style>
<template>
<div class="wrap" v-if="serviceList.length>0">
<div class="container-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/rob.png" />
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-title">{{ item.packageName }}</div>
<div class="service-time">
1
<text>元</text>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
serviceList:[]
}
},
props: {
detail: {
type: Object,
default:()=> {}
}
},
watch: {
detail: {
handler(n) {
const serviceList = n.selectedCarList
this.serviceList =serviceList
},
deep: true,
immediate: true
}
}
}
</script>
<style scoped lang="scss">
.wrap {
padding: 0px 8px;
margin-bottom: 41px;
.container-panel {
background: #ffffff;
border-radius: 12px;
padding: 39px 10px 16px;
position: relative;
.header-panel {
position: absolute;
top: -15px;
left: 50%;
transform: translateX(-50%);
width: 246.5px;
height: 41px;
}
.service-item {
height: 49px;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/rob_b.png');
background-size: 100% 100%;
border-radius: 4px;
margin-bottom: 8px;
display: flex;
align-items: center;
padding: 0px 28.5px 0px 16px;
&:first-child {
margin-top: 0px;
}
.service-title {
flex: 1;
font-size: 14px;
color: #5a3c36;
}
.service-time {
text-align: center;
font-size: 26px;
color: #fe455d;
span {
font-size: 12px;
color: #fe455d;
}
}
}
}
}
</style>
<template>
<div class="wrap" v-if="serviceList.length>0">
<div class="container-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/delivery.png" />
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-logo"> </div>
<div class="service-desc">
<div class="service-title">{{item.brandName}}{{item.goodsName}}</div>
<div class="service-content">x{{item.couponAmount}} 抵扣券</div>
</div>
<div class="service-price">{{item.couponAnticipatedCost}}<span>元</span> </div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
discount: {
2: '折扣券',
3: '代金券',
4: '兑换券',
7: '服务券'
},
serviceList:[]
}
},
props: {
detail: {
type: Object,
default:()=> {}
}
},
watch: {
detail: {
handler(n) {
const serviceList = n.selectedGoodsList
serviceList.length>0&&serviceList.forEach(item=>{
item.couponAnticipatedCost = (item.denomination/100).toFixed(2).replace(/\.[0]+$/,'')
})
this.serviceList =serviceList
},
deep: true,
immediate: true
}
}
}
</script>
<style scoped lang="scss">
.wrap {
padding: 0px 10px;
margin-bottom: 41px;
.container-panel {
background: #ffffff;
border-radius: 12px;
padding: 39px 10px 16px;
position: relative;
.header-panel {
position: absolute;
top: -15px;
left: 50%;
transform: translateX(-50%);
width: 246.5px;
height: 41px;
}
.service-item {
display: flex;
height: 32.5px;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/deliver_b.png');
background-size: 100% 100%;
margin-bottom: 8px;
align-items: center;
&:last-child {
margin-bottom: 0px;
}
.service-logo {
width: 28px;
height: 28px;
margin-right: 8px;
}
.service-desc {
.service-title {
font-size: 12px;
color: #5a3c36;
}
.service-content {
margin-top: 3px;
font-size: 11px;
color: #e16578;
}
}
.service-price {
margin-left: auto;
margin-right: 16px;
font-size: 15px;
color: #ff5c67;
font-weight: 700;
white-space: nowrap;
span {
font-size: 12px;
}
}
}
}
}
</style>
<template>
<div class="wrap" v-if="serviceList.length > 0">
<div class="container-panel">
<div class="service-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_5/get.png" />
<div class="service-body-bg"></div>
<div class="service-panel-bg"></div>
<div class="service-panel-box">
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-time">{{ discount[item.discountType] }}</div>
<div class="service-title">
<div class="service-couponName">{{ item.couponName }}</div>
<div class="service-amount">x{{ item.couponAmount }} {{ discount[item.discountType] }}</div>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
discount: {
2: '折扣券',
3: '代金券',
4: '兑换券',
7: '服务券'
},
serviceList: []
}
},
props: {
detail: {
type: Object,
default: () => {}
}
},
watch: {
detail: {
handler(n) {
const serviceList = n.selectedServiceList
this.serviceList = serviceList
},
deep: true,
immediate: true
}
}
}
</script>
<style scoped lang="scss">
.wrap {
margin-top: 10px;
.container-panel {
padding: 8px;
position: relative;
.service-panel {
position: relative;
z-index: 2;
padding: 0px 10px;
.service-body-bg {
position: absolute;
height: calc(100% - 20px);
width: calc(100% - 5px);
left: 2px;
top: 25px;
z-index: -1;
border-radius: 0px 0px 12px 12px;
background-image: linear-gradient(180deg, #ec5cb2 2%, #ec5cb2 40%, #ed76c9 67%, #ffcf8600 100%);
}
.header-panel {
position: absolute;
width: 263px;
height: 131px;
top: -59px;
left: -8px;
z-index: -4;
}
&-bg {
position: absolute;
width: calc(100% - 20px);
height: calc(100% - 5px);
box-sizing: border-box;
background: rgba($color: #ffffff, $alpha: 0.3);
box-shadow: inset 0 0 18px 0 #ffffff;
border-radius: 20px;
z-index: -1;
}
&-box {
padding: 12px 13px;
}
}
.service-item {
margin-top: 5px;
display: flex;
height: 54px;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_5/get_b.png');
background-size: 100% 100%;
&:first-child {
margin-top: 0px;
display: flex;
}
.service-title {
flex: 1;
margin-left: 20px;
.service-couponName {
font-size: 14px;
margin-top: 15px;
color: #111111;
}
.service-amount {
font-size: 11px;
color: #878e99;
}
}
.service-time {
width: 45px;
padding: 8px 14px;
box-sizing: border-box;
font-size: 12px;
color: #ffffff;
line-height: 14px;
}
}
}
}
</style>
<template>
<div class="wrap" v-if="serviceList.length > 0">
<div class="container-panel">
<div class="service-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_5/rob.png" />
<div class="service-body-bg"></div>
<div class="service-panel-bg"></div>
<div class="service-panel-box">
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-time">
1
<span>元</span>
</div>
<div class="service-title">{{ item.packageName }}</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
serviceList: []
}
},
props: {
detail: {
type: Object,
default: () => {}
}
},
watch: {
detail: {
handler(n) {
const serviceList = n.selectedCarList
this.serviceList = serviceList
},
deep: true,
immediate: true
}
}
}
</script>
<style scoped lang="scss">
.wrap {
margin-bottom: 65px;
.container-panel {
padding: 8px;
position: relative;
.service-panel {
position: relative;
z-index: 2;
padding: 0px 10px;
.service-body-bg {
position: absolute;
height: calc(100% - 20px);
width: calc(100% - 15px);
left: 2.5px;
top: 25px;
z-index: -1;
border-radius: 0px 0px 12px 12px;
background-image: linear-gradient(180deg, #ff5a52 0%, #fe7141 34%, #fe912f 66%, #ffe6ab00 100%);
}
.header-panel {
position: absolute;
width: 263px;
height: 131px;
top: -59px;
left: -8px;
z-index: -4;
}
&-bg {
position: absolute;
width: calc(100% - 20px);
height: calc(100% - 5px);
box-sizing: border-box;
background: rgba($color: #ffffff, $alpha: 0.3);
box-shadow: inset 0 0 18px 0 #ffffff;
border-radius: 20px;
z-index: -1;
}
&-box {
padding: 15px 13px;
}
}
.service-item {
display: flex;
height: 45px;
align-items: center;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_5/rob_b.png');
background-size: 100% 100%;
margin-top: 10px;
display: flex;
align-items: center;
&:first-child {
margin-top: 0px;
}
.service-title {
flex: 1;
font-size: 14px;
color: #5a3c36;
margin-left: 25px;
}
.service-time {
font-size: 20px;
color: #999896;
width: 40px;
text-align: center;
span {
font-size: 12px;
color: #8e5310;
}
}
}
}
}
</style>
<template>
<div class="wrap" v-if="serviceList.length > 0">
<div class="container-panel">
<div class="service-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_5/deliver.png" />
<div class="service-body-bg"></div>
<div class="service-panel-bg"></div>
<div class="service-panel-box">
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-logo"></div>
<div class="service-desc">
<div class="service-title">{{ item.brandName }}{{ item.goodsName }}</div>
<div class="service-content">x{{ item.couponAmount }} 抵扣券</div>
</div>
<div class="service-price">
{{ item.couponAnticipatedCost }}
<span>元</span>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
discount: {
2: '折扣券',
3: '代金券',
4: '兑换券',
7: '服务券'
},
serviceList: []
}
},
props: {
detail: {
type: Object,
default: () => {}
}
},
watch: {
detail: {
handler(n) {
const serviceList = n.selectedGoodsList
serviceList.length > 0 &&
serviceList.forEach(item => {
item.couponAnticipatedCost = (item.denomination / 100).toFixed(2).replace(/\.[0]+$/, '')
})
this.serviceList = serviceList
},
deep: true,
immediate: true
}
}
}
</script>
<style scoped lang="scss">
.wrap {
margin-bottom: 70px;
.container-panel {
padding: 8px;
position: relative;
.service-panel {
position: relative;
z-index: 2;
padding: 0px 10px;
.service-body-bg {
position: absolute;
height: calc(100% - 20px);
width: calc(100% - 5px);
left: 2px;
top: 25px;
z-index: -1;
border-radius: 0px 0px 12px 12px;
background-image: linear-gradient(180deg, #ec5cb2 2%, #ec5cb2 40%, #ed76c9 67%, #ffcf8600 100%);
}
.header-panel {
position: absolute;
width: 263px;
height: 131px;
top: -59px;
left: -8px;
z-index: -4;
}
&-bg {
position: absolute;
width: calc(100% - 20px);
height: calc(100% - 5px);
box-sizing: border-box;
background: rgba($color: #ffffff, $alpha: 0.3);
box-shadow: inset 0 0 18px 0 #ffffff;
border-radius: 20px;
z-index: -1;
}
&-box {
padding: 12px 13px;
}
}
.service-item {
display: flex;
height: 32px;
align-items: center;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_5/delivery_b.png');
background-size: 100% 100%;
border-radius: 10px;
margin-bottom: 5px;
padding: 22px 0px 21px 11px;
box-sizing: border-box;
&:last-child {
margin-bottom: 0px;
}
.service-logo {
width: 25px;
height: 25px;
margin-right: 6px;
}
.service-desc {
.service-title {
font-size: 12px;
color: #111111;
white-space: nowrap;
}
.service-content {
margin-top: 3px;
font-size: 11px;
color: #878e99;
}
}
.service-price {
margin-left: auto;
width: 80px;
text-align: center;
font-size: 15px;
color: #ff5c67;
font-weight: 700;
white-space: nowrap;
span {
font-size: 12px;
}
}
}
}
}
</style>
<template>
<div class="wrap" v-if="serviceList.length>0">
<div class="container-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_8/get.png?v=1.0.2" />
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-time">{{ discount[item.discountType] }}</div>
<div class="service-title">
<div class="service-couponName">{{ item.couponName }}</div>
<div class="service-amount">x{{ item.couponAmount }}</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
discount: {
2: '折扣券',
3: '代金券',
4: '兑换券',
7: '服务券'
},
serviceList: []
}
},
props: {
detail: {
type: Object,
default: () => {}
}
},
watch: {
detail: {
handler(n) {
const serviceList = n.selectedServiceList
this.serviceList = serviceList
},
deep: true,
immediate: true
}
}
}
</script>
<style scoped lang="scss">
.wrap {
padding: 0px 5px;
.container-panel {
background: #ffffff;
border-radius: 12px;
padding: 34px 14px 16px;
position: relative;
.header-panel {
position: absolute;
top: -27.5px;
left: 50%;
transform: translateX(-50%);
width: 241px;
height: 50px;
}
.service-item {
margin-top: 5px;
display: flex;
height: 64px;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_8/get_b.png');
background-size: 100% 100%;
border-radius: 8px;
&:first-child {
margin-top: 0px;
display: flex;
}
.service-title {
flex: 1;
height: 55px;
padding: 0px 27px 0px 14px;
border-radius: 0px 8px 8px 0px;
.service-couponName {
font-size: 14px;
margin-top: 14px;
color: #111111;
}
.service-amount {
font-size: 11px;
color: #878e99;
}
}
.service-time {
width: 50px;
height: 60px;
padding: 15px 30px;
box-sizing: border-box;
font-size: 10px;
color: #fe455d;
line-height: 12px;
position: relative;
&::before {
content: '';
position: absolute;
top: 10px;
left: 33px;
color: #fe455d;
background: #fe455d;
width: 3px;
height: 3px;
border-radius: 50%;
}
&::after {
content: '';
position: absolute;
bottom: 3px;
left: 33px;
color: #fe455d;
background: #fe455d;
width: 3px;
height: 3px;
border-radius: 50%;
}
}
}
}
}
</style>
<template>
<div class="wrap" v-if="serviceList.length>0">
<div class="container-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_8/rob.png" />
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-time">
1
<sapn>元</sapn>
</div>
<div class="service-title">{{ item.packageName }}</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
serviceList:[]
}
},
props: {
detail: {
type: Object,
default:()=> {}
}
},
watch: {
detail: {
handler(n) {
const serviceList = n.selectedCarList
this.serviceList =serviceList
},
deep: true,
immediate: true
}
}
}
</script>
<style scoped lang="scss">
.wrap {
padding: 0px 5px;
margin-bottom: 41px;
.container-panel {
background: #ffffff;
border-radius: 12px;
padding: 34px 14px 16px;
position: relative;
.header-panel {
position: absolute;
top: -15px;
left: 50%;
transform: translateX(-50%);
width: 240px;
height: 50px;
}
.service-item {
height: 64px;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_8/rob_b.png');
background-size: 100% 100%;
border: 1px solid #ffffff;
box-shadow: inset 0 1px 0 0 #bcbebf;
border-radius: 8px;
margin-bottom: 8px;
display: flex;
align-items: center;
&:first-child {
margin-top: 0px;
}
.service-title {
flex: 1;
font-size: 14px;
color: #5a3c36;
}
.service-time {
text-align: center;
font-size: 16px;
color: #fe455d;
width:63px;
span {
font-size: 12px;
color: #fe455d;
}
}
}
}
}
</style>
<template>
<div class="wrap" v-if="serviceList.length>0">
<div class="container-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_8/deliver.png" />
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-logo"></div>
<div class="service-desc">
<div class="service-title">{{ item.brandName }}{{ item.goodsName }}</div>
<div class="service-content">x{{ item.couponAmount }} 抵扣券</div>
</div>
<div class="service-price">
{{ item.couponAnticipatedCost }}
<span>元</span>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
discount: {
2: '折扣券',
3: '代金券',
4: '兑换券',
7: '服务券'
},
serviceList: []
}
},
props: {
detail: {
type: Object,
default: () => {}
}
},
watch: {
detail: {
handler(n) {
const serviceList = n.selectedGoodsList
serviceList.length > 0 &&
serviceList.forEach(item => {
item.couponAnticipatedCost = (item.denomination / 100).toFixed(2).replace(/\.[0]+$/, '')
})
this.serviceList = serviceList
},
deep: true,
immediate: true
}
}
}
</script>
<style scoped lang="scss">
.wrap {
padding: 0px 5px;
margin-bottom: 41px;
.container-panel {
background: #ffffff;
border-radius: 12px;
padding: 34px 14px 16px;
position: relative;
.header-panel {
position: absolute;
top: -27.5px;
left: 50%;
transform: translateX(-50%);
width: 240px;
height: 50px;
}
.service-item {
display: flex;
height: 68px;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_8/deliver-b.png');
background-size: 100% 100%;
margin-bottom: 8px;
align-items: center;
&:last-child {
margin-bottom: 0px;
}
.service-logo {
width: 28px;
height: 28px;
margin-right: 8px;
}
.service-desc {
.service-title {
font-size: 14px;
color: #111111;
}
.service-content {
margin-top: 3px;
font-size: 11px;
color: #878e99;
}
}
.service-price {
margin-left: auto;
margin-right: 16px;
font-size: 15px;
color: #ff5c67;
font-weight: 700;
white-space: nowrap;
span {
font-size: 12px;
}
}
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!