|
|
@@ -147,6 +147,7 @@ import { |
|
|
|
etcCreatOrder, |
|
|
|
etcVehiclePlateVer, |
|
|
|
searchOrder, |
|
|
|
productReCode, |
|
|
|
} from "@/utils/network/api.js"; |
|
|
|
import { request } from "@/utils/network/request.js"; |
|
|
|
import { reactive, ref } from "vue"; |
|
|
@@ -168,9 +169,10 @@ const state = reactive({ |
|
|
|
region: "", |
|
|
|
address: "", |
|
|
|
postalCode: "", |
|
|
|
productId:"", |
|
|
|
}, |
|
|
|
show: false, |
|
|
|
addressArray: [], |
|
|
|
addressArray: [], |
|
|
|
}); |
|
|
|
|
|
|
|
/* 选择车牌颜色 */ |
|
|
@@ -243,6 +245,22 @@ const nextAction = () => { |
|
|
|
orderGoAction(); |
|
|
|
} else { |
|
|
|
const data = stringToJson(res.bizContent); |
|
|
|
console.log(data); |
|
|
|
|
|
|
|
//提交产品信息 |
|
|
|
productReCodeAction(data.orderId).then((result)=>{ |
|
|
|
console.log(result); |
|
|
|
if (state.data.userType === 1) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/subpackage/applyCard/opening-account-people?orderId=${data.orderId}&&vehiclePlateColor=${state.data.vehiclePlateColor}`, |
|
|
|
}); |
|
|
|
} else { |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/subpackage/applyCard/opening-account-unit?orderId=${data.orderId}&&vehiclePlateColor=${state.data.vehiclePlateColor}`, |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
// uni.navigateTo({ |
|
|
|
// url: `/subpackage/applyCard/choice-product?orderId=${data.orderId}&userType=${state.data.userType}&vehiclePlateColor=${state.data.vehiclePlateColor}`, |
|
|
|
// }) |
|
|
@@ -250,15 +268,7 @@ const nextAction = () => { |
|
|
|
// url: `/subpackage/applyCard/choice-product?orderId=${data.orderId}&userType=${state.data.userType}&vehiclePlateColor=${state.data.vehiclePlateColor}`, |
|
|
|
// }); |
|
|
|
|
|
|
|
if (state.data.userType === 1) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/subpackage/applyCard/opening-account-people?orderId=${data.orderId}&&vehiclePlateColor=${state.data.vehiclePlateColor}`, |
|
|
|
}); |
|
|
|
} else { |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/subpackage/applyCard/opening-account-unit?orderId=${data.orderId}&&vehiclePlateColor=${state.data.vehiclePlateColor}`, |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
@@ -287,7 +297,7 @@ const orderStepGoActon = (val: any) => { |
|
|
|
console.log(val); |
|
|
|
//完成填写基本信息 |
|
|
|
if (val.orderStep === 1) { |
|
|
|
if (state.data.userType === "1") { |
|
|
|
if (state.data.userType === 1) { |
|
|
|
uni.redirectTo({ |
|
|
|
url: `/subpackage/applyCard/opening-account-people?orderId=${val.orderId}&&vehiclePlateColor=${val.vehiclePlateColor}`, |
|
|
|
}); |
|
|
@@ -314,6 +324,7 @@ onLoad((option: any) => { |
|
|
|
state.data.opId = getItem(StorageKeys.OpenId); |
|
|
|
state.data.type = option.type; //客车 |
|
|
|
state.data.userType = option.userType; |
|
|
|
state.data.productId = option.productId; |
|
|
|
}); |
|
|
|
|
|
|
|
//监听页面滚动 |
|
|
@@ -341,6 +352,27 @@ onShow(() => { |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
const productReCodeAction = (orderId) => { |
|
|
|
var data = { |
|
|
|
productId: state.data.productId, |
|
|
|
orderId: orderId, |
|
|
|
}; |
|
|
|
const options = { |
|
|
|
type: 2, |
|
|
|
data: data, |
|
|
|
method: "POST", |
|
|
|
showLoading: true, |
|
|
|
}; |
|
|
|
|
|
|
|
return new Promise(async (resolve, reject) => { |
|
|
|
const res = await request(productReCode, options); |
|
|
|
const data = stringToJson(res.bizContent); |
|
|
|
resolve(data); |
|
|
|
}).catch((error) => { |
|
|
|
reject(error); |
|
|
|
}); |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |