Przeglądaj źródła

提交

修改样式逻辑
yangteng 3 tygodni temu
rodzic
commit
a179d6f25b
2 zmienionych plików z 9 dodań i 6 usunięć
  1. 6
    3
      utils/network/api.js
  2. 3
    3
      utils/utils.ts

+ 6
- 3
utils/network/api.js Wyświetl plik

export const customerInfoChangeView= "/iaw/aftersale/customerInfoChange/view" //业务审核查询详情 用户信息变更 export const customerInfoChangeView= "/iaw/aftersale/customerInfoChange/view" //业务审核查询详情 用户信息变更
export const customerInfoChangeCancel= "/iaw/aftersale/customerInfoChange/cancel" //业务审核取消 用户信息变更 export const customerInfoChangeCancel= "/iaw/aftersale/customerInfoChange/cancel" //业务审核取消 用户信息变更
// ocr // ocr
export const idCardOcr= "/iaw/ocr/idCardOcr" //身份证OCR识别
export const vehicleLicenseOcr= "/iaw/ocr/vehicleLicenseOcr" //车辆行驶证OCR识别
export const ocrAllQuery = '/iaw/ocr/businessLicenseOcrNew'; //8.76.BDS-OCR证照识别接口
// export const idCardOcr= "/iaw/ocr/idCardOcr" //身份证OCR识别
export const idCardOcr= "/iaw/txOcr/idCardOcr" //身份证OCR识别
// export const vehicleLicenseOcr= "/iaw/ocr/vehicleLicenseOcr" //车辆行驶证OCR识别
export const vehicleLicenseOcr= "/iaw/txOcr/vehicleLicenseOcr" //车辆行驶证OCR识别
// export const ocrAllQuery = '/iaw/ocr/businessLicenseOcrNew'; //8.76.BDS-OCR证照识别接口
export const ocrAllQuery = '/iaw/txOcr/businessLicenseOcr'; //8.76.BDS-OCR证照识别接口
// 公用得接口 // 公用得接口
export const commQueryCourier= "/iaw/api/afterSale/comm/queryCourier" //获取快递公司列表 export const commQueryCourier= "/iaw/api/afterSale/comm/queryCourier" //获取快递公司列表
// 收货地址管理 // 收货地址管理

+ 3
- 3
utils/utils.ts Wyświetl plik

success: (uploadFileRes) => { success: (uploadFileRes) => {
let uploadFileImage = 'http://100.64.2.113:9000' + '/default-bucket/' + JSON.parse(uploadFileRes.data).data.ossFilePath let uploadFileImage = 'http://100.64.2.113:9000' + '/default-bucket/' + JSON.parse(uploadFileRes.data).data.ossFilePath
console.log("111", JSON.parse(uploadFileRes.data).data.ossFilePath,JSON.parse(uploadFileRes.data)); console.log("111", JSON.parse(uploadFileRes.data).data.ossFilePath,JSON.parse(uploadFileRes.data));
if (code == "/iaw/ocr/idCardOcr") { //身份证 imageType 1 2
if (code == "/iaw/txOcr/idCardOcr") { //身份证 imageType 1 2
var data = { var data = {
source: "1", source: "1",
agencyId: agentId, agencyId: agentId,
fileName: tempImagePath, fileName: tempImagePath,
url: uploadFileImage url: uploadFileImage
}; };
} else if (code == "/iaw/ocr/vehicleLicenseOcr") { //行驶证 imageType 1正 2反
} else if (code == "/iaw/txOcr/vehicleLicenseOcr") { //行驶证 imageType 1正 2反
var data = { var data = {
source: "1", source: "1",
agencyId: agentId, agencyId: agentId,
console.log("17", uploadFileImage) console.log("17", uploadFileImage)
resolve(uploadFileImage) resolve(uploadFileImage)
return; return;
} else if (code == '/iaw/ocr/businessLicenseOcrNew') { //营业执照
} else if (code == '/iaw/txOcr/businessLicenseOcrNew') { //营业执照
var data = { var data = {
type: 'business_license', type: 'business_license',
url: uploadFileImage, url: uploadFileImage,

Ładowanie…
Anuluj
Zapisz