Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
lls_program
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-09-09 10:58:43 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2000a6af7bf5d8388ba017e7ecfdba8466e3dda2
2000a6af
1 parent
2a893198
refactor(主题样式): 统一使用CSS变量定义主题颜色
将硬编码的主题颜色替换为CSS变量(--primary-color等),提高样式可维护性
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
11 deletions
src/app.less
src/components/PointsCollector.vue
src/components/TotalPointsDisplay.vue
src/pages/CheckinList/index.vue
src/pages/UploadMedia/index.less
src/app.less
View file @
2000a6a
...
...
@@ -2,14 +2,23 @@
@tailwind components;
@tailwind utilities;
/* 主题色调定义 */
:root {
--primary-color: #54ABAE;
--secondary-color: #6B7280;
--success-color: #10B981;
--warning-color: #F59E0B;
--error-color: #EF4444;
}
.bg-blue-500 {
background-color:
#54ABAE
!important;
background-color:
var(--primary-color)
!important;
}
.text-blue-500 {
color:
#54ABAE
!important;
color:
var(--primary-color)
!important;
}
.border-blue-500 {
border-color:
#54ABAE
!important;
border-color:
var(--primary-color)
!important;
}
...
...
src/components/PointsCollector.vue
View file @
2000a6a
...
...
@@ -471,7 +471,7 @@ const handleGoToRewards = () => {
transform: translate(-50%, -50%);
width: 200rpx;
height: 200rpx;
background: linear-gradient(135deg,
#4A90E2, #4d96ea
);
background: linear-gradient(135deg,
var(--primary-color), var(--primary-color)
);
border-radius: 50%;
display: flex;
align-items: center;
...
...
@@ -508,7 +508,7 @@ const handleGoToRewards = () => {
.floating-item {
position: absolute;
background:
rgb(100, 166, 240
);
background:
var(--primary-color
);
border-radius: 50%;
display: flex;
align-items: center;
...
...
src/components/TotalPointsDisplay.vue
View file @
2000a6a
...
...
@@ -186,7 +186,7 @@ const handleGoToPointsRule = () => {
transform: translate(-50%, -50%);
width: 170rpx;
height: 170rpx;
background: linear-gradient(135deg,
#4A90E2, #4d96ea
);
background: linear-gradient(135deg,
var(--primary-color), var(--primary-color)
);
border-radius: 50%;
display: flex;
align-items: center;
...
...
src/pages/CheckinList/index.vue
View file @
2000a6a
<!--
* @Date: 2025-01-15 10:00:00
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-09-0
3 14:54:1
2
* @LastEditTime: 2025-09-0
9 10:57:4
2
* @FilePath: /lls_program/src/pages/CheckinList/index.vue
* @Description: 打卡列表页面 - 显示已打卡的地点列表
-->
...
...
@@ -36,7 +36,7 @@
v-if="location.checkedIn && location.hasPhoto"
type="primary"
size="normal"
color="#4d96ea
"
:color="THEME_COLORS.PRIMARY
"
@click="viewPhoto(location)"
>
查看照片
...
...
@@ -249,7 +249,7 @@ const loadCheckinData = async () => {
.progress-info {
font-size: 26rpx;
color: v
-bind('THEME_COLORS.PRIMARY'
);
color: v
ar(--primary-color
);
background-color: #EBF4FF;
padding: 12rpx 20rpx;
border-radius: 20rpx;
...
...
src/pages/UploadMedia/index.less
View file @
2000a6a
...
...
@@ -98,7 +98,7 @@
}
&.primary {
background-color: v
-bind('THEME_COLORS.PRIMARY'
);
background-color: v
ar(--primary-color
);
color: #ffffff;
&:active {
...
...
@@ -135,4 +135,4 @@
top: 0;
left: 0;
}
}
\ No newline at end of file
}
...
...
Please
register
or
login
to post a comment