更新密码找回uniapp

This commit is contained in:
hero920103 committed 2026-11-16 17:22:50 +08:00
1 parent 7f9a66da0f
commit 3fdda89833
1304 files changed
+3503 -26132

No files matched your search

-54
View File
@@ -1,13 +1,6 @@
// approval.js — 审批列表 API 服务
// 提供审批列表的增删改查接口,供 `pages/approval/index.vue` 使用。
import { request } from '@/api/request.js'
/**
* 获取审批列表
* @param {object} params - 分页、筛选参数
* @returns {Promise<object>} { list, total, page, pageSize }
*/
export async function fetchApprovalList(params) {
const res = await request({
url: '/approval/list',
@@ -17,10 +10,6 @@ export async function fetchApprovalList(params) {
return res
}
/**
* 获取审批类型下拉选项(用于筛选)
* @returns {Promise<object>} 审批类型列表
*/
export async function fetchApprovalTypes() {
const res = await request({
url: '/approval/types',
@@ -29,11 +18,6 @@ export async function fetchApprovalTypes() {
return res
}
/**
* 获取审批项详情
* @param {number} id - 审批项 ID
* @returns {Promise<object>} 审批项详情
*/
export async function fetchApprovalDetail(id) {
const res = await request({
url: `/approval/detail/${id}`,
@@ -42,11 +26,6 @@ export async function fetchApprovalDetail(id) {
return res
}
/**
* 创建审批项
* @param {object} data - 审批项数据
* @returns {Promise<object>} 创建结果
*/
export async function createApproval(data) {
const res = await request({
url: '/approval/create',
@@ -56,12 +35,6 @@ export async function createApproval(data) {
return res
}
/**
* 更新审批项
* @param {number} id - 审批项 ID
* @param {object} data - 更新的数据
* @returns {Promise<object>} 更新结果
*/
export async function updateApproval(id, data) {
const res = await request({
url: `/approval/update/${id}`,
@@ -71,11 +44,6 @@ export async function updateApproval(id, data) {
return res
}
/**
* 删除审批项
* @param {number} id - 审批项 ID
* @returns {Promise<object>} 删除结果
*/
export async function deleteApproval(id) {
const res = await request({
url: `/approval/delete/${id}`,
@@ -84,11 +52,6 @@ export async function deleteApproval(id) {
return res
}
/**
* 批量删除审批项
* @param {number[]} ids - 审批项 ID 数组
* @returns {Promise<object>} 批量删除结果
*/
export async function batchDeleteApprovals(ids) {
const res = await request({
url: '/approval/batch-delete',
@@ -98,12 +61,6 @@ export async function batchDeleteApprovals(ids) {
return res
}
/**
* 同意/通过审批项
* @param {number} id - 审批项 ID
* @param {string} reason - 通过原因
* @returns {Promise<object>} 通过结果
*/
export async function approveApproval(id, reason) {
const res = await request({
url: `/approval/approve/${id}`,
@@ -113,12 +70,6 @@ export async function approveApproval(id, reason) {
return res
}
/**
* 驳回审批项
* @param {number} id - 审批项 ID
* @param {string} reason - 驳回原因
* @returns {Promise<object>} 驳回结果
*/
export async function rejectApproval(id, reason) {
const res = await request({
url: `/approval/reject/${id}`,
@@ -128,11 +79,6 @@ export async function rejectApproval(id, reason) {
return res
}
/**
* 获取审批进度(待办 / 进行中 / 已完成)
* @param {number} id - 审批项 ID
* @returns {Promise<object>} 进度信息
*/
export async function fetchApprovalProgress(id) {
const res = await request({
url: `/approval/progress/${id}`,
-11
View File
@@ -39,7 +39,6 @@
flex-shrink: 0;
}
// 区块标题行(左侧标题 + 右侧「更多」)
@mixin block-head {
display: flex;
align-items: center;
@@ -47,7 +46,6 @@
margin-bottom: 20rpx;
}
// 应用模块卡片的彩色渐变图标底
@mixin tint-icon($size: 96rpx, $radius: 24rpx) {
width: $size;
height: $size;
@@ -58,7 +56,6 @@
flex-shrink: 0;
}
// 小标签(功能 chip / 状态徽标)
@mixin chip($bg: $color-primary-bg, $color: $color-primary) {
display: inline-flex;
align-items: center;
@@ -70,9 +67,6 @@
line-height: 1.6;
}
// ============ 弹层宽屏自适应(全局约定,新弹层直接复用即可,无需逐页调) ============
// 用法:铺满式遮罩根元素内 `@include mask-responsive;`,其底部面板内 `@include sheet-responsive;`
// 手机竖屏(<560px)不命中,行为不变;宽屏下遮罩仍铺满做暗色背景,面板收敛为居中手机列宽。
@mixin mask-responsive {
@media (min-width: 560px) {
justify-content: center;
@@ -85,10 +79,6 @@
}
}
// ============ 审批流时间线 ============
// 头像(姓名首字)+ 右下状态角标 + 姓名/说明 + 时间 + 意见气泡,节点之间虚线连接。
// 用法:页面 scoped 样式里 `@include flow-timeline;`,根节点用 .timeline-list,
// 每个节点用 .tl-item(.tl-rail / .tl-avatar-wrap / .tl-avatar / .tl-badge / .tl-line / .tl-main ...)。
@mixin flow-timeline {
.timeline-list {
display: flex;
@@ -215,7 +205,6 @@
}
}
// 居中弹窗(非贴底):宽屏下把固定定位的遮罩面板限制为列宽并水平+垂直居中
@mixin dialog-responsive($w: 560px) {
@media (min-width: 560px) {
max-width: $w;
-5
View File
@@ -1,9 +1,4 @@
/**
* 全局富文本与表格展示样式
* 深度覆盖 editor 原生组件、rich-text、.rich-content、.ql-editor 等所有富文本容器
*/
/* ================= 全局默认表格规范(确保全端、全组件均有明显边框与表头底色) ================= */
.rich-table {
display: table !important;
border-collapse: collapse !important;
-14
View File
@@ -1,46 +1,32 @@
// =============================================================
// 温新云统一主题 · 冷调科技蓝(蓝白高级)
// 品牌主色 #2563eb,浅蓝 #60a5fa,深蓝 #1d4ed8
// 背景冷灰白 #f8fafc,卡片纯白,柔和多层阴影,克制留白
// =============================================================
// 品牌色
$color-primary: #2563eb;
$color-primary-dark: #1d4ed8;
$color-primary-light: #60a5fa;
$color-primary-bg: #eff6ff;
// 背景与卡片
$color-bg-page: #f8fafc;
$color-card: #ffffff;
// 文字
$color-text: #0f172a;
$color-text-secondary: #475569;
$color-text-muted: #94a3b8;
// 线条
$color-border: #e2e8f0;
$color-divider: #f1f5f9;
// 语义色
$color-success: #10b981;
$color-warning: #f59e0b;
$color-danger: #ef4444;
// 阴影(多层柔和,营造轻盈悬浮的高级感)
$shadow-card: 0 1rpx 3rpx rgba(15, 23, 42, 0.04), 0 8rpx 24rpx rgba(37, 99, 235, 0.06);
$shadow-float: 0 2rpx 8rpx rgba(15, 23, 42, 0.06), 0 14rpx 34rpx rgba(37, 99, 235, 0.12);
$shadow-header: 0 1rpx 2rpx rgba(15, 23, 42, 0.03);
// 圆角
$radius-sm: 10rpx;
$radius-md: 16rpx;
$radius-lg: 24rpx;
$radius-full: 999rpx;
// 间距
$page-padding-x: 32rpx;
// Hero 渐变(登录页 / 工作台头部共用)
$hero-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
-12
View File
@@ -1,14 +1,3 @@
/**
* 应用模块图标色板(全局)· 冷调科技蓝
*
* 工作台/应用中心按模块 code 轮换取色,避免所有卡片都是同一个蓝色。
* 用法:<view class="tint-icon tint-2"><FaIcon .../></view>
* .tint-icon 的尺寸/圆角/居中定义在 page-common.scss 的 @mixin tint-icon 中,
* 这里只提供背景渐变。
*
* 统一收敛到「蓝白高级」的冷色区间(蓝 / 靛 / 天青),通过明度与色相微差区分模块,
* 不再使用高饱和的绿/橙/紫/红,保持整体克制、干净。
*/
.tint-0 { background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%); }
.tint-1 { background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%); }
.tint-2 { background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%); }
@@ -18,5 +7,4 @@
.tint-6 { background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%); }
.tint-7 { background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%); }
/** 未开通(套餐锁定)时的灰色底 */
.tint-off { background: linear-gradient(135deg, #cbd5e1 0%, #e2e8f0 100%); }
-1
View File
@@ -1,2 +1 @@
// 已迁移至项目根目录 uni.scss,此文件保留兼容引用
@import '../uni.scss';