.page-container{ width: 100%; min-height: 100vh; background-color: #F8F8F8; } .toptitle{ position: fixed; top: 0; left: 0; right: 0; width: 100%; background-color: #0052D8; display: flex; height: 80px; justify-content: center; align-items: center; z-index: 200; .toptitle_left{ padding-top: 20px; position: absolute; left: 10px; z-index: 1000; } .toptitle_title{ color: #fff; font-size: 14px; padding-top: 20px; } } .title{ position: fixed !important; top: 80px !important; left: 7px !important; right: 7px !important; width: calc(100% - 14px) !important; padding: 10px !important; background-color: #fff !important; border-radius: 5px !important; display: flex !important; align-items: center !important; z-index: 150 !important; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important; margin: 0 !important; transform: none !important; .l1{ margin-right: 10px; display: flex; align-items: center; } .title-search-wrapper{ display: flex; align-items: center; flex-direction: row; flex-wrap: nowrap; gap: 8px; width: 100%; position: relative; } .filter-btn{ display: inline-flex; align-items: center; justify-content: center; flex-direction: row; flex-wrap: nowrap; gap: 2px; padding: 0 8px; height: 36px; background-color: #fff; border: 1px solid #e0e0e0; border-radius: 4px; white-space: nowrap; flex-shrink: 0; flex-grow: 0; width: 30%; transition: all 0.3s; position: relative; z-index: 1; .filter-btn-text{ display: inline-block; font-size: 13px; color: #333; white-space: nowrap; line-height: 1; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; max-width: 160px; } .filter-btn-icon{ display: inline-block; font-size: 10px; color: #666; line-height: 1; flex-shrink: 0; margin-left: 2px; } &:active{ opacity: 0.8; background-color: #f5f5f5; } } } .main{ padding: 7px; padding-top: 146px; // 标题栏80px + 搜索框66px background-color: #F8F8F8; min-height: 100vh; .search-placeholder{ display: none; // 不再需要占位,因为已经用padding-top了 } .box{ padding: 10px; background-color: #fff; border-radius: 5px; margin-bottom: 10px; .top{ display: flex; justify-content: space-between; margin-bottom: 10px; .f1{ font-size: 18px; } .f2{ font-size: 15px; } margin-bottom: 5px; } .top1{ display: flex; justify-content: space-between; .f1{ font-size: 16px; } .f2{ font-size: 14px; } margin-bottom: 5px; } } } // 全局样式:美化 u-picker 组件 page { .u-picker__mask { background-color: rgba(0, 0, 0, 0.5) !important; } .u-picker__view { background-color: #fff !important; border-top-left-radius: 16px !important; border-top-right-radius: 16px !important; } .u-picker__toolbar { padding: 16px 20px !important; border-bottom: 1px solid #f0f0f0 !important; background-color: #fff !important; } .u-picker__toolbar__cancel { font-size: 16px !important; color: #666 !important; padding: 8px 16px !important; border-radius: 4px !important; transition: all 0.2s !important; } .u-picker__toolbar__cancel:active { background-color: #f5f5f5 !important; } .u-picker__toolbar__title { font-size: 17px !important; font-weight: 500 !important; color: #333 !important; } .u-picker__toolbar__confirm { font-size: 16px !important; color: #3B9CFF !important; font-weight: 500 !important; padding: 8px 16px !important; border-radius: 4px !important; transition: all 0.2s !important; } .u-picker__toolbar__confirm:active { background-color: #f0f7ff !important; } .u-picker__view__column { background-color: #fff !important; } .u-picker__view__column__item { font-size: 16px !important; color: #333 !important; padding: 12px 0 !important; transition: all 0.2s !important; } .u-picker__view__column__item--selected { color: #3B9CFF !important; font-weight: 500 !important; font-size: 17px !important; } // 检索框100%宽度 .title-search-wrapper .u-search { width: 100% !important; flex: 1 1 100% !important; min-width: 0 !important; max-width: 100% !important; } }