Commit d0b500e0 by Jaxon

style: 统一样式格式并更新页面背景

- 在 .vscode/settings.json 中添加对 SCSS 和 SASS 文件的 Prettier 格式化支持
- 将 serverCenter 页面背景从渐变替换为静态图片,保持与其他页面视觉一致
- 修复 serverCenter.wxml 中多余的制表符,保持代码整洁
- 重构 workspace.sass 文件,统一缩进为制表符并调整部分内边距
1 parent 9b117cc0
...@@ -19,6 +19,12 @@ ...@@ -19,6 +19,12 @@
"[wxss]": { "[wxss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode" "editor.defaultFormatter": "esbenp.prettier-vscode"
}, },
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[sass]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": { "[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode" "editor.defaultFormatter": "esbenp.prettier-vscode"
}, },
......
...@@ -14,7 +14,9 @@ page { ...@@ -14,7 +14,9 @@ page {
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
height: 800rpx; height: 800rpx;
background: linear-gradient(-89.9deg, #e6fffb 0%, #dcecff 40%, #f2f2ff 62%, #dce9fe 100%);
background: url("https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/page-bg.png") no-repeat;
background-size: 100% var(--fontSize400);
/* 绑定动画:10秒循环,平滑过渡 */ /* 绑定动画:10秒循环,平滑过渡 */
position: fixed; position: fixed;
left: 0; left: 0;
......
/* pages/tab/workspace/workspace.wxss */ /* pages/tab/workspace/workspace.wxss */
page { page {
background: #F2F3F7; background: #f2f3f7;
} }
.page-title { .page-title {
font-size: var(--fontSize34); font-size: var(--fontSize34);
...@@ -10,7 +10,7 @@ page { ...@@ -10,7 +10,7 @@ page {
.bg { .bg {
width: 100%; width: 100%;
height: var(--fontSize400); height: var(--fontSize400);
background: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/page-bg.png') no-repeat; background: url("https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/page-bg.png") no-repeat;
background-size: 100% var(--fontSize400); background-size: 100% var(--fontSize400);
position: fixed; position: fixed;
left: 0; left: 0;
...@@ -37,7 +37,7 @@ page { ...@@ -37,7 +37,7 @@ page {
margin: var(--fontSize32) var(--fontSize24); margin: var(--fontSize32) var(--fontSize24);
border-radius: var(--fontSize36); border-radius: var(--fontSize36);
background: #ffffff; background: #ffffff;
padding: var(--fontSize24) var(--fontSize32); padding: var(--fontSize24) var(--fontSize32) var(--fontSize12);
.label { .label {
color: #222222; color: #222222;
font-size: var(--fontSize28); font-size: var(--fontSize28);
...@@ -49,19 +49,20 @@ page { ...@@ -49,19 +49,20 @@ page {
grid-template-columns: repeat(4, minmax(var(--fontSize100), 1fr)); grid-template-columns: repeat(4, minmax(var(--fontSize100), 1fr));
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding-top: var(--fontSize24); padding-top: var(--fontSize12);
background: #FFFFFF; background: #ffffff;
border-radius: var(--fontSize16); border-radius: var(--fontSize16);
.label { .label {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: var(--fontSize24); font-size: var(--fontSize24);
color: #292D33; color: #292d33;
} }
.item { .item {
display: flex; display: flex;
flex-flow: column; flex-flow: column;
align-items: center; align-items: center;
position: relative; position: relative;
margin: var(--fontSize12) 0;
image { image {
width: var(--fontSize72); width: var(--fontSize72);
height: var(--fontSize72); height: var(--fontSize72);
...@@ -72,9 +73,9 @@ page { ...@@ -72,9 +73,9 @@ page {
top: 0; top: 0;
width: var(--fontSize38); width: var(--fontSize38);
height: var(--fontSize32); height: var(--fontSize32);
background: #F24724; background: #f24724;
border-radius: var(--fontSize16); border-radius: var(--fontSize16);
color: #FFFFFF; color: #ffffff;
font-size: var(--fontSize22); font-size: var(--fontSize22);
display: flex; display: flex;
justify-content: center; justify-content: center;
...@@ -86,7 +87,7 @@ page { ...@@ -86,7 +87,7 @@ page {
top: var(--fontSize12); top: var(--fontSize12);
width: var(--fontSize16); width: var(--fontSize16);
height: var(--fontSize16); height: var(--fontSize16);
background: #F24724; background: #f24724;
border-radius: var(--fontSize16); border-radius: var(--fontSize16);
display: flex; display: flex;
justify-content: center; justify-content: center;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!