Files
lucky_shop/pages_tool/member/public/css/point.scss
ZF sun 08caa49b43 style: 将项目内硬编码色彩替换为CSS变量,兼容多平台
本次提交将项目内47处硬编码色彩值替换为CSS自定义属性,同时添加了兜底纯色样式以兼容旧版小程序 runtime。覆盖了微信小程序、鸿蒙元服务和H5三端,所有渐变、纯色、边框色都增加了主题化支持,并新增了多平台主题兼容测试文档。
2026-06-11 15:32:00 +08:00

210 lines
3.4 KiB
SCSS

.custom-navbar {
width: 100vw;
padding-bottom: 20rpx;
position: fixed;
left: 0;
top: 0;
z-index: 100;
background: unset;
// #ifdef MP
background-size: 100% 380rpx;
// #endif
.navbar-wrap {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
.navbar-title {
color: #fff;
font-size: 32rpx;
font-weight: 600;
}
.back {
position: absolute;
color: #fff;
left: 30rpx;
font-size: 40rpx;
}
}
.custom-navbar-block {
padding-bottom: 20rpx;
}
.head-wrap {
width: 100vw;
background-size: 100%;
padding: 60rpx 68rpx 140rpx 68rpx;
box-sizing: border-box;
border-radius: 0 0 100% 100%/0 0 70rpx 70rpx;
overflow: hidden;
// #ifdef MP
padding-top: 160rpx;
// #endif
.title {
text-align: left;
line-height: 1;
color: #F6F6F6;
}
.point {
color: var(--btn-text-color);
text-align: left;
line-height: 1;
margin-bottom: 20rpx;
font-size: 64rpx;
}
.flex-box {
display: flex;
margin-top: 56rpx;
.flex-item {
flex: 1;
.num {
font-size: 34rpx;
margin-bottom: 20rpx;
color: #fff;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
view {
text-align: left;
color: #F6F6F6;
line-height: 1;
}
}
}
}
.menu-wrap {
border-radius: 20rpx;
margin: 0 24rpx;
padding: 30rpx;
background: #fff;
display: flex;
transform: translateY(-90rpx);
.menu-item {
flex: 1;
text-align: left;
display: flex;
align-items: center;
.icon {
width: 88rpx;
height: 88rpx;
background: #F3F3F3;
border-radius: 20rpx;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
margin-right: 24rpx;
image {
width: 70%;
}
}
.title {
font-size: 32rpx;
font-weight: bold;
color: #333333;
}
}
}
.task-wrap {
background-color: #fff;
margin: 30rpx 24rpx;
border-radius: 18rpx;
padding: 32rpx;
transform: translateY(-90rpx);
.title {
font-size: 32rpx;
text-align: left;
margin-bottom: 40rpx;
font-weight: bold;
}
.task-item {
border-radius: $border-radius;
background: #fff;
display: flex;
align-items: center;
margin-bottom: 80rpx;
&:last-child {
margin-bottom: 30rpx;
}
.icon {
width: 62rpx;
height: 62rpx;
background: #F3F3F3;
border-radius: 20rpx;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
}
.iconfont {
font-size: 52rpx;
-webkit-background-clip: text !important;
-webkit-text-fill-color: transparent;
background: linear-gradient(135deg, #FE7849 0%, #FF1959 100%);
}
.iconshangpin {
font-size: 48rpx;
}
.wrap {
flex: 1;
padding-left: 26rpx;
.title {
line-height: 1;
font-size: 28rpx;
font-weight: bold;
margin-bottom: 0;
}
.desc {
line-height: 1;
margin-top: 10rpx;
}
}
.btn {
height: 60rpx;
line-height: 60rpx;
border-radius: 60rpx;
text-align: center;
width: 140rpx;
color: #fff;
font-size: 26rpx;
font-weight: 600;
// P0: 积分页按钮渐变 → var(--point-page-bg-start/end)
// 兼容: 微信小程序 / 鸿蒙元服务 — linear-gradient 嵌套 var() 现代 runtime 支持
background: #FE7849; // 兜底
background: linear-gradient(135deg, var(--point-page-bg-start, #FE7849) 0%, var(--point-page-bg-end, #FF1959) 100%);
}
}
}