Commit 647709c0 authored by youjie's avatar youjie

no message

parent 71890ed3
......@@ -238,7 +238,7 @@ export default {
}
let key = this.$md5(JSON.stringify(order))
order.key = key
localStorage.setItem("lineCars",JSON.stringify(order))
localStorage.setItem("pickuporderCars",JSON.stringify(order))
this.CommonJump('/PickuporderForm/'+key, {});
},
// 获取车的详情
......
......@@ -649,8 +649,8 @@
try {
if (this.$route.params && this.$route.params.id) {
let key = this.$route.params.id;
let lineCars = localStorage.getItem("lineCars");
let OrderDate = lineCars ? JSON.parse(lineCars) : null;
let pickuporderCars = localStorage.getItem("pickuporderCars");
let OrderDate = pickuporderCars ? JSON.parse(pickuporderCars) : null;
if (OrderDate) {
this.CarObj = OrderDate.CarObj,//车型
this.AirportObj = OrderDate.AirportObj,//机场
......@@ -674,6 +674,7 @@
if (OrderDate) {
this.orderKey = key;
}
this.$q.loading.hide();
}
}
} catch (error) {
......@@ -698,6 +699,7 @@
this.$refs.Mobile.validate()
this.$refs.OrderDate.validate()
this.$refs.ManNum.validate()
if(this.details.CarType!=3){
this.$refs.AirportTerminal.validate()
this.$refs.AirLine.validate()
......@@ -847,15 +849,17 @@
// 初始化国家
initCountry() {
this.apipost("GetCountryInfo_post", {}, (r) => {
this.countrys = r.data.data.countList;
this.userInfo.country = this.countrys[0].ID;
this.areaCodes = r.data.data.phoneCountList;
this.changeCountry(this.userInfo.country);
this.areaCodes.forEach((x) => {
let temp = this.countrys.find((y) => y.ID == x.ID);
x.EnName = `${temp.EnName}(${x.PhoneCode})`;
});
if (r.data.resultCode == 1) {
this.countrys = r.data.data.countList;
this.userInfo.country = this.countrys[0].ID;
this.areaCodes = r.data.data.phoneCountList;
this.changeCountry(this.userInfo.country);
this.areaCodes.forEach((x) => {
let temp = this.countrys.find((y) => y.ID == x.ID);
x.EnName = `${temp.EnName}(${x.PhoneCode})`;
});
}
});
},
changeCountry(id) {
......
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