feat(微信绑定): 添加corpid字段到微信用户绑定接口和组件
在微信用户绑定接口和组件中添加corpid字段,用于区分不同企业微信账号
This commit is contained in:
parent
8e366deb50
commit
03a01e93b1
|
|
@ -67,6 +67,7 @@ export interface BindQyUserCommand {
|
|||
}
|
||||
|
||||
export interface BindWxMpUserCommand {
|
||||
corpid: string;
|
||||
dynamicCode: string;
|
||||
name: string;
|
||||
idNum: string;
|
||||
|
|
|
|||
|
|
@ -1,13 +1,16 @@
|
|||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
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 {
|
||||
show: boolean
|
||||
}
|
||||
|
||||
const props = defineProps<Props>()
|
||||
const props = defineProps<Props>();
|
||||
|
||||
const wxStore = useWxStore();
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'update:show', value: boolean): void
|
||||
|
|
@ -40,6 +43,7 @@ const handleSubmit = async () => {
|
|||
|
||||
try {
|
||||
await bindWxMpUser({
|
||||
corpid: wxStore.corpid,
|
||||
dynamicCode: formData.value.dynamicCode,
|
||||
name: formData.value.name,
|
||||
idNum: formData.value.idNum
|
||||
|
|
|
|||
Loading…
Reference in New Issue