Commit 9a46b99e by 前端

兼容

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