hookehuyr

style: 使用次级背景色变量替换硬编码白色背景

将PointsCollector和TotalPointsDisplay组件的白色背景替换为定义的--secondary-color-bg变量,保持UI样式一致性并在app.less中新增该变量定义
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
12 --color-primary: var(--primary-color); 12 --color-primary: var(--primary-color);
13 --color-text: #9CA3AF; 13 --color-text: #9CA3AF;
14 --primary-color-rgb: 84, 171, 174; 14 --primary-color-rgb: 84, 171, 174;
15 + --secondary-color-bg: #E7E7E7;
15 } 16 }
16 17
17 .bg-blue-500 { 18 .bg-blue-500 {
......
...@@ -437,7 +437,7 @@ const handleGoToRewards = () => { ...@@ -437,7 +437,7 @@ const handleGoToRewards = () => {
437 437
438 <style lang="less"> 438 <style lang="less">
439 .points-collector-container { 439 .points-collector-container {
440 - background: white; 440 + background: var(--secondary-color-bg);
441 border-radius: 24rpx; 441 border-radius: 24rpx;
442 box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08); 442 box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08);
443 margin: 32rpx; 443 margin: 32rpx;
......
...@@ -129,7 +129,7 @@ const handleGoToPointsRule = () => { ...@@ -129,7 +129,7 @@ const handleGoToPointsRule = () => {
129 129
130 <style lang="less"> 130 <style lang="less">
131 .total-points-display-container { 131 .total-points-display-container {
132 - background: white; 132 + background: var(--secondary-color-bg);
133 border-radius: 24rpx; 133 border-radius: 24rpx;
134 box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08); 134 box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08);
135 margin: 32rpx; 135 margin: 32rpx;
......