Showing
2 changed files
with
24 additions
and
12 deletions
@@ -158,12 +158,11 @@ function modalInit() { | @@ -158,12 +158,11 @@ function modalInit() { | ||
158 | } | 158 | } |
159 | 159 | ||
160 | function getPersenalCouponHtml(data) { | 160 | function getPersenalCouponHtml(data) { |
161 | - data.couponName = (data.couponName || '').replace('券', '券<br>'); | ||
162 | - | ||
163 | let html = `<div class="persenal-coupon"> | 161 | let html = `<div class="persenal-coupon"> |
164 | <span class="coupon-amount">${data.amount || 0}</span> | 162 | <span class="coupon-amount">${data.amount || 0}</span> |
165 | - <span class="coupon-limit">满¥${data.limit || 0}使用</span> | ||
166 | - <span class="coupon-name">${data.couponName}</span> | 163 | + <span class="coupon-limit">满¥${data.useLimit || 0}使用</span> |
164 | + <span class="coupon-name">${data.limitName}</span> | ||
165 | + <span class="coupon-type">${data.limitTypeName}</span> | ||
167 | <span class="coupon-time">有效期:${data.startTime} - ${data.endTime}</span> | 166 | <span class="coupon-time">有效期:${data.startTime} - ${data.endTime}</span> |
168 | </div>`; | 167 | </div>`; |
169 | 168 |
@@ -340,24 +340,37 @@ body { | @@ -340,24 +340,37 @@ body { | ||
340 | 340 | ||
341 | .coupon-name { | 341 | .coupon-name { |
342 | position: absolute; | 342 | position: absolute; |
343 | - top: 16px; | 343 | + top: 30px; |
344 | right: 30px; | 344 | right: 30px; |
345 | width: 280px; | 345 | width: 280px; |
346 | - height: 100px; | ||
347 | - font-size: 32px; | ||
348 | - line-height: 50px; | 346 | + height: 40px; |
347 | + font-size: 26px; | ||
348 | + line-height: 40px; | ||
349 | + text-align: center; | ||
350 | + overflow: hidden; | ||
351 | + text-overflow: ellipsis; | ||
352 | + word-break: break-all; | ||
353 | + } | ||
354 | + | ||
355 | + .coupon-type { | ||
356 | + position: absolute; | ||
357 | + top: 68px; | ||
358 | + right: 30px; | ||
359 | + width: 280px; | ||
360 | + height: 56px; | ||
361 | + font-size: 36px; | ||
362 | + line-height: 56px; | ||
349 | font-weight: bold; | 363 | font-weight: bold; |
350 | text-align: center; | 364 | text-align: center; |
351 | overflow: hidden; | 365 | overflow: hidden; |
366 | + text-overflow: ellipsis; | ||
352 | word-break: break-all; | 367 | word-break: break-all; |
353 | - display: -webkit-box; | ||
354 | - -webkit-line-clamp: 2; | ||
355 | - -webkit-box-orient: vertical; | 368 | + letter-spacing: 12px; |
356 | } | 369 | } |
357 | 370 | ||
358 | .coupon-time { | 371 | .coupon-time { |
359 | position: absolute; | 372 | position: absolute; |
360 | - top: 150px; | 373 | + top: 144px; |
361 | right: 70px; | 374 | right: 70px; |
362 | font-size: 40px; | 375 | font-size: 40px; |
363 | transform: scale(0.4); | 376 | transform: scale(0.4); |
-
Please register or login to post a comment