feat(微信绑定): 添加corpid字段到微信用户绑定接口和组件

在微信用户绑定接口和组件中添加corpid字段,用于区分不同企业微信账号
This commit is contained in:
dzq 2025-11-25 15:40:08 +08:00
parent 8e366deb50
commit 03a01e93b1
2 changed files with 7 additions and 2 deletions

View File

@ -67,6 +67,7 @@ export interface BindQyUserCommand {
} }
export interface BindWxMpUserCommand { export interface BindWxMpUserCommand {
corpid: string;
dynamicCode: string; dynamicCode: string;
name: string; name: string;
idNum: string; idNum: string;

View File

@ -1,13 +1,16 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref } from 'vue' import { ref } from 'vue'
import { bindWxMpUser } from '@/common/apis/ab98' import { bindWxMpUser } from '@/common/apis/ab98'
import { showLoadingToast, showSuccessToast, showFailToast } from 'vant' import { showLoadingToast, showSuccessToast, showFailToast } from 'vant';
import { useWxStore } from '@/pinia/stores/wx';
interface Props { interface Props {
show: boolean show: boolean
} }
const props = defineProps<Props>() const props = defineProps<Props>();
const wxStore = useWxStore();
const emit = defineEmits<{ const emit = defineEmits<{
(e: 'update:show', value: boolean): void (e: 'update:show', value: boolean): void
@ -40,6 +43,7 @@ const handleSubmit = async () => {
try { try {
await bindWxMpUser({ await bindWxMpUser({
corpid: wxStore.corpid,
dynamicCode: formData.value.dynamicCode, dynamicCode: formData.value.dynamicCode,
name: formData.value.name, name: formData.value.name,
idNum: formData.value.idNum idNum: formData.value.idNum