Browse Source

feat: 修复礼券名称过长的问题

master
jiannibang 3 years ago
parent
commit
283b48cb92
  1. 2
      src/pages/Coupons/CouponList/CouponList.js
  2. 15
      src/pages/Coupons/CouponList/CouponList.scss

2
src/pages/Coupons/CouponList/CouponList.js

@ -165,7 +165,7 @@ const CouponList = ({ memberID }) => {
{modalCoupon.couponRules && ( {modalCoupon.couponRules && (
<> <>
<div className="meta">礼券规则</div> <div className="meta">礼券规则</div>
<div className="value">{modalCoupon.couponRules}</div>
<div className="desc">{modalCoupon.couponRules}</div>
</> </>
)} )}
<div <div

15
src/pages/Coupons/CouponList/CouponList.scss

@ -210,7 +210,7 @@
left: 0; left: 0;
right: 0; right: 0;
width: 326px; width: 326px;
height: 416px;
height: 480px;
margin: auto; margin: auto;
background: #f9f9fb; background: #f9f9fb;
border-radius: 16px; border-radius: 16px;
@ -236,7 +236,7 @@
right: 8px; right: 8px;
background: #f3f4f8; background: #f3f4f8;
border-radius: 10px; border-radius: 10px;
height: 192px;
height: 256px;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: flex-start; align-items: flex-start;
@ -267,17 +267,20 @@
color: #7a7e8d; color: #7a7e8d;
opacity: 0.8; opacity: 0.8;
margin-bottom: 2px; margin-bottom: 2px;
overflow-x: hidden;
overflow-y: auto;
} }
.value {
.desc {
font-weight: 600; font-weight: 600;
font-size: 12px; font-size: 12px;
line-height: 16px;
line-height: 18px;
height: 72px;
color: #474a56; color: #474a56;
opacity: 0.8; opacity: 0.8;
margin-bottom: 8px; margin-bottom: 8px;
min-height: 16px; min-height: 16px;
overflow: hidden;
text-overflow: ellipsis;
overflow-x: hidden;
overflow-y: auto;
} }
.level { .level {
position: absolute; position: absolute;

Loading…
Cancel
Save