|
|
@ -204,21 +204,23 @@ const _sfc_main = common_vendor.defineComponent({ |
|
|
|
}); |
|
|
|
}, |
|
|
|
get_to() { |
|
|
|
common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:524", "suss", UTS.JSON.parse(UTS.JSON.stringify(this.clientInfo))); |
|
|
|
for (var i in this.clientInfo) { |
|
|
|
if (typeof this.clientInfo[i] == "object") { |
|
|
|
for (var j in this.clientInfo[i]) { |
|
|
|
if (!this.isEmpty(this.clientInfo[i][j]) && j != "carNo" && j != "lender" && j != "lenderMoney" && j != "lenderYear") { |
|
|
|
common_vendor.index.showToast({ |
|
|
|
title: "提交失败,请检查字段是否未填!", |
|
|
|
icon: "error", |
|
|
|
duration: 500, |
|
|
|
success: (res) => { |
|
|
|
}, |
|
|
|
fail: (res) => { |
|
|
|
} |
|
|
|
}); |
|
|
|
return false; |
|
|
|
for (var k in this.clientInfo[i][j]) { |
|
|
|
common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:530", k); |
|
|
|
if (!this.isEmpty(this.clientInfo[i][j][k]) && k != "carNo" && k != "lender" && k != "lenderMoney" && k != "lenderYear") { |
|
|
|
common_vendor.index.showToast({ |
|
|
|
title: "提交失败,请检查字段是否未填!", |
|
|
|
icon: "error", |
|
|
|
duration: 500, |
|
|
|
success: (res) => { |
|
|
|
}, |
|
|
|
fail: (res) => { |
|
|
|
} |
|
|
|
}); |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
@ -260,7 +262,7 @@ const _sfc_main = common_vendor.defineComponent({ |
|
|
|
}); |
|
|
|
} |
|
|
|
}).catch((err = null) => { |
|
|
|
common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:583", "err", err); |
|
|
|
common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:587", "err", err); |
|
|
|
}); |
|
|
|
}, |
|
|
|
getCar() { |
|
|
@ -287,7 +289,7 @@ const _sfc_main = common_vendor.defineComponent({ |
|
|
|
// serviceYearChanges(e){
|
|
|
|
// this.clientInfo.appOrderVoucherList[0].serviceYear = this.serviceAges[e.detail.value]
|
|
|
|
// this.serviceYear = this.serviceAges[e.detail.value]
|
|
|
|
// uni.__f__('log','at pages/index/PayPal.uvue:615',e.detail.value )
|
|
|
|
// uni.__f__('log','at pages/index/PayPal.uvue:619',e.detail.value )
|
|
|
|
// },
|
|
|
|
// 修改车辆类型
|
|
|
|
binduseTypeChanges(e = null) { |
|
|
@ -333,9 +335,9 @@ const _sfc_main = common_vendor.defineComponent({ |
|
|
|
this.clientInfo.appOrderVoucherList[0].effectiveTime = this.msToDate(dateTime).withoutTime; |
|
|
|
}, |
|
|
|
changeTime(e = null) { |
|
|
|
common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:683", e.detail.value); |
|
|
|
common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:687", e.detail.value); |
|
|
|
if (this.clientInfo.appOrderVoucherList[0].effectiveTime) { |
|
|
|
this.clientInfo.appOrderVoucherList[0].serviceYear = this.serviceAges[e.detail.value]; |
|
|
|
this.clientInfo.appOrderVoucherList[0].serviceYear = Number(e.detail.value) + 1; |
|
|
|
this.serviceYear = this.serviceAges[e.detail.value]; |
|
|
|
var dateTime = new Date(this.clientInfo.appOrderVoucherList[0].effectiveTime); |
|
|
|
let year = Number(dateTime.getFullYear()) + Number(e.detail.value) + 1; |
|
|
@ -435,7 +437,7 @@ const _sfc_main = common_vendor.defineComponent({ |
|
|
|
}); |
|
|
|
} |
|
|
|
}).catch((err = null) => { |
|
|
|
common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:789", "catch: ", err); |
|
|
|
common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:793", "catch: ", err); |
|
|
|
}); |
|
|
|
} else if (type == "carCert") { |
|
|
|
api.carCert(new UTSJSONObject({ "url": UTS.JSON.parse(res.data).message })).then((res2 = null) => { |
|
|
@ -457,12 +459,12 @@ const _sfc_main = common_vendor.defineComponent({ |
|
|
|
}); |
|
|
|
} |
|
|
|
}).catch((err = null) => { |
|
|
|
common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:816", "catch: ", err); |
|
|
|
common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:820", "catch: ", err); |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
fail: (err) => { |
|
|
|
common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:823", err); |
|
|
|
common_vendor.index.__f__("log", "at pages/index/PayPal.uvue:827", err); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|