54 lines
1.1 KiB
JavaScript
54 lines
1.1 KiB
JavaScript
import request from '../../utils/request'
|
|
|
|
export function postProtocolPartner(userInfo) {
|
|
return request({
|
|
url: '/app/agreement/hhrxy',
|
|
method: 'POST',
|
|
data: {
|
|
name: userInfo.name,
|
|
phone: userInfo.phone,
|
|
address: userInfo.location,
|
|
businessLicense: userInfo.businessLicenseUrl,
|
|
code: userInfo.code,
|
|
autographImg: userInfo.signatureUrl,
|
|
templateId: 1,
|
|
},
|
|
})
|
|
}
|
|
|
|
export function postProtocolInstallation(userInfo) {
|
|
return request({
|
|
url: '/app/agreement/azxy',
|
|
method: 'POST',
|
|
data: {
|
|
name: userInfo.name,
|
|
phone: userInfo.phone,
|
|
address: userInfo.location,
|
|
businessLicense: userInfo.businessLicenseUrl,
|
|
code: userInfo.code,
|
|
autographImg: userInfo.signatureUrl,
|
|
templateId: 2,
|
|
},
|
|
})
|
|
}
|
|
|
|
export function isSignProtocolInstallation() {
|
|
return request({
|
|
url: '/app/agreement/isSignAzxy',
|
|
})
|
|
}
|
|
|
|
export function isSignProtocolPartner() {
|
|
return request({
|
|
url: '/app/agreement/isSignHhrxy',
|
|
})
|
|
}
|
|
|
|
export function getProtocol(id) {
|
|
return request({
|
|
url: '/app/agreementTemplate/getById',
|
|
method: 'GET',
|
|
id,
|
|
})
|
|
}
|