feat: 添加设置页、关于页与账号注销功能,开启网络日志
1. 新增账号注销API接口与设置页菜单,实现完整注销流程 2. 新增关于APP页面,展示隐私政策、用户协议与版本信息 3. 在我的页面添加设置入口,跳转设置页 4. 优化头像上传逻辑,移除预览弹窗步骤并简化流程 5. 开启网络日志打印,方便调试网络请求
This commit is contained in:
@@ -89,6 +89,14 @@ class UserApi {
|
||||
);
|
||||
}
|
||||
|
||||
/// 注销账号 → POST /api/v1/User/CloseAccount
|
||||
///
|
||||
/// 对齐 Vue api/login: `closeAccount = () => request.post('/api/v1/User/CloseAccount')`
|
||||
/// 调用方负责弹确认框 + 注销后清理本地状态。
|
||||
static Future<void> closeAccount() async {
|
||||
await DioClient.instance.post('/api/v1/User/CloseAccount');
|
||||
}
|
||||
|
||||
/// MD5 加密(UniApp stringToMd5 的等价实现)
|
||||
static String _md5(String text) {
|
||||
return md5.convert(utf8.encode(text)).toString();
|
||||
|
||||
Reference in New Issue
Block a user