/** * 这里是uni-app内置的常用样式变量 * * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App * */ /** * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 * * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 */ /* 颜色变量 */ /* 行为相关颜色 */ /* 文字基本颜色 */ /* 背景颜色 */ /* 边框颜色 */ /* 尺寸变量 */ /* 文字尺寸 */ /* 图片尺寸 */ /* Border Radius */ /* 水平间距 */ /* 垂直间距 */ /* 透明度 */ /* 文章场景相关 */ .content { display: flex; height: 100vh; background-color: #F3F4F8; flex-direction: column; overflow: hidden; } .header-title { width: 100%; margin-top: 120rpx; font-size: 30rpx; text-align: center; } .divider { width: 100%; height: 2rpx; background-color: #E0E0E0; margin-top: 32rpx; } .divider-vertical { width: 2rpx; background-color: #E0E0E0; } .main-container { display: flex; flex-direction: row; flex: 1; height: calc(100vh - 120rpx - 32rpx - 2rpx); overflow: hidden; } .category-sidebar { display: flex; flex-direction: column; width: 218rpx; min-width: 218rpx; background-color: #F7F7F7; overflow-y: auto; } .category-item { display: flex; flex-direction: row; align-items: center; justify-content: center; width: 100%; min-height: 88rpx; padding: 16rpx 12rpx; position: relative; background: #F7F7F7; color: #000000; transition: all 0.3s ease; box-sizing: border-box; } .category-item-active { background: linear-gradient(to right, #E5FBFF, #77F6F4); color: #00A0BC; } .category-indicator { width: 6rpx; height: 30rpx; border-radius: 20rpx; background-color: #00A0BC; position: absolute; left: 12rpx; } .category-text { font-size: 28rpx; text-align: center; word-break: break-word; line-height: 1.4; flex: 1; } .service-list { display: flex; flex-direction: column; flex: 1; overflow-y: auto; padding-bottom: 80rpx; } .loading-container, .empty-container { display: flex; align-items: center; justify-content: center; padding: 100rpx 0; width: 100%; } .loading-text, .empty-text { font-size: 28rpx; color: #999; } .service-items { display: flex; flex-direction: column; width: 100%; } .service-item { display: flex; flex-direction: column; width: 468rpx; margin: 40rpx auto 0; cursor: pointer; transition: transform 0.2s; } .service-item:active { transform: scale(0.98); } .service-image-wrapper { width: 100%; height: 180rpx; border-radius: 10rpx; overflow: hidden; background-color: #f0f0f0; } .service-image { width: 100%; height: 100%; } .service-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%); } .placeholder-icon { font-size: 60rpx; opacity: 0.5; } .service-title { font-size: 28rpx; margin-top: 12rpx; color: #333; font-weight: 500; }