|
|
@@ -1,4 +1,4 @@
|
|
|
-// 云商城 — 与首页一致的绿色系设计令牌
|
|
|
+// RunForge 用户端 / 管理端统一设计令牌(绿色系)
|
|
|
@store-primary: #1b3022;
|
|
|
@store-primary-light: #2d4a38;
|
|
|
@store-accent: #52b878;
|
|
|
@@ -13,72 +13,212 @@
|
|
|
@store-shadow-hover: 0 12px 40px rgba(27, 48, 34, 0.12);
|
|
|
@store-price: #e85d04;
|
|
|
@store-layout-max-width: 1200px;
|
|
|
+@store-layout-narrow: 720px;
|
|
|
|
|
|
-// 由 style.css 全局引入,避免 scoped 导致样式失效
|
|
|
-.store-page {
|
|
|
- padding: 0 20px 32px;
|
|
|
+@app-breakpoint-sm: 576px;
|
|
|
+@app-breakpoint-md: 768px;
|
|
|
+@app-breakpoint-lg: 992px;
|
|
|
+@app-breakpoint-xl: 1280px;
|
|
|
+
|
|
|
+// —— 页面容器(兼容旧 .container)——
|
|
|
+.container,
|
|
|
+.store-page,
|
|
|
+.app-page {
|
|
|
+ padding: 0 12px 24px;
|
|
|
width: 100%;
|
|
|
max-width: @store-layout-max-width;
|
|
|
margin: 0 auto;
|
|
|
box-sizing: border-box;
|
|
|
+
|
|
|
+ @media (min-width: @app-breakpoint-md) {
|
|
|
+ padding: 0 20px 32px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
-// 售后服务 — 窄栏在内容区居中(与 order-page 一致)
|
|
|
-.service-page {
|
|
|
+.app-page--full,
|
|
|
+.service-page,
|
|
|
+.order-page,
|
|
|
+.order-detail-page,
|
|
|
+.power-page {
|
|
|
width: 100%;
|
|
|
max-width: none;
|
|
|
}
|
|
|
|
|
|
-.service-page__inner {
|
|
|
+.app-page--wide {
|
|
|
+ max-width: none;
|
|
|
+}
|
|
|
+
|
|
|
+.app-page__inner,
|
|
|
+.service-page__inner,
|
|
|
+.power-page__inner,
|
|
|
+.order-page__inner,
|
|
|
+.order-detail-page__inner {
|
|
|
width: 100%;
|
|
|
- max-width: 720px;
|
|
|
margin-left: auto;
|
|
|
margin-right: auto;
|
|
|
+}
|
|
|
+
|
|
|
+.app-page__inner--wide,
|
|
|
+.service-page__inner--wide,
|
|
|
+.power-page__inner--wide,
|
|
|
+.order-page__inner,
|
|
|
+.order-detail-page__inner {
|
|
|
+ max-width: @store-layout-max-width;
|
|
|
+}
|
|
|
+
|
|
|
+.app-page__inner--narrow,
|
|
|
+.service-page__inner:not(.service-page__inner--wide),
|
|
|
+.power-page__inner:not(.power-page__inner--wide) {
|
|
|
+ max-width: @store-layout-narrow;
|
|
|
+}
|
|
|
+
|
|
|
+// —— 页头 / 工具栏 ——
|
|
|
+.app-page-header,
|
|
|
+.page-header {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ align-items: flex-end;
|
|
|
+ justify-content: space-between;
|
|
|
+ gap: 12px;
|
|
|
+ margin-bottom: 16px;
|
|
|
+
|
|
|
+ @media (min-width: @app-breakpoint-md) {
|
|
|
+ gap: 16px;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &__text {
|
|
|
+ flex: 1 1 200px;
|
|
|
+ min-width: 0;
|
|
|
+ }
|
|
|
|
|
|
- &--wide {
|
|
|
- max-width: @store-layout-max-width;
|
|
|
+ &__actions {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ gap: 8px;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: flex-end;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// 宿舍电费
|
|
|
-.power-page {
|
|
|
- width: 100%;
|
|
|
- max-width: none;
|
|
|
+.store-section-title {
|
|
|
+ margin: 0 0 4px;
|
|
|
+ font-size: clamp(1.25rem, 4vw, 1.5rem);
|
|
|
+ font-weight: 600;
|
|
|
+ color: @store-primary;
|
|
|
+ line-height: 1.3;
|
|
|
}
|
|
|
|
|
|
-.power-page__inner {
|
|
|
- width: 100%;
|
|
|
- max-width: 720px;
|
|
|
- margin-left: auto;
|
|
|
- margin-right: auto;
|
|
|
+.store-section-desc {
|
|
|
+ margin: 0;
|
|
|
+ font-size: 0.9rem;
|
|
|
+ color: @store-text-muted;
|
|
|
+ line-height: 1.5;
|
|
|
+}
|
|
|
+
|
|
|
+.app-notice,
|
|
|
+.notice {
|
|
|
+ margin-bottom: 16px;
|
|
|
+ border-radius: @store-radius-sm;
|
|
|
+}
|
|
|
|
|
|
- &--wide {
|
|
|
- max-width: @store-layout-max-width;
|
|
|
+// —— 按钮 ——
|
|
|
+.app-btn-primary,
|
|
|
+.submit-btn,
|
|
|
+.primary-btn {
|
|
|
+ border-radius: 999px;
|
|
|
+ background: @store-primary !important;
|
|
|
+ border-color: @store-primary !important;
|
|
|
+
|
|
|
+ &:hover:not(:disabled) {
|
|
|
+ background: @store-primary-light !important;
|
|
|
+ border-color: @store-primary-light !important;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// 云商城订单 — 列表与详情在内容区居中
|
|
|
-.order-page,
|
|
|
-.order-detail-page {
|
|
|
- width: 100%;
|
|
|
- max-width: none;
|
|
|
+.buttonGroup,
|
|
|
+.app-toolbar {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ gap: 8px;
|
|
|
+ margin-bottom: 16px;
|
|
|
+
|
|
|
+ @media (min-width: @app-breakpoint-md) {
|
|
|
+ gap: 10px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
-.order-page__inner {
|
|
|
- width: 100%;
|
|
|
- max-width: @store-layout-max-width;
|
|
|
- margin-left: auto;
|
|
|
- margin-right: auto;
|
|
|
+// —— 卡片 ——
|
|
|
+.container .arco-card,
|
|
|
+.store-page .arco-card,
|
|
|
+.app-page .arco-card,
|
|
|
+.app-card {
|
|
|
+ border-radius: @store-radius;
|
|
|
+ border: 1px solid @store-card-border;
|
|
|
+ box-shadow: @store-shadow;
|
|
|
+ margin-bottom: 16px;
|
|
|
+
|
|
|
+ .arco-card-header {
|
|
|
+ border-bottom: 1px solid @store-card-border;
|
|
|
+ }
|
|
|
+
|
|
|
+ .arco-card-header-title {
|
|
|
+ font-weight: 600;
|
|
|
+ color: @store-primary;
|
|
|
+ }
|
|
|
+
|
|
|
+ .arco-card-body {
|
|
|
+ overflow-x: auto;
|
|
|
+ }
|
|
|
+
|
|
|
+ .arco-table {
|
|
|
+ min-width: 560px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
-.order-detail-page__inner {
|
|
|
+// —— 表格(移动端横向滚动)——
|
|
|
+.app-table-wrap,
|
|
|
+.table-wrap {
|
|
|
width: 100%;
|
|
|
- max-width: 900px;
|
|
|
- margin-left: auto;
|
|
|
- margin-right: auto;
|
|
|
+ overflow-x: auto;
|
|
|
+ -webkit-overflow-scrolling: touch;
|
|
|
+ margin-top: 12px;
|
|
|
+
|
|
|
+ .arco-table {
|
|
|
+ min-width: 640px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// —— 筛选表单响应式 ——
|
|
|
+.app-query-form {
|
|
|
+ .arco-form-item {
|
|
|
+ margin-bottom: 12px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
-// Arco Spin 默认为 inline-block,会导致子内容宽度塌陷
|
|
|
+@media (max-width: @app-breakpoint-lg) {
|
|
|
+ .app-query-form .arco-row > .arco-col,
|
|
|
+ .queryForm .arco-row > .arco-col {
|
|
|
+ flex: 0 0 100% !important;
|
|
|
+ max-width: 100% !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ .app-query-form .arco-divider-vertical,
|
|
|
+ .queryForm + .arco-divider,
|
|
|
+ .queryForm .arco-divider-vertical {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .app-query-actions,
|
|
|
+ .queryForm ~ .arco-col[style*='text-align: right'] {
|
|
|
+ flex: 0 0 100% !important;
|
|
|
+ max-width: 100% !important;
|
|
|
+ text-align: left !important;
|
|
|
+ margin-top: 4px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// —— Spin ——
|
|
|
.store-spin {
|
|
|
display: block !important;
|
|
|
width: 100% !important;
|
|
|
@@ -88,20 +228,14 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.store-section-title {
|
|
|
- margin: 0 0 4px;
|
|
|
- font-size: 1.5rem;
|
|
|
- font-weight: 600;
|
|
|
- color: @store-primary;
|
|
|
-}
|
|
|
-
|
|
|
-.store-section-desc {
|
|
|
- margin: 0 0 20px;
|
|
|
- font-size: 0.9rem;
|
|
|
- color: @store-text-muted;
|
|
|
+// —— 商品网格 ——
|
|
|
+.goods-grid {
|
|
|
+ @media (max-width: @app-breakpoint-md) {
|
|
|
+ grid-template-columns: 1fr !important;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
-// 云商城搜索框(class 落在 Arco Input 根节点,须全局样式且覆盖 mengtu 主题)
|
|
|
+// —— 搜索框 ——
|
|
|
.store-search.arco-input-wrapper {
|
|
|
background-color: @store-card-bg !important;
|
|
|
border: 1px solid #c5d9cc !important;
|
|
|
@@ -132,3 +266,11 @@
|
|
|
color: @store-accent;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+// —— 弹窗(移动端宽度)——
|
|
|
+@media (max-width: @app-breakpoint-md) {
|
|
|
+ .arco-modal {
|
|
|
+ max-width: calc(100vw - 24px) !important;
|
|
|
+ margin: 12px;
|
|
|
+ }
|
|
|
+}
|