- 设计并实现了开发者中心与企业控制台两大模块 - 按用户角色区分开发者和企业客户,支持多项目类型及成员管理 - 新增项目管理、应用管理、API Key管理及成员邀请等多功能页面 - 实现应用版本发布、消息通知中心、权限审批与开发者申请流程 - 完成CI/CD流水线、运营监控、发票管理、SSO单点登录功能 - 搭建SDK下载中心、工单系统、FAQ系统、数据导入导出等模块 - 优化后端API,支持已登录和未注册用户不同加入应用流程 - 前端按钮统一采用微信手机号授权,完善用户授权体验 - 修复多个页面的JSX语法错误及依赖导入问题,替换部分组件库 - 增加详细的类型定义文件,提升项目类型安全 - 新增超过55个页面及60个API接口,扩展应用功能和服务体系 - 完成全面的样式设计,实现一致的视觉风格和交互体验
267 lines
4.7 KiB
SCSS
267 lines
4.7 KiB
SCSS
// FAQ 样式
|
|
.faq-page {
|
|
min-height: 100vh;
|
|
background: #f5f5f5;
|
|
padding-bottom: calc(140px + env(safe-area-inset-bottom));
|
|
}
|
|
|
|
// 搜索栏
|
|
.search-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 24px;
|
|
background: #fff;
|
|
|
|
.search-input {
|
|
flex: 1;
|
|
height: 72px;
|
|
padding: 0 24px;
|
|
background: #f5f5f5;
|
|
border-radius: 36px;
|
|
font-size: 28px;
|
|
}
|
|
|
|
.search-btn {
|
|
margin-left: 20px;
|
|
padding: 0 32px;
|
|
height: 72px;
|
|
line-height: 72px;
|
|
background: #007aff;
|
|
color: #fff;
|
|
border-radius: 36px;
|
|
font-size: 28px;
|
|
|
|
&::after { border: none; }
|
|
}
|
|
}
|
|
|
|
// 分类标签
|
|
.category-scroll {
|
|
background: #fff;
|
|
white-space: nowrap;
|
|
|
|
.category-tabs {
|
|
display: inline-flex;
|
|
padding: 0 16px 24px;
|
|
}
|
|
|
|
.category-tab {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 16px 28px;
|
|
margin-right: 16px;
|
|
background: #f5f5f5;
|
|
border-radius: 32px;
|
|
font-size: 26px;
|
|
color: #666;
|
|
white-space: nowrap;
|
|
|
|
&.active {
|
|
background: #007aff;
|
|
color: #fff;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 统计栏
|
|
.stats-bar {
|
|
padding: 24px;
|
|
background: #fff;
|
|
|
|
.stats-text {
|
|
font-size: 26px;
|
|
color: #999;
|
|
}
|
|
}
|
|
|
|
// FAQ 列表
|
|
.faq-list {
|
|
height: calc(100vh - 450px);
|
|
padding: 0 24px;
|
|
}
|
|
|
|
.loading, .empty {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 300px;
|
|
color: #999;
|
|
font-size: 28px;
|
|
}
|
|
|
|
.faq-item {
|
|
background: #fff;
|
|
border-radius: 20px;
|
|
margin-bottom: 20px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
|
|
|
|
&.expanded {
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.faq-question {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 28px;
|
|
|
|
.question-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
background: #007aff;
|
|
color: #fff;
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
margin-right: 16px;
|
|
}
|
|
|
|
.question-text {
|
|
flex: 1;
|
|
font-size: 30px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.expand-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 36px;
|
|
color: #999;
|
|
flex-shrink: 0;
|
|
}
|
|
}
|
|
|
|
.faq-answer {
|
|
padding: 0 28px 28px;
|
|
padding-left: 92px;
|
|
|
|
.answer-header {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 16px;
|
|
|
|
.answer-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
background: #34c759;
|
|
color: #fff;
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-right: 12px;
|
|
}
|
|
|
|
.answer-label {
|
|
font-size: 24px;
|
|
color: #34c759;
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
|
|
.answer-text {
|
|
font-size: 28px;
|
|
color: #666;
|
|
line-height: 1.8;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.answer-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
margin-top: 20px;
|
|
|
|
.tag {
|
|
padding: 8px 16px;
|
|
background: #f0f7ff;
|
|
color: #007aff;
|
|
font-size: 22px;
|
|
border-radius: 8px;
|
|
margin-right: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
}
|
|
|
|
.answer-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 24px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid #f0f0f0;
|
|
|
|
.helpful-info {
|
|
display: flex;
|
|
|
|
.helpful-text {
|
|
font-size: 24px;
|
|
color: #34c759;
|
|
margin-right: 16px;
|
|
}
|
|
|
|
.unhelpful-text {
|
|
font-size: 24px;
|
|
color: #999;
|
|
}
|
|
}
|
|
|
|
.helpful-actions {
|
|
display: flex;
|
|
|
|
.helpful-btn {
|
|
padding: 12px 20px;
|
|
font-size: 22px;
|
|
background: #f5f5f5;
|
|
color: #666;
|
|
border-radius: 8px;
|
|
margin-left: 12px;
|
|
|
|
&::after { border: none; }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// 底部提示
|
|
.footer-tip {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 24px;
|
|
padding-bottom: calc(24px + env(safe-area-inset-bottom));
|
|
background: #fff;
|
|
border-top: 1px solid #eee;
|
|
|
|
.tip-text {
|
|
font-size: 28px;
|
|
color: #666;
|
|
margin-right: 16px;
|
|
}
|
|
|
|
.ticket-btn {
|
|
padding: 16px 32px;
|
|
background: #007aff;
|
|
color: #fff;
|
|
font-size: 28px;
|
|
border-radius: 32px;
|
|
|
|
&::after { border: none; }
|
|
}
|
|
}
|