35 lines
838 B
JavaScript
35 lines
838 B
JavaScript
// src/composables/useWeChatAuth.js
|
|
import { ref } from 'vue';
|
|
import request from '@/request/index.js';
|
|
|
|
//向机构申请
|
|
export function Apply(data){
|
|
return request({
|
|
url: `/api/employessapply/apply`,
|
|
method: 'post',
|
|
data,
|
|
})
|
|
}
|
|
//获取机构的列表
|
|
export function getOrgInfo(title){
|
|
return request({
|
|
url: `/api/employessapply/getOrgInfo?title=${title}&pageSize=-1&openId=${uni.getStorageSync('openid')}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
//获取审核的列表
|
|
export function getEmployeesOrgRela(openId){
|
|
return request({
|
|
url: `/api/employessapply/getEmployeesOrgRela?openId=${openId}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
//主页
|
|
export function getIndex(openId){
|
|
return request({
|
|
url: `/api/employessapply/getEmployeesOrgRela?openId=${openId}&status=2`,
|
|
method: 'get',
|
|
})
|
|
} |