feat(user): 新增收货地址管理及售后申请页面

- 新增地址类型定义,增强前端地址数据结构
- 新增地址编辑页面,支持地址智能识别和定位选点功能
- 地址编辑支持省市区选择及默认地址设置
- 新增地址列表页面,支持地址展示、删除、编辑和选择功能
- 实现售后申请页面,支持选择售后类型和退款原因
- 售后申请支持商品选择、退款金额计算和凭证上传
- 新增售后详情页面,支持售后状态展示及申请取消
- 优化页面加载和用户交互体验,增加错误提示和权限处理
This commit is contained in:
2026-07-01 12:11:56 +08:00
parent bf6ed504cc
commit 1fa58040f3
636 changed files with 58878 additions and 716 deletions

76
src_bak/api/system/cache/index.ts vendored Normal file
View File

@@ -0,0 +1,76 @@
import request from '@/utils/request';
import type { ApiResult } from '@/api/index';
import type { Cache, CacheParam } from './model';
import {SERVER_API_URL} from "@/utils/server";
/**
* 查询缓存数据
*/
export async function listCache(params?: CacheParam) {
const res = await request.get<ApiResult<Cache[]>>(
SERVER_API_URL + '/system/cache',
{
params
}
);
if (res.code === 0) {
return res.data;
}
return Promise.reject(new Error(res.message));
}
/**
* 获取缓存数据
* @param key
*/
export async function getCache(key: string) {
const res = await request.get<ApiResult<Cache>>(
SERVER_API_URL + '/system/cache/' + key
);
if (res.code === 0) {
return res.data;
}
}
/**
* 更新缓存数据
* @param cache
*/
export async function updateCache(cache: Cache) {
const res = await request.post<ApiResult<unknown>>(
SERVER_API_URL + '/system/cache',
cache
);
if (res.code === 0) {
return res.message;
}
return Promise.reject(new Error(res.message));
}
/**
* 删除缓存数据
* @param key
*/
export async function removeCache(key?: string) {
const res = await request.del<ApiResult<unknown>>(
SERVER_API_URL + '/system/cache/' + key
);
if (res.code === 0) {
return res.message;
}
return Promise.reject(new Error(res.message));
}
/**
* 更新缓存数据
* @param cache
*/
export async function updateCacheTheme(cache: Cache) {
const res = await request.post<ApiResult<unknown>>(
SERVER_API_URL + '/system/cache/theme',
cache
);
if (res.code === 0) {
return res.message;
}
}

18
src_bak/api/system/cache/model/index.ts vendored Normal file
View File

@@ -0,0 +1,18 @@
import type { PageParam } from '@/api';
/**
* 缓存管理
*/
export interface Cache {
key?: string;
content?: string;
uploadMethod?: any;
expireTime?: number; // 过期时间(秒)
}
/**
* 搜索条件
*/
export interface CacheParam extends PageParam {
key?: string;
}