diff --git a/src/api/ab98/user.ts b/src/api/ab98/user.ts new file mode 100644 index 0000000..668e1b1 --- /dev/null +++ b/src/api/ab98/user.ts @@ -0,0 +1,104 @@ +import { http } from "@/utils/http"; + +export interface Ab98UserDTO { + /** 主键ID */ + ab98UserId?: number; + /** openid */ + openid?: string; + /** 汇邦云用户唯一ID */ + userid?: string; + /** 真实姓名 */ + name?: string; + /** 手机号码 */ + tel?: string; + /** 身份证号码 */ + idnum?: string; + /** 性别(男 女) */ + sex?: string; + /** 人脸照片地址 */ + faceImg?: string; + /** 身份证正面地址 */ + idcardFront?: string; + /** 身份证背面地址 */ + idcardBack?: string; + /** 身份证登记地址 */ + address?: string; + /** 是否已注册(0未注册 1已注册) */ + registered?: boolean; +} +export interface Ab98UserDetailDTO { + /** 主键ID */ + ab98UserId?: number; + /** openid */ + openid?: string; + /** 汇邦云用户唯一ID */ + userid?: string; + /** 真实姓名 */ + name?: string; + /** 手机号码 */ + tel?: string; + /** 身份证号码 */ + idnum?: string; + /** 性别(男 女) */ + sex?: string; + /** 人脸照片地址 */ + faceImg?: string; + /** 身份证正面地址 */ + idcardFront?: string; + /** 身份证背面地址 */ + idcardBack?: string; + /** 身份证登记地址 */ + address?: string; + /** 是否已注册(0未注册 1已注册) */ + registered?: boolean; + createTime?: string; +} + +export interface Ab98UserQuery extends BasePageQuery { + /** 真实姓名 */ + name?: string; + /** 手机号码 */ + tel?: string; + /** 身份证号码 */ + idnum?: string; +} + +export interface AddAb98UserCommand { + /** openid */ + openid?: string; + /** 汇邦云用户唯一ID */ + userid?: string; + /** 真实姓名 */ + name?: string; + /** 手机号码 */ + tel?: string; + /** 身份证号码 */ + idnum?: string; + /** 性别(男 女) */ + sex?: string; +} + +export interface UpdateAb98UserCommand extends AddAb98UserCommand { + /** 主键ID */ + ab98UserId: number; +} + +export const getAb98UserListApi = (params: Ab98UserQuery) => { + return http.request>>("get", "/ab98/users", { params }); +}; + +export const addAb98UserApi = (data: AddAb98UserCommand) => { + return http.request>("post", "/ab98/users", { data }); +}; + +export const updateAb98UserApi = (id: number, data: UpdateAb98UserCommand) => { + return http.request>("put", `/ab98/users/${id}`, { data }); +}; + +export const deleteAb98UserApi = (ids: number[]) => { + return http.request>("delete", `/ab98/users/${ids.join(',')}`); +}; + +export const getAb98UserDetailApi = (id: number) => { + return http.request>("get", `/ab98/users/detail/${id}`); +}; \ No newline at end of file diff --git a/src/router/modules/global.ts b/src/router/modules/global.ts index 6e57c3c..e6d7c43 100644 --- a/src/router/modules/global.ts +++ b/src/router/modules/global.ts @@ -15,6 +15,14 @@ export default { meta: { title: "个人中心" } + }, + { + path: "/user/ab98/detail", + name: "ab98Detail", + component: () => import("@/views/user/ab98/detail.vue"), + meta: { + title: "会员详情" + } } ] } as RouteConfigsTable; diff --git a/src/style/element-plus.scss b/src/style/element-plus.scss index 7c7ffe0..7db9bf0 100644 --- a/src/style/element-plus.scss +++ b/src/style/element-plus.scss @@ -174,4 +174,8 @@ padding-bottom: 10px; box-shadow: 0 -1px 0 0 #e0e3e8, 0 -3px 6px 0 rgb(69 98 155 / 12%); } +} + +.el-card.is-always-shadow { + box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.04)!important; } \ No newline at end of file diff --git a/src/views/user/ab98/detail.vue b/src/views/user/ab98/detail.vue new file mode 100644 index 0000000..3a6c882 --- /dev/null +++ b/src/views/user/ab98/detail.vue @@ -0,0 +1,208 @@ + + + + + \ No newline at end of file diff --git a/src/views/user/ab98/index.vue b/src/views/user/ab98/index.vue new file mode 100644 index 0000000..a3fd1cf --- /dev/null +++ b/src/views/user/ab98/index.vue @@ -0,0 +1,226 @@ + + + + + \ No newline at end of file