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"
}, },
...@@ -110,4 +116,4 @@ ...@@ -110,4 +116,4 @@
"gitlens.currentLineBlame": true, "gitlens.currentLineBlame": true,
"gitlens.currentLineBlame.format": "${author}, ${date} - ${message}", "gitlens.currentLineBlame.format": "${author}, ${date} - ${message}",
"gitlens.blame.visibility": "on" "gitlens.blame.visibility": "on"
} }
\ No newline at end of file \ No newline at end of file
...@@ -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;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<van-tab wx:for="{{ tabOptions }}" <van-tab wx:for="{{ tabOptions }}"
wx:key="value" wx:key="value"
wx:for-item="options" wx:for-item="options"
title="{{ options.text }}({{ list[options.key].unreadNum > 99? '99+' : list[options.key].unreadNum || 0 }})" title="{{ options.text }}({{ list[options.key].unreadNum > 99? '99+' : list[options.key].unreadNum || 0 }})"
name="{{ options.value }}"> name="{{ options.value }}">
<scrollList bind:onScrollToLower="handleScrollToLower" <scrollList bind:onScrollToLower="handleScrollToLower"
hasMore="{{ list[options.key].hasMore }}" hasMore="{{ list[options.key].hasMore }}"
......
/* 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);
color: #222222; color: #222222;
font-weight: 600; font-weight: 600;
} }
.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;
top: 0; top: 0;
z-index: -1; z-index: -1;
} }
.container { .container {
padding-top: var(--fontSize1); padding-top: var(--fontSize1);
} }
.banner-box { .banner-box {
height: var(--fontSize192); height: var(--fontSize192);
width: calc(100% - var(--fontSize48)); width: calc(100% - var(--fontSize48));
margin: var(--fontSize32) var(--fontSize24); margin: var(--fontSize32) var(--fontSize24);
position: relative; position: relative;
.close-icon { .close-icon {
position: absolute; position: absolute;
width: var(--fontSize32); width: var(--fontSize32);
height: var(--fontSize32); height: var(--fontSize32);
top: var(--fontSize16); top: var(--fontSize16);
right: var(--fontSize16); right: var(--fontSize16);
} }
} }
.box { .box {
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);
font-weight: 500; font-weight: 500;
} }
.menu { .menu {
margin: 0 -8rpx; margin: 0 -8rpx;
display: grid; display: grid;
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;
image { margin: var(--fontSize12) 0;
width: var(--fontSize72); image {
height: var(--fontSize72); width: var(--fontSize72);
} height: var(--fontSize72);
.hot_icon { }
position: absolute; .hot_icon {
right: var(--fontSize40); position: absolute;
top: 0; right: var(--fontSize40);
width: var(--fontSize38); top: 0;
height: var(--fontSize32); width: var(--fontSize38);
background: #F24724; height: var(--fontSize32);
border-radius: var(--fontSize16); background: #f24724;
color: #FFFFFF; border-radius: var(--fontSize16);
font-size: var(--fontSize22); color: #ffffff;
display: flex; font-size: var(--fontSize22);
justify-content: center; display: flex;
align-items: center; justify-content: center;
} align-items: center;
.bubble_icon { }
position: absolute; .bubble_icon {
right: var(--fontSize14); position: absolute;
top: var(--fontSize12); right: var(--fontSize14);
width: var(--fontSize16); top: var(--fontSize12);
height: var(--fontSize16); width: var(--fontSize16);
background: #F24724; height: var(--fontSize16);
border-radius: var(--fontSize16); background: #f24724;
display: flex; border-radius: var(--fontSize16);
justify-content: center; display: flex;
} justify-content: center;
} }
} }
}
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!