Commit 50db7b42 by liwk

commit

1 parent 5888dab9
<template> <template>
<van-overlay <van-overlay
:show="show" :show="show"
z-index="2007" z-index="2013"
> >
<div <div
class="wrapper" class="wrapper"
......
...@@ -9,7 +9,9 @@ const discountType = { ...@@ -9,7 +9,9 @@ const discountType = {
} }
export default { export default {
data() { data() {
return {} return {
discountType
}
}, },
mounted() { mounted() {
window.$discountType = discountType window.$discountType = discountType
......
...@@ -19,7 +19,12 @@ ...@@ -19,7 +19,12 @@
class="item" class="item"
> >
<div :class="['sprite-icon', 'text-center',tabIndex == 0?'icon-coupon':'icon-discount']"> <div :class="['sprite-icon', 'text-center',tabIndex == 0?'icon-coupon':'icon-discount']">
{{i.couponTypeName|| '代金券'}} <template v-if="tabIndex == 0">
{{i.couponTypeName}}
</template>
<template>
</template>
{{discountType[i.discountType]}}
</div> </div>
<div class="info"> <div class="info">
<div class="top"> <div class="top">
...@@ -129,7 +134,7 @@ export default { ...@@ -129,7 +134,7 @@ export default {
font-weight: 600; font-weight: 600;
color: #ffffff; color: #ffffff;
box-sizing: border-box; box-sizing: border-box;
padding: 0 0.14rem; padding: 0 14px;
flex-shrink: 0; flex-shrink: 0;
text-align: center; text-align: center;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!