Commit d0b500e0 by Jaxon

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

- 在 .vscode/settings.json 中添加对 SCSS 和 SASS 文件的 Prettier 格式化支持
- 将 serverCenter 页面背景从渐变替换为静态图片,保持与其他页面视觉一致
- 修复 serverCenter.wxml 中多余的制表符,保持代码整洁
- 重构 workspace.sass 文件,统一缩进为制表符并调整部分内边距
1 parent 9b117cc0
......@@ -19,6 +19,12 @@
"[wxss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[sass]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
......@@ -110,4 +116,4 @@
"gitlens.currentLineBlame": true,
"gitlens.currentLineBlame.format": "${author}, ${date} - ${message}",
"gitlens.blame.visibility": "on"
}
}
\ No newline at end of file
......@@ -14,7 +14,9 @@ page {
box-sizing: border-box;
width: 100%;
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秒循环,平滑过渡 */
position: fixed;
left: 0;
......
......@@ -16,7 +16,7 @@
<van-tab wx:for="{{ tabOptions }}"
wx:key="value"
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 }}">
<scrollList bind:onScrollToLower="handleScrollToLower"
hasMore="{{ list[options.key].hasMore }}"
......
/* pages/tab/workspace/workspace.wxss */
page {
background: #F2F3F7;
background: #f2f3f7;
}
.page-title {
font-size: var(--fontSize34);
color: #222222;
font-weight: 600;
font-size: var(--fontSize34);
color: #222222;
font-weight: 600;
}
.bg {
width: 100%;
height: var(--fontSize400);
background: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/page-bg.png') no-repeat;
background-size: 100% var(--fontSize400);
position: fixed;
left: 0;
top: 0;
z-index: -1;
width: 100%;
height: var(--fontSize400);
background: url("https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/page-bg.png") no-repeat;
background-size: 100% var(--fontSize400);
position: fixed;
left: 0;
top: 0;
z-index: -1;
}
.container {
padding-top: var(--fontSize1);
padding-top: var(--fontSize1);
}
.banner-box {
height: var(--fontSize192);
width: calc(100% - var(--fontSize48));
margin: var(--fontSize32) var(--fontSize24);
position: relative;
.close-icon {
position: absolute;
width: var(--fontSize32);
height: var(--fontSize32);
top: var(--fontSize16);
right: var(--fontSize16);
}
height: var(--fontSize192);
width: calc(100% - var(--fontSize48));
margin: var(--fontSize32) var(--fontSize24);
position: relative;
.close-icon {
position: absolute;
width: var(--fontSize32);
height: var(--fontSize32);
top: var(--fontSize16);
right: var(--fontSize16);
}
}
.box {
margin: var(--fontSize32) var(--fontSize24);
border-radius: var(--fontSize36);
background: #ffffff;
padding: var(--fontSize24) var(--fontSize32);
.label {
color: #222222;
font-size: var(--fontSize28);
font-weight: 500;
}
.menu {
margin: 0 -8rpx;
display: grid;
grid-template-columns: repeat(4, minmax(var(--fontSize100), 1fr));
justify-content: space-between;
align-items: center;
padding-top: var(--fontSize24);
background: #FFFFFF;
border-radius: var(--fontSize16);
.label {
font-family: PingFangSC-Regular;
font-size: var(--fontSize24);
color: #292D33;
}
.item {
display: flex;
flex-flow: column;
align-items: center;
position: relative;
image {
width: var(--fontSize72);
height: var(--fontSize72);
}
.hot_icon {
position: absolute;
right: var(--fontSize40);
top: 0;
width: var(--fontSize38);
height: var(--fontSize32);
background: #F24724;
border-radius: var(--fontSize16);
color: #FFFFFF;
font-size: var(--fontSize22);
display: flex;
justify-content: center;
align-items: center;
}
.bubble_icon {
position: absolute;
right: var(--fontSize14);
top: var(--fontSize12);
width: var(--fontSize16);
height: var(--fontSize16);
background: #F24724;
border-radius: var(--fontSize16);
display: flex;
justify-content: center;
}
}
}
margin: var(--fontSize32) var(--fontSize24);
border-radius: var(--fontSize36);
background: #ffffff;
padding: var(--fontSize24) var(--fontSize32) var(--fontSize12);
.label {
color: #222222;
font-size: var(--fontSize28);
font-weight: 500;
}
.menu {
margin: 0 -8rpx;
display: grid;
grid-template-columns: repeat(4, minmax(var(--fontSize100), 1fr));
justify-content: space-between;
align-items: center;
padding-top: var(--fontSize12);
background: #ffffff;
border-radius: var(--fontSize16);
.label {
font-family: PingFangSC-Regular;
font-size: var(--fontSize24);
color: #292d33;
}
.item {
display: flex;
flex-flow: column;
align-items: center;
position: relative;
margin: var(--fontSize12) 0;
image {
width: var(--fontSize72);
height: var(--fontSize72);
}
.hot_icon {
position: absolute;
right: var(--fontSize40);
top: 0;
width: var(--fontSize38);
height: var(--fontSize32);
background: #f24724;
border-radius: var(--fontSize16);
color: #ffffff;
font-size: var(--fontSize22);
display: flex;
justify-content: center;
align-items: center;
}
.bubble_icon {
position: absolute;
right: var(--fontSize14);
top: var(--fontSize12);
width: var(--fontSize16);
height: var(--fontSize16);
background: #f24724;
border-radius: var(--fontSize16);
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!