feat: 移动端开发规范重大更新
- 🔥 完全重写 .cursor/cursorrules-mobile.md (940行) * 基于实际mobile工程Vue 3.4.21+uniapp+uview-plus架构 * 移除所有JeeSite相关内容,精准匹配实际项目 * 新增11个完整章节:技术栈、项目结构、页面开发、组件规范等 - 📚 创建完整规范文档 docs/开发文档/移动端开发规范总结.md (800+行) * 涵盖从项目架构到部署的全流程指导 * 提供可直接使用的页面和组件模板 * 包含现代CSS变量设计系统和用户体验优化 - 🔄 同步更新主配置文件 .cursorrules * 更新移动端技术栈描述 * 调整为Vue 3.4.21+uniapp+uview-plus 3.4.45架构 - 📝 完善变更记录 * 详细记录规范更新背景和技术价值 * 为后续维护提供完整历史记录 核心价值:解决规范与实际项目不匹配问题,为Cursor AI提供准确的移动端开发上下文,确保生成代码完全符合实际项目架构。
This commit is contained in:
1 parent
e8ece1b612
commit
28232d5d46
131 files changed
+17170
-5479
No files matched your search
@@ -1,61 +0,0 @@
|
||||
/**
|
||||
* 认证相关API
|
||||
*/
|
||||
|
||||
import { post, get } from '@/utils/request.js';
|
||||
|
||||
/**
|
||||
* 用户登录
|
||||
*/
|
||||
export function loginApi(data) {
|
||||
return post('/auth/login', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户退出
|
||||
*/
|
||||
export function logoutApi() {
|
||||
return post('/auth/logout');
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户信息
|
||||
*/
|
||||
export function getUserInfoApi() {
|
||||
return get('/auth/userinfo');
|
||||
}
|
||||
|
||||
/**
|
||||
* 刷新Token
|
||||
*/
|
||||
export function refreshTokenApi(refreshToken) {
|
||||
return post('/auth/refresh', { refreshToken });
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改密码
|
||||
*/
|
||||
export function changePasswordApi(data) {
|
||||
return post('/auth/change-password', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置密码
|
||||
*/
|
||||
export function resetPasswordApi(data) {
|
||||
return post('/auth/reset-password', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送验证码
|
||||
*/
|
||||
export function sendCodeApi(data) {
|
||||
return post('/auth/send-code', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 绑定手机号
|
||||
*/
|
||||
export function bindPhoneApi(data) {
|
||||
return post('/auth/bind-phone', data);
|
||||
}
|
||||
@@ -1,71 +0,0 @@
|
||||
/**
|
||||
* 通用API接口
|
||||
*/
|
||||
|
||||
import { get, post, uploadFile } from '@/utils/request.js';
|
||||
|
||||
/**
|
||||
* 获取轮播图列表
|
||||
*/
|
||||
export function getBannerListApi() {
|
||||
return get('/common/banner');
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取通知公告列表
|
||||
*/
|
||||
export function getNoticeListApi(params) {
|
||||
return get('/common/notice', params);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取新闻列表
|
||||
*/
|
||||
export function getNewsListApi(params) {
|
||||
return get('/common/news', params);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取字典数据
|
||||
*/
|
||||
export function getDictDataApi(dictType) {
|
||||
return get(`/common/dict/${dictType}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 文件上传
|
||||
*/
|
||||
export function uploadFileApi(filePath, options = {}) {
|
||||
return uploadFile('/common/upload', filePath, {
|
||||
name: 'file',
|
||||
...options,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取系统配置
|
||||
*/
|
||||
export function getConfigApi() {
|
||||
return get('/common/config');
|
||||
}
|
||||
|
||||
/**
|
||||
* 意见反馈
|
||||
*/
|
||||
export function feedbackApi(data) {
|
||||
return post('/common/feedback', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取版本信息
|
||||
*/
|
||||
export function getVersionApi() {
|
||||
return get('/common/version');
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查更新
|
||||
*/
|
||||
export function checkUpdateApi() {
|
||||
return get('/common/check-update');
|
||||
}
|
||||
Reference in new issue
Block a user