diff --git a/.cool/eps.json b/.cool/eps.json deleted file mode 100644 index 013f64c..0000000 --- a/.cool/eps.json +++ /dev/null @@ -1 +0,0 @@ -[{"module":"base","info":{"type":{"name":"comm","description":""}},"api":[{"method":"get","path":"/uploadMode","summary":"文件上传模式","dts":{},"tag":"","prefix":"/app/base/comm","ignoreToken":false},{"method":"post","path":"/upload","summary":"文件上传","dts":{},"tag":"","prefix":"/app/base/comm","ignoreToken":false},{"method":"get","path":"/param","summary":"参数配置","dts":{},"tag":"","prefix":"/app/base/comm","ignoreToken":true},{"method":"get","path":"/eps","summary":"实体信息与路径","dts":{},"tag":"","prefix":"/app/base/comm","ignoreToken":true}],"columns":[],"pageQueryOp":{"keyWordLikeFields":[],"fieldEq":[],"fieldLike":[]},"pageColumns":[],"prefix":"/app/base/comm","namespace":"","search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"module":"dict","info":{"type":{"name":"info","description":""}},"api":[{"method":"get","path":"/types","summary":"获得所有字典类型","dts":{},"tag":"","prefix":"/app/dict/info","ignoreToken":true},{"method":"post","path":"/data","summary":"获得字典数据","dts":{},"tag":"","prefix":"/app/dict/info","ignoreToken":true}],"columns":[],"pageQueryOp":{"keyWordLikeFields":[],"fieldEq":[],"fieldLike":[]},"pageColumns":[],"prefix":"/app/dict/info","namespace":"","search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"module":"user","info":{"type":{"name":"address","description":""}},"api":[{"method":"get","path":"/default","summary":"默认地址","dts":{},"tag":"","prefix":"/app/user/address","ignoreToken":false},{"method":"post","path":"/delete","summary":"删除","dts":{},"tag":"","prefix":"/app/user/address","ignoreToken":false},{"method":"post","path":"/update","summary":"修改","dts":{},"tag":"","prefix":"/app/user/address","ignoreToken":false},{"method":"get","path":"/info","summary":"单个信息","dts":{},"tag":"","prefix":"/app/user/address","ignoreToken":false},{"method":"post","path":"/list","summary":"列表查询","dts":{},"tag":"","prefix":"/app/user/address","ignoreToken":false},{"method":"post","path":"/page","summary":"分页查询","dts":{},"tag":"","prefix":"/app/user/address","ignoreToken":false},{"method":"post","path":"/add","summary":"新增","dts":{},"tag":"","prefix":"/app/user/address","ignoreToken":false}],"name":"UserAddressEntity","columns":[{"propertyName":"id","type":"number","length":"","comment":"ID","nullable":false,"source":"a.id"},{"propertyName":"userId","type":"number","length":"","comment":"用户ID","nullable":false,"source":"a.userId"},{"propertyName":"contact","type":"string","length":"","comment":"联系人","nullable":false,"source":"a.contact"},{"propertyName":"phone","type":"string","length":"11","comment":"手机号","nullable":false,"source":"a.phone"},{"propertyName":"province","type":"string","length":"","comment":"省","nullable":false,"source":"a.province"},{"propertyName":"city","type":"string","length":"","comment":"市","nullable":false,"source":"a.city"},{"propertyName":"district","type":"string","length":"","comment":"区","nullable":false,"source":"a.district"},{"propertyName":"address","type":"string","length":"","comment":"地址","nullable":false,"source":"a.address"},{"propertyName":"isDefault","type":"boolean","length":"","comment":"是否默认","nullable":false,"defaultValue":false,"source":"a.isDefault"},{"propertyName":"createTime","type":"varchar","length":"","comment":"创建时间","nullable":false,"source":"a.createTime"},{"propertyName":"updateTime","type":"varchar","length":"","comment":"更新时间","nullable":false,"source":"a.updateTime"}],"pageQueryOp":{"keyWordLikeFields":[],"fieldEq":[],"fieldLike":[]},"pageColumns":[],"prefix":"/app/user/address","namespace":"","search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"module":"user","info":{"type":{"name":"comm","description":""}},"api":[{"method":"post","path":"/wxMpConfig","summary":"获取微信公众号配置","dts":{},"tag":"","prefix":"/app/user/comm","ignoreToken":true}],"columns":[],"pageQueryOp":{"keyWordLikeFields":[],"fieldEq":[],"fieldLike":[]},"pageColumns":[],"prefix":"/app/user/comm","namespace":"","search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"module":"user","info":{"type":{"name":"info","description":""}},"api":[{"method":"post","path":"/updatePassword","summary":"更新用户密码","dts":{},"tag":"","prefix":"/app/user/info","ignoreToken":false},{"method":"post","path":"/updatePerson","summary":"更新用户信息","dts":{},"tag":"","prefix":"/app/user/info","ignoreToken":false},{"method":"post","path":"/bindPhone","summary":"绑定手机号","dts":{},"tag":"","prefix":"/app/user/info","ignoreToken":false},{"method":"post","path":"/miniPhone","summary":"绑定小程序手机号","dts":{},"tag":"","prefix":"/app/user/info","ignoreToken":false},{"method":"get","path":"/person","summary":"获取用户信息","dts":{},"tag":"","prefix":"/app/user/info","ignoreToken":false},{"method":"post","path":"/logoff","summary":"注销","dts":{},"tag":"","prefix":"/app/user/info","ignoreToken":false}],"name":"UserInfoEntity","columns":[{"propertyName":"id","type":"number","length":"","comment":"ID","nullable":false,"source":"a.id"},{"propertyName":"unionid","type":"string","length":"","comment":"登录唯一ID","nullable":true,"source":"a.unionid"},{"propertyName":"avatarUrl","type":"string","length":"","comment":"头像","nullable":true,"source":"a.avatarUrl"},{"propertyName":"nickName","type":"string","length":"","comment":"昵称","nullable":true,"source":"a.nickName"},{"propertyName":"phone","type":"string","length":"","comment":"手机号","nullable":true,"source":"a.phone"},{"propertyName":"gender","type":"number","length":"","comment":"性别","nullable":false,"defaultValue":0,"dict":["未知","男","女"],"source":"a.gender"},{"propertyName":"status","type":"number","length":"","comment":"状态","nullable":false,"defaultValue":1,"dict":["禁用","正常","已注销"],"source":"a.status"},{"propertyName":"loginType","type":"number","length":"","comment":"登录方式","nullable":false,"defaultValue":0,"dict":["小程序","公众号","H5"],"source":"a.loginType"},{"propertyName":"password","type":"string","length":"","comment":"密码","nullable":true,"source":"a.password"},{"propertyName":"description","type":"text","length":"","comment":"介绍","nullable":true,"source":"a.description"},{"propertyName":"birthday","type":"string","length":"","comment":"生日","nullable":true,"source":"a.birthday"},{"propertyName":"province","type":"string","length":"","comment":"省","nullable":true,"source":"a.province"},{"propertyName":"city","type":"string","length":"","comment":"市","nullable":true,"source":"a.city"},{"propertyName":"district","type":"string","length":"","comment":"区","nullable":true,"source":"a.district"},{"propertyName":"createTime","type":"varchar","length":"","comment":"创建时间","nullable":false,"source":"a.createTime"},{"propertyName":"updateTime","type":"varchar","length":"","comment":"更新时间","nullable":false,"source":"a.updateTime"}],"pageQueryOp":{"keyWordLikeFields":[],"fieldEq":[],"fieldLike":[]},"pageColumns":[],"prefix":"/app/user/info","namespace":"","search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"module":"user","info":{"type":{"name":"login","description":""}},"api":[{"method":"post","path":"/refreshToken","summary":"刷新token","dts":{},"tag":"","prefix":"/app/user/login","ignoreToken":true},{"method":"post","path":"/miniPhone","summary":"绑定小程序手机号","dts":{},"tag":"","prefix":"/app/user/login","ignoreToken":true},{"method":"post","path":"/uniPhone","summary":"一键手机号登录","dts":{},"tag":"","prefix":"/app/user/login","ignoreToken":true},{"method":"post","path":"/password","summary":"密码登录","dts":{},"tag":"","prefix":"/app/user/login","ignoreToken":true},{"method":"get","path":"/captcha","summary":"图片验证码","dts":{},"tag":"","prefix":"/app/user/login","ignoreToken":true},{"method":"post","path":"/smsCode","summary":"验证码","dts":{},"tag":"","prefix":"/app/user/login","ignoreToken":true},{"method":"post","path":"/wxApp","summary":"微信APP授权登录","dts":{},"tag":"","prefix":"/app/user/login","ignoreToken":true},{"method":"post","path":"/phone","summary":"手机号登录","dts":{},"tag":"","prefix":"/app/user/login","ignoreToken":true},{"method":"post","path":"/mini","summary":"小程序登录","dts":{},"tag":"","prefix":"/app/user/login","ignoreToken":true},{"method":"post","path":"/mp","summary":"公众号登录","dts":{},"tag":"","prefix":"/app/user/login","ignoreToken":true}],"columns":[],"pageQueryOp":{"keyWordLikeFields":[],"fieldEq":[],"fieldLike":[]},"pageColumns":[],"prefix":"/app/user/login","namespace":"","search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}}] \ No newline at end of file diff --git a/.cool/eps.ts b/.cool/eps.ts deleted file mode 100644 index fafaf4c..0000000 --- a/.cool/eps.ts +++ /dev/null @@ -1,341 +0,0 @@ -export type UserAddressEntity = { - /** - * ID - */ - id?: number; - - /** - * 用户ID - */ - userId?: number; - - /** - * 联系人 - */ - contact?: string; - - /** - * 手机号 - */ - phone?: string; - - /** - * 省 - */ - province?: string; - - /** - * 市 - */ - city?: string; - - /** - * 区 - */ - district?: string; - - /** - * 地址 - */ - address?: string; - - /** - * 是否默认 - */ - isDefault?: boolean; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新时间 - */ - updateTime?: string; - - /** - * 任意键值 - */ -}; - -export type UserInfoEntity = { - /** - * ID - */ - id?: number; - - /** - * 登录唯一ID - */ - unionid?: string; - - /** - * 头像 - */ - avatarUrl?: string; - - /** - * 昵称 - */ - nickName?: string; - - /** - * 手机号 - */ - phone?: string; - - /** - * 性别 - */ - gender?: number; - - /** - * 状态 - */ - status?: number; - - /** - * 登录方式 - */ - loginType?: number; - - /** - * 密码 - */ - password?: string; - - /** - * 介绍 - */ - description?: string; - - /** - * 生日 - */ - birthday?: string; - - /** - * 省 - */ - province?: string; - - /** - * 市 - */ - city?: string; - - /** - * 区 - */ - district?: string; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新时间 - */ - updateTime?: string; - - /** - * 任意键值 - */ -}; - -export type json = any; - -export type PagePagination = { - size: number; - page: number; - total: number; -}; - -export interface PageResponse { - pagination: PagePagination; - list: T[]; -} - -export type UserAddressPageResponse = { - pagination: PagePagination; - list: UserAddressEntity[]; -}; - -export type BaseComm = { - /** - * 文件上传模式 - */ - uploadMode(data?: any): Promise; - - /** - * 文件上传 - */ - upload(data?: any): Promise; - - /** - * 参数配置 - */ - param(data?: any): Promise; - - /** - * 实体信息与路径 - */ - eps(data?: any): Promise; -}; - -export type DictInfo = { - /** - * 获得所有字典类型 - */ - types(data?: any): Promise; - - /** - * 获得字典数据 - */ - data(data?: any): Promise; -}; - -export type UserAddress = { - /** - * 默认地址 - */ - default(data?: any): Promise; - - /** - * 删除 - */ - delete(data?: any): Promise; - - /** - * 修改 - */ - update(data?: any): Promise; - - /** - * 单个信息 - */ - info(data?: any): Promise; - - /** - * 列表查询 - */ - list(data?: any): Promise; - - /** - * 分页查询 - */ - page(data?: any): Promise; - - /** - * 新增 - */ - add(data?: any): Promise; -}; - -export type UserComm = { - /** - * 获取微信公众号配置 - */ - wxMpConfig(data?: any): Promise; -}; - -export type UserInfo = { - /** - * 更新用户密码 - */ - updatePassword(data?: any): Promise; - - /** - * 更新用户信息 - */ - updatePerson(data?: any): Promise; - - /** - * 绑定手机号 - */ - bindPhone(data?: any): Promise; - - /** - * 绑定小程序手机号 - */ - miniPhone(data?: any): Promise; - - /** - * 获取用户信息 - */ - person(data?: any): Promise; - - /** - * 注销 - */ - logoff(data?: any): Promise; -}; - -export type UserLogin = { - /** - * 刷新token - */ - refreshToken(data?: any): Promise; - - /** - * 绑定小程序手机号 - */ - miniPhone(data?: any): Promise; - - /** - * 一键手机号登录 - */ - uniPhone(data?: any): Promise; - - /** - * 密码登录 - */ - password(data?: any): Promise; - - /** - * 图片验证码 - */ - captcha(data?: any): Promise; - - /** - * 验证码 - */ - smsCode(data?: any): Promise; - - /** - * 微信APP授权登录 - */ - wxApp(data?: any): Promise; - - /** - * 手机号登录 - */ - phone(data?: any): Promise; - - /** - * 小程序登录 - */ - mini(data?: any): Promise; - - /** - * 公众号登录 - */ - mp(data?: any): Promise; -}; - -export type DictKey = "brand" | "occupation"; - -export type BaseInterface = { comm: BaseComm }; - -export type DictInterface = { info: DictInfo }; - -export type UserInterface = { - address: UserAddress; - comm: UserComm; - info: UserInfo; - login: UserLogin; -}; - -export type Service = { base: BaseInterface; dict: DictInterface; user: UserInterface }; diff --git a/.vscode/template.code-snippets b/.vscode/template.code-snippets index f4c8603..0bd5dc8 100644 --- a/.vscode/template.code-snippets +++ b/.vscode/template.code-snippets @@ -12,7 +12,7 @@ "", "", "", "", @@ -35,7 +35,7 @@ "", " diff --git a/pages/user/edit-name.uvue b/pages/user/edit-name.uvue index 261ca07..1453e3e 100644 --- a/pages/user/edit-name.uvue +++ b/pages/user/edit-name.uvue @@ -35,7 +35,7 @@ diff --git a/pages/user/edit.uvue b/pages/user/edit.uvue index 50e46a9..2d97f32 100644 --- a/pages/user/edit.uvue +++ b/pages/user/edit.uvue @@ -12,7 +12,7 @@ - {{ user.info.nickName }} + {{ userInfo?.nickName }} - {{ user.info.phone }} + {{ userInfo?.phone }} @@ -50,10 +50,10 @@ justify="start" @tap="router.to('/pages/user/edit-description')" > - {{ + {{ t("介绍一下自己") }} - {{ user.info.description }} + {{ userInfo?.description }} @@ -76,8 +76,8 @@ justify="start" @tap="open('birthday')" > - {{ user.info.birthday }} - {{ + {{ userInfo?.birthday }} + {{ t("选择生日") }} @@ -98,7 +98,7 @@