Commit 9a46b99e by 前端

兼容

1 parent 98b6cc9b
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-04-08 11:30:30 * @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-12-25 17:35:05 * @LastEditTime: 2024-12-26 16:01:32
--> -->
<template> <template>
<view class="point-box"> <view class="point-box">
...@@ -177,9 +177,9 @@ export default { ...@@ -177,9 +177,9 @@ export default {
} }
.nav-bar { .nav-bar {
width: 100%; width: 100%;
height: 96rpx; height: toRpx(96);
margin-top: 48rpx; margin-top: toRpx(48);
margin-bottom: 12rpx; margin-bottom: toRpx(12);
display: flex; display: flex;
align-items: center; align-items: center;
.back { .back {
...@@ -193,7 +193,7 @@ export default { ...@@ -193,7 +193,7 @@ export default {
.title { .title {
font-weight: 700; font-weight: 700;
font-size: 32rpx; font-size: toRpx(32);
color: #1a1a1a; color: #1a1a1a;
flex: 1; flex: 1;
text-align: center; text-align: center;
...@@ -208,9 +208,9 @@ export default { ...@@ -208,9 +208,9 @@ export default {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
.tab-mid { .tab-mid {
font-size: 32rpx; font-size: toRpx(32);
color: #1a1a1a; color: #1a1a1a;
margin: 0 120rpx; margin: 0 toRpx(120);
} }
} }
.tab-prev, .tab-prev,
...@@ -218,21 +218,21 @@ export default { ...@@ -218,21 +218,21 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 48rpx; width: toRpx(48);
border-radius: 50%; border-radius: 50%;
height: 48rpx; height: toRpx(48);
background: #ffffff; background: #ffffff;
} }
} }
} }
.point-body { .point-body {
padding: 0 64rpx; padding: 0 toRpx(64);
margin-top: 30rpx; margin-top: toRpx(30);
.level-box { .level-box {
height: calc(50vh - 136rpx); height: calc(50vh - #{toRpx(136)});
display: flex; display: flex;
&:first-child { &:first-child {
margin-bottom: 48rpx; margin-bottom: toRpx(48);
} }
.level-logo { .level-logo {
.sprite-icon { .sprite-icon {
...@@ -240,86 +240,86 @@ export default { ...@@ -240,86 +240,86 @@ export default {
} }
.level-title { .level-title {
font-weight: 600; font-weight: 600;
font-size: 36rpx; font-size: toRpx(36);
color: #333333; color: #333333;
letter-spacing: 0; letter-spacing: 0;
line-height: 44rpx; line-height: toRpx(44);
width: 64rpx; width: toRpx(64);
text-align: center; text-align: center;
margin-top: 16rpx; margin-top: toRpx(16);
} }
} }
.level-desc { .level-desc {
height: 100%; height: 100%;
background: #ffffffe6; background: #ffffffe6;
box-shadow: inset 0 0 16rpx 0 #ffffff; box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
border-radius: 40rpx; border-radius: toRpx(40);
margin-left: 32rpx; margin-left: toRpx(32);
width: calc(100vw - 200rpx); width: calc(100vw - #{toRpx(200)});
display: grid; display: grid;
grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(4, 1fr);
gap: 32rpx; gap: toRpx(32);
padding: 56rpx 48rpx; padding: toRpx(56) toRpx(48);
.level-item { .level-item {
background: #f7f7f7; background: #f7f7f7;
border-radius: 36rpx; border-radius: toRpx(36);
position: relative; position: relative;
.my-level { .my-level {
position: absolute; position: absolute;
width: 154rpx; width: toRpx(154);
height: 56rpx; height: toRpx(56);
top: -4rpx; top: -4rpx;
left: -4rpx; left: -4rpx;
} }
.item-name { .item-name {
font-size: 40rpx; font-size: toRpx(40);
color: #a2a2a8; color: #a2a2a8;
position: absolute; position: absolute;
left: 32rpx; left: toRpx(32);
top: 80rpx; top: toRpx(80);
font-weight: 600; font-weight: 600;
} }
.star-logo { .star-logo {
margin-top: 44rpx; margin-top: toRpx(44);
text-align: center; text-align: center;
image { image {
width: 168rpx; width: toRpx(168);
height: 168rpx; height: toRpx(168);
} }
} }
.star-coupon { .star-coupon {
position: absolute; position: absolute;
bottom: 30rpx; bottom: toRpx(30);
left: 0rpx; left: toRpx(0);
display: flex; display: flex;
justify-content: center; justify-content: center;
width: 100%; width: 100%;
.coupon-box { .coupon-box {
width: 390rpx; width: toRpx(390);
height: 96rpx; height: toRpx(96);
position: relative; position: relative;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 0 32rpx; padding: 0 toRpx(32);
z-index: 0; z-index: 0;
image { image {
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
width: 390rpx; width: toRpx(390);
height: 96rpx; height: toRpx(96);
z-index: -1; z-index: -1;
} }
.coupon-title { .coupon-title {
font-size: 28rpx; font-size: toRpx(28);
color: #5c3537; color: #5c3537;
&.grey { &.grey {
color: #fdfdff; color: #fdfdff;
} }
} }
.coupon-num { .coupon-num {
font-size: 28rpx; font-size: toRpx(28);
color: #db832c; color: #db832c;
&.grey { &.grey {
color: #fdfdff; color: #fdfdff;
...@@ -329,9 +329,9 @@ export default { ...@@ -329,9 +329,9 @@ export default {
} }
.star-name { .star-name {
text-align: center; text-align: center;
font-size: 40rpx; font-size: toRpx(40);
line-height: 60rpx; line-height: toRpx(60);
margin-top: 4rpx; margin-top: toRpx(4);
color: #292d33; color: #292d33;
font-weight: 600; font-weight: 600;
&.grey { &.grey {
...@@ -339,25 +339,25 @@ export default { ...@@ -339,25 +339,25 @@ export default {
} }
} }
.star-desc { .star-desc {
font-size: 24rpx; font-size: toRpx(24);
color: #181a1f; color: #181a1f;
text-align: center; text-align: center;
line-height: 60rpx; line-height: toRpx(60);
&.grey { &.grey {
color: #a2a2a8; color: #a2a2a8;
} }
} }
.item-logo { .item-logo {
position: absolute; position: absolute;
top: 0rpx; top: toRpx(0);
right: 32rpx; right: toRpx(32);
image { image {
width: 184rpx; width: toRpx(184);
} }
} }
.item-desc { .item-desc {
padding-left: 40rpx; padding-left: toRpx(40);
font-size: 24rpx; font-size: toRpx(24);
&.grey { &.grey {
color: #a2a2a8; color: #a2a2a8;
} }
...@@ -365,22 +365,22 @@ export default { ...@@ -365,22 +365,22 @@ export default {
.item-footer { .item-footer {
position: absolute; position: absolute;
left: 0; left: 0;
bottom: 26rpx; bottom: toRpx(26);
width: 100%; width: 100%;
} }
.item-detail { .item-detail {
width: calc(100% - 48rpx); width: calc(100% - #{toRpx(48)});
box-sizing: border-box; box-sizing: border-box;
border-radius: 16rpx; border-radius: toRpx(16);
max-height: calc(100% - 320rpx); max-height: calc(100% - #{toRpx(320)});
overflow-y: auto; overflow-y: auto;
margin: 16rpx 24rpx; margin: toRpx(16) toRpx(24);
padding: 12rpx 0rpx; padding: toRpx(12) toRpx(0);
color: #a2a2a8; color: #a2a2a8;
.item-coupon { .item-coupon {
position: relative; position: relative;
font-size: 24rpx; font-size: toRpx(24);
line-height: 36rpx; line-height: toRpx(36);
margin-left: -20rpx; margin-left: -20rpx;
} }
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-04-08 11:30:30 * @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-12-25 10:34:42 * @LastEditTime: 2024-12-26 15:55:10
--> -->
<template> <template>
<view class="point-box"> <view class="point-box">
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</view> </view>
<view class="desc-wrap"> <view class="desc-wrap">
<view class="item-body" v-for="(l, i) in item.list" :key="i"> <view class="item-body" v-for="(l, i) in item.list" :key="i">
<view class="item-logo" v-if="l.ranking > 3">{{ item.ranking }}</view> <view class="item-logo" v-if="l.ranking > 3">{{ l.ranking }}</view>
<view class="item-image" v-else><image :src="require(`@/assets/images/point/${index == 0 ? 'crown_' : 'prize_'}${l.ranking || 0}.png`)" /></view> <view class="item-image" v-else><image :src="require(`@/assets/images/point/${index == 0 ? 'crown_' : 'prize_'}${l.ranking || 0}.png`)" /></view>
<view class="item-name">{{ l.staffName }}</view> <view class="item-name">{{ l.staffName }}</view>
<view v-if="l.badgeList && l.badgeList.length" :class="{ 'item-prize': index == 0, 'item-medal': index != 0 }"><image :src="index == 0 ? pointImg[l.badgeList[0].growthType - 1] : starImg[index - 1]" /></view> <view v-if="l.badgeList && l.badgeList.length" :class="{ 'item-prize': index == 0, 'item-medal': index != 0 }"><image :src="index == 0 ? pointImg[l.badgeList[0].growthType - 1] : starImg[index - 1]" /></view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!