You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
675 B
30 lines
675 B
//认证api
|
|
|
|
import request from '@/utils/request'
|
|
|
|
// api地址
|
|
const api = {
|
|
// 扫描证书上传接口
|
|
cerscan_url: 'Paymentlist/entuiprise/v1/user/cer-scan',
|
|
// 行业类目
|
|
industry:"slb/userself/v1/industry/0",
|
|
}
|
|
|
|
/**
|
|
* 扫描证书上传
|
|
*/
|
|
export const cerscan = (data) => {
|
|
return request.post(api.cerscan_url, data )
|
|
}
|
|
|
|
// do upload
|
|
export const upload = files => {
|
|
// 文件上传大小, 2M
|
|
const maxSize = 1024 * 1024 * 2
|
|
// 执行上传
|
|
return new Promise((resolve, reject) => {
|
|
request.urlFileUpload({ files, maxSize })
|
|
.then(result => resolve(result.map(item => item.data.fileInfo.file_id), result))
|
|
.catch(reject)
|
|
})
|
|
}
|