|
|
@@ -52,25 +52,25 @@ let config = ref<any>({ |
|
|
|
let formData = ref<any>(fromData); |
|
|
|
let formDataList = ref([]); |
|
|
|
const isShow = ref(true); |
|
|
|
const orderNo = ref(''); |
|
|
|
|
|
|
|
const qdOrderStore = useQdOrderStore(); |
|
|
|
const { qdOrderVal, cusQdOrderVal } = storeToRefs(qdOrderStore); |
|
|
|
|
|
|
|
//获取页面配置 |
|
|
|
onLoad((opin) => { |
|
|
|
console.log("opin", opin); |
|
|
|
// 只调用trackEvent接口 |
|
|
|
trackEvent({ |
|
|
|
orderNo: opin.order, |
|
|
|
}); |
|
|
|
orderNo.value = opin.order; |
|
|
|
const params = { |
|
|
|
orderNo: orderNo.value |
|
|
|
}; |
|
|
|
trackEvent(params); |
|
|
|
}); |
|
|
|
|
|
|
|
function trackEvent(data) { |
|
|
|
console.log("错误", data); |
|
|
|
function trackEvent(params) { |
|
|
|
requestNew("/iaw/h5/order/web/queryOrder", { |
|
|
|
data, |
|
|
|
data: params |
|
|
|
}).then((res) => { |
|
|
|
// hanToNext(res.data) |
|
|
|
if (res.data.userType === "PERSONAL_USER") { |
|
|
|
// 个人办理 |
|
|
|
danChange(false); |
|
|
@@ -250,14 +250,37 @@ async function submit(item: any) { |
|
|
|
let isLock = ref(false); |
|
|
|
// 无感注册拿到openId |
|
|
|
function register(data: any) { |
|
|
|
console.log(data,'datasjsjsjsjsj') |
|
|
|
let params: any = {}; |
|
|
|
params.idNum = data.userIdNum; |
|
|
|
params.idType = data.userIdType; |
|
|
|
params.mobile = data.mobile || data.agentTel; |
|
|
|
// params.idNum = data.userIdNum; |
|
|
|
// params.idType = data.userIdType; |
|
|
|
// params.mobile = data.mobile || data.agentTel; |
|
|
|
// params.userName = data.userName; |
|
|
|
// params.gender = "UNKOWN"; |
|
|
|
// params.certifyChannel = "BAIDUOCR"; //实名渠道 |
|
|
|
// params.address = data.userAddress; |
|
|
|
params.agentAddress = data.agentAddress; |
|
|
|
params.agentIdNum = data.agentIdNum; |
|
|
|
params.agentIdType = data.agentIdType; |
|
|
|
params.agentIdVld = data.agentIdVld; |
|
|
|
params.agentName = data.agentName; |
|
|
|
params.agentNegImgUrl = data.agentNegImgUrl; |
|
|
|
params.agentPosImgUrl = data.agentPosImgUrl; |
|
|
|
params.agentTel = data.agentTel; |
|
|
|
params.customerId = data.customerId; |
|
|
|
params.customerIdVld = data.customerIdVld; |
|
|
|
params.department = data.department; |
|
|
|
// params.loginSource = data.loginSource; |
|
|
|
params.loginSource = '431bfdc8b9c645e0b293b85d6ce1948n'; |
|
|
|
params.mobile = data.tel; |
|
|
|
params.orderNo = orderNo.value; |
|
|
|
params.proxyUrl = data.proxyUrl; |
|
|
|
params.userAddress = data.address; |
|
|
|
params.userIdNum = data.userIdNum; |
|
|
|
params.userIdType = data.userIdType; |
|
|
|
params.userName = data.userName; |
|
|
|
params.gender = "UNKOWN"; |
|
|
|
params.certifyChannel = "BAIDUOCR"; //实名渠道 |
|
|
|
params.address = data.userAddress; |
|
|
|
params.userNegImgUrl = data.userIdNeImageUrl; |
|
|
|
params.userPosImgUrl = data.userIdPoImageUrl; |
|
|
|
|
|
|
|
if (data.isSelf === "0" || submitCode === "20") { |
|
|
|
// 他人办理 |
|
|
@@ -269,11 +292,12 @@ function register(data: any) { |
|
|
|
// 单位办理 |
|
|
|
params.userType = "ENTERPRISE"; |
|
|
|
params.department = data.department; |
|
|
|
params.businessLicenseUrl = data.businessLicenseUrl; // 添加营业执照图片地址 |
|
|
|
} else { |
|
|
|
params.userType = "PERSONAL"; |
|
|
|
} |
|
|
|
console.log(params, "params", submitCode); |
|
|
|
return requestNew("/iaw/issue/userBasic/registerFull", { |
|
|
|
return requestNew("/iaw/h5/order/web/upUser", { |
|
|
|
data: params, |
|
|
|
}).then((res) => { |
|
|
|
console.log(res, "fanhui"); |