Commit 606c1009 authored by youjie's avatar youjie

no message

parent a8cb8872
...@@ -201,13 +201,27 @@ export default { ...@@ -201,13 +201,27 @@ export default {
methods: { methods: {
goOrderHandler(){ goOrderHandler(){
let order = { let order = {
CarId: this.selectedCarObj.Id, key: null,
AirportId: this.selectedAirportObj?this.selectedAirportObj.Id:'', CarObj: this.selectedCarObj,
startDate: this.p.startDate, AirportObj: {
originalB2CPrice: this.p.originalB2CPrice, Address: this.selectedAirportObj?this.selectedAirportObj.Address:'',
orderInfo: this.chosenObj, AirportId: this.selectedAirportObj?this.selectedAirportObj.AirportId:'',
AirportName: this.selectedAirportObj?this.selectedAirportObj.AirportName:'',
Id: this.selectedAirportObj?this.selectedAirportObj.Id:'',
Name: this.selectedAirportObj?this.selectedAirportObj.Name:''
},
calculationAmount: this.p,
calculationNum: this.chosenObj,
sumPrice: this.sumPrice, sumPrice: this.sumPrice,
details: {
Name: this.dataList.Name,
Description: this.dataList.Description,
videoStr: this.dataList.videoStr,
imgCover: this.dataList.imgCover,
CarType: this.dataList.CarType,
Id: this.dataList.Id, Id: this.dataList.Id,
CurrencyCode: this.dataList.CurrencyCode,
},
onCarObj: { onCarObj: {
Address: this.onCarObj?this.onCarObj.Address:'', Address: this.onCarObj?this.onCarObj.Address:'',
Name: this.onCarObj?this.onCarObj.Name:'', Name: this.onCarObj?this.onCarObj.Name:'',
...@@ -224,13 +238,8 @@ export default { ...@@ -224,13 +238,8 @@ export default {
}, },
} }
let key = this.$md5(JSON.stringify(order)) let key = this.$md5(JSON.stringify(order))
let pickuporderCars = localStorage.getItem('pickuporderCars') order.key = key
pickuporderCars = pickuporderCars?JSON.parse(pickuporderCars):[] localStorage.setItem("pickuporderCars",JSON.stringify(order))
pickuporderCars.push({
key,
order
})
localStorage.setItem("pickuporderCars",JSON.stringify(pickuporderCars))
this.CommonJump('/PickuporderForm/'+key, {}); this.CommonJump('/PickuporderForm/'+key, {});
}, },
// 获取车的详情 // 获取车的详情
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment