Commit df7c1569 by 张立顺

bug修复

1 parent 8d1cf65f
......@@ -97,18 +97,19 @@ Component({
onChangeInsurance(e) {
console.log(e)
let thisPage = wx.$router.getPageInstance()
const owner = wx.$util.deepClone(thisPage.data.owner)
orderInfo.owner = owner
orderInfo.owner.price = this.multipliedByHundred(orderInfo.owner?.price) || ''
console.log(thisPage)
let params = thisPage.getInsurance()
if (params.owner?.buyCarTime) {
delete params.owner.buyCarTime
}
if (params?.quotedPriceUpdate) {
delete params.quotedPriceUpdate
}
let owner = thisPage.getOwnerInfo()
// const owner = wx.$util.deepClone(thisPage.data.owner)
params.owner = owner
// params.owner = owner
// params.owner.price = this.multipliedByHundred(orderInfo.owner?.price) || ''
// console.log(thisPage)
if (params.owner?.buyCarTime) {
delete params.owner.buyCarTime
}
if (params?.quotedPriceUpdate) {
delete params.quotedPriceUpdate
}
priceCounter(params)
.then(result => {
console.log('result', result)
......
......@@ -181,19 +181,18 @@ Page({
delete orderInfo.quotedPriceUpdate
return orderInfo
},
getOwnerInfo (){
getOwnerInfo() {
let { owner } = this.data
owner = wx.$util.deepClone(owner)
owner.price = this.multipliedByHundred(owner?.price) || ''
orderInfo.owner = owner
// orderInfo.owner = owner
if (owner) {
delete owner?.buyCarTime
}
return owner
},
handleSecondConfirmCheck() {
// 获取保险信息
let orderInfo = this.getInsurance()
let owner = this.getOwnerInfo()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!