Commit ec71a287 by 李伟康

commit

1 parent 28df12e8
......@@ -48,70 +48,73 @@
.detail {
border-bottom: 1px solid rgba(195, 195, 195, 0.3);
&:last-of-type {
border-bottom: none;
}
}
&-item {
border-bottom: 1px solid rgba(195, 195, 195, 0.3);
font-size: 12px;
color: #333333;
padding: 12px 5px;
position: relative;
.detail-list {
border-bottom: 1px solid rgba(195, 195, 195, 0.3);
font-size: 12px;
color: #333333;
padding: 12px 5px;
position: relative;
&:last-of-type {
border-bottom: none;
}
&:last-of-type {
border-bottom: none;
}
.name {
font-size: 14px;
.name {
font-size: 14px;
&-tips {
margin-left: 8px;
width: 46px;
height: 16px;
background: #CBCBCB;
border-radius: 4px;
font-size: 10px;
color: #FFFFFF;
}
}
&-tips {
margin-left: 8px;
width: 46px;
height: 16px;
background: #CBCBCB;
border-radius: 4px;
font-size: 10px;
color: #FFFFFF;
.num {
color: #282829;
}
}
.num {
color: #282829;
.price {
color: #f1515c;
margin-left: auto;
}
}
.price {
color: #f1515c;
margin-left: auto;
&-title {
margin: 11px 0 0 5px;
height: 28px;
background: rgba(57, 117, 198, 0.15);
border-radius: 14px;
font-size: 14px;
color: #3975c6;
padding: 0 12px;
display: inline-flex;
}
}
.detail-title {
margin: 11px 0 0 5px;
height: 28px;
background: rgba(57, 117, 198, 0.15);
border-radius: 14px;
font-size: 14px;
color: #3975c6;
padding: 0 12px;
display: inline-flex;
}
.del {
position: absolute;
top: 12px;
right: 2px;
}
.coupon-disabled {
color: #999999;
.num {
color: #999999;
.del {
position: absolute;
top: 12px;
right: 2px;
}
.price {
.coupon-disabled {
color: #999999;
.num {
color: #999999;
}
.price {
color: #999999;
}
}
}
}
......@@ -245,6 +248,7 @@
display: flex;
justify-content: center;
align-items: center;
&::after {
content: '';
display: block;
......@@ -256,12 +260,14 @@
animation: radioFrames .2s forwards;
}
}
@keyframes radioFrames {
0%{
0% {
width: 1px;
height: 1px;
}
100%{
100% {
width: 6px;
height: 6px;
}
......
......@@ -119,7 +119,7 @@ export default {
]
}
},
mounted () {
activated () {
let { verficationCode } = this.getParams()
this.showLoading()
shopmallApi
......@@ -133,6 +133,9 @@ export default {
console.log(res)
})
},
mounted () {
},
methods: {
submit () {
let { verficationCode } = this.getParams()
......
......@@ -112,7 +112,7 @@ const vipObj = [
},
{
label: '有效期',
KEY:'effectiveType',
KEY: 'effectiveType',
format (item) {
let { effectiveType } = item
let str = ''
......@@ -140,7 +140,7 @@ export default {
},
{
label: '领取时间',
key:'receiveTime',
key: 'receiveTime',
format (item) {
return item.receiveTime ? new Date(item.receiveTime).format('yyyy年MM月dd日') : ''
}
......@@ -151,7 +151,7 @@ export default {
flag: false
}
},
mounted () {
activated () {
let { verficationCode } = this.getParams()
this.showLoading()
couponApi.scan({ verficationCode }).then(res => {
......@@ -162,6 +162,9 @@ export default {
this.flag = true
})
},
mounted () {
},
methods: {
submit () {
let { detail: { discountType } } = this
......
......@@ -421,7 +421,7 @@ export default {
this.getList()
},
scan () {
// let resultStr = 't=2&c=3483845737948516352'
// let resultStr = 't=2&c=7498728184171335680'
wxConfig.scanQRCode(1).then(({ resultStr }) => {
let name = 'verificationDetail'
let [t, c] = resultStr.split('&')
......
......@@ -47,7 +47,7 @@
<span class="detail-title text-center">{{discountEnum[i.discountType]}}</span>
<template v-for="(e,ind) in i.list">
<div
:class="['detail-list',{'coupon-disabled':e.status != 2 && obj.receivedFlag != 2}]"
:class="['detail-item',{'coupon-disabled':e.status != 2 && obj.receivedFlag != 2}]"
:key="ind"
>
<div class="name flex">
......
......@@ -55,7 +55,7 @@
<span class="detail-title text-center">{{discountEnum[i.discountType]}}</span>
<template v-for="(e,ind) in i.list">
<div
:class="['detail-list',{'coupon-disabled':e.status != 2 && obj.receivedFlag != 2}]"
:class="['detail-item',{'coupon-disabled':e.status != 2 && obj.receivedFlag != 2}]"
:key="ind"
>
<div class="name flex">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!