diff --git a/src/api/ab98/user.ts b/src/api/ab98/user.ts index 8327c2e..bbc5589 100644 --- a/src/api/ab98/user.ts +++ b/src/api/ab98/user.ts @@ -107,6 +107,18 @@ export interface BindQyUserCommand { idNum: string; } +export interface BindWxMpUserCommand { + /** 企业ID */ + corpid: string; + /** 动态码 */ + dynamicCode: string; + /** 真实姓名 */ + name: string; + /** 身份证号码 */ + idNum: string; +} + + export const getAb98UserListApi = (params: Ab98UserQuery) => { return http.request>>("get", "/ab98/users", { params }); }; @@ -129,4 +141,9 @@ export const getAb98UserDetailApi = (id: number, corpid: string) => { export const bindQyUserApi = (data: BindQyUserCommand) => { return http.request>("post", "/ab98/users/bindQyUser", { data }); +}; + + +export const bindWxMpUser = (data: BindWxMpUserCommand) => { + return http.request>("post", "/ab98/users/bindWxMpUser", { data }); }; \ No newline at end of file diff --git a/src/store/modules/wx.ts b/src/store/modules/wx.ts index e6c3600..c57b186 100644 --- a/src/store/modules/wx.ts +++ b/src/store/modules/wx.ts @@ -7,7 +7,7 @@ import { QyUserLoginDTO } from "@/api/common/login"; export const useWxStore = defineStore("wx", () => { // 授权企业id - const corpid = ref("") + const corpid = ref("wpZ1ZrEgAA2QTxIRcB4cMtY7hQbTcPAw") // 微信授权 code const code = ref("") // 防止 CSRF 攻击的 state 参数 diff --git a/src/views/user/ab98/index.vue b/src/views/user/ab98/index.vue index 90c8b98..23dc407 100644 --- a/src/views/user/ab98/index.vue +++ b/src/views/user/ab98/index.vue @@ -1,14 +1,16 @@