Commit ec71a287 by 李伟康

commit

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