Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
million
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
million
Commits
647709c0
Commit
647709c0
authored
Mar 06, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
71890ed3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
orderPreview.vue
src/components/car/orderPreview.vue
+1
-1
orderForm.vue
src/pages/Pickuporder/orderForm.vue
+15
-11
No files found.
src/components/car/orderPreview.vue
View file @
647709c0
...
...
@@ -238,7 +238,7 @@ export default {
}
let
key
=
this
.
$md5
(
JSON
.
stringify
(
order
))
order
.
key
=
key
localStorage
.
setItem
(
"
line
Cars"
,
JSON
.
stringify
(
order
))
localStorage
.
setItem
(
"
pickuporder
Cars"
,
JSON
.
stringify
(
order
))
this
.
CommonJump
(
'/PickuporderForm/'
+
key
,
{});
},
// 获取车的详情
...
...
src/pages/Pickuporder/orderForm.vue
View file @
647709c0
...
...
@@ -649,8 +649,8 @@
try
{
if
(
this
.
$route
.
params
&&
this
.
$route
.
params
.
id
)
{
let
key
=
this
.
$route
.
params
.
id
;
let
lineCars
=
localStorage
.
getItem
(
"line
Cars"
);
let
OrderDate
=
lineCars
?
JSON
.
parse
(
line
Cars
)
:
null
;
let
pickuporderCars
=
localStorage
.
getItem
(
"pickuporder
Cars"
);
let
OrderDate
=
pickuporderCars
?
JSON
.
parse
(
pickuporder
Cars
)
:
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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment