67 lines
1.2 KiB
JavaScript
67 lines
1.2 KiB
JavaScript
import {
|
|
http_use,
|
|
http_post
|
|
} from '../http.js'
|
|
import api from '../api'
|
|
|
|
class auth {
|
|
|
|
// 企业认证检测
|
|
async userTypeInfo(key) {
|
|
let res = await http_post('/common/userTypeInfo',{key})
|
|
return res
|
|
}
|
|
|
|
// 企业认证检测
|
|
async checkAuth() {
|
|
let res = await http_post(api.checkAuth, {
|
|
|
|
})
|
|
return res
|
|
}
|
|
// 企业认证第一步
|
|
async authBaisc(parames) {
|
|
let res = await http_post(api.authBaisc, parames)
|
|
return res
|
|
}
|
|
// 企业认证第一步
|
|
async viewBaisc() {
|
|
let res = await http_use(api.authBaisc)
|
|
return res
|
|
}
|
|
|
|
|
|
// 企业认证第二步
|
|
async authCertificate(parames) {
|
|
let res = await http_post(api.authCertificate, parames)
|
|
return res
|
|
}
|
|
|
|
// 企业认证第二步
|
|
async viewCertificate() {
|
|
let res = await http_use(api.authCertificate)
|
|
return res
|
|
}
|
|
|
|
// 企业认证第三步
|
|
async authBank(invoice_rise, tax_number, bank_name, bank_account, account_name) {
|
|
|
|
let res = await http_post(api.authBank, {
|
|
invoice_rise,
|
|
tax_number,
|
|
bank_name,
|
|
bank_account,
|
|
account_name
|
|
})
|
|
|
|
return res
|
|
}
|
|
|
|
// 企业认证第三步
|
|
async viewBank() {
|
|
let res = await http_use(api.authBank)
|
|
return res
|
|
}
|
|
}
|
|
export default new auth
|