提交 9c223d16 编写于 作者: jingqi.liu's avatar jingqi.liu

修改样式

上级 b9d99bf1
<template> <template>
<!-- v-if="!isWeb" --> <section v-if="!isWeb" :class="isFixNavbar ? 'nav-top fixed' : 'nav-top'" :style="'height:' + navHeight">
<section :class="isFixNavbar ? 'nav-top fixed' : 'nav-top'" :style="'height:' + navHeight">
<div <div
class="nav-part" class="nav-part"
:style="'background:' + bgColor + ';' :style="'background:' + bgColor + ';'
......
...@@ -65,7 +65,7 @@ export default { ...@@ -65,7 +65,7 @@ export default {
data() { data() {
return { return {
couponList: [], couponList: [],
hasTips: false, hasTips: true,
show: false, show: false,
token: "", token: "",
couponToken: "", couponToken: "",
......
...@@ -42,7 +42,13 @@ ...@@ -42,7 +42,13 @@
<div class="card-item-right flex shadow"> <div class="card-item-right flex shadow">
<div class="card-item-right-center"> <div class="card-item-right-center">
<div class="pos-center"> <div class="pos-center">
<div :class="['right-coupon', hasUsed ? 'cr-c1c1c1' : '']"> <div
:class="[
'right-coupon',
'line-clamp2',
hasUsed ? 'cr-c1c1c1' : '',
]"
>
{{ couponDetail.couponName }} {{ couponDetail.couponName }}
</div> </div>
<div <div
...@@ -342,8 +348,13 @@ export default { ...@@ -342,8 +348,13 @@ export default {
&-center { &-center {
padding-top: 18px; padding-top: 18px;
padding-left: 10px; padding-left: 10px;
padding-right: 10px;
padding-bottom: 18px; padding-bottom: 18px;
display: flex; display: flex;
min-height: 100px;
align-items: center;
display: flex;
// height: 100px; // height: 100px;
// flex: 1; // flex: 1;
// position: relative; // position: relative;
...@@ -402,8 +413,10 @@ export default { ...@@ -402,8 +413,10 @@ export default {
margin-right: 11px; margin-right: 11px;
span { span {
display: block; display: block;
/* width: 100%; */ width: 100%;
width: 39px; white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} }
} }
// position: absolute; // position: absolute;
...@@ -467,5 +480,12 @@ export default { ...@@ -467,5 +480,12 @@ export default {
.flex { .flex {
display: flex; display: flex;
} }
.line-clamp2 {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
} }
</style> </style>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册