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
ba37be7a
Commit
ba37be7a
authored
Jul 16, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
02bc1efd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
10 deletions
+27
-10
passengerList.vue
src/pages/usercenter/passengerList.vue
+27
-10
No files found.
src/pages/usercenter/passengerList.vue
View file @
ba37be7a
...
...
@@ -251,9 +251,9 @@
<q-page>
<div
class=
"order-buy"
>
<ul
class=
"tab-list"
>
<li>
01. 填寫訂購單
</li>
<li>
02. 付款方式
</li>
<li
class=
"is-checked"
>
0
3
. 填寫旅客資料
</li>
<
!--
<
li>
01. 填寫訂購單
</li>
<li>
02. 付款方式
</li>
-->
<li
class=
"is-checked"
>
0
1
. 填寫旅客資料
</li>
</ul>
<div
class=
"Order_content"
>
<div
class=
"order-info"
>
...
...
@@ -290,7 +290,7 @@
<!-- 旅客资料开始 -->
<div
class=
"order-info-block"
v-if=
"shape==1"
>
<div
class=
"buy-title"
>
旅客資料
<q-btn
color=
"amber"
@
click=
"SavePassenger()"
style=
"float:right;font-size:17px;font-weight:bold;"
<q-btn
color=
"amber"
@
click=
"SavePassenger()"
type=
"submit"
style=
"float:right;font-size:17px;font-weight:bold;"
label=
"儲存"
/>
</div>
<div
class=
"member-data"
v-for=
"(item,index) in GuestObj.list"
:key=
"index"
>
...
...
@@ -625,7 +625,7 @@
for
(
var
i
=
0
;
i
<
tempObj
.
GuestNum
;
i
++
)
{
tempObj
.
list
.
push
(
this
.
GetGuestObj
());
}
}
else
if
(
tempObj
.
list
.
length
>
0
&&
tempObj
.
list
.
length
<
tempObj
.
GuestNum
)
{
}
else
if
(
tempObj
.
list
.
length
>
0
)
{
var
newArray
=
[];
var
tempArray
=
JSON
.
parse
(
JSON
.
stringify
(
tempObj
.
list
));
if
(
tempArray
&&
tempArray
.
length
>
0
)
{
...
...
@@ -650,14 +650,13 @@
newArray
.
push
(
obj
);
});
}
for
(
var
i
=
tempObj
.
list
.
length
;
i
<
tempObj
.
GuestNum
;
i
++
)
{
newArray
.
push
(
this
.
GetGuestObj
());
if
(
tempObj
.
list
.
length
<
tempObj
.
GuestNum
){
for
(
var
i
=
tempObj
.
list
.
length
;
i
<
tempObj
.
GuestNum
;
i
++
)
{
newArray
.
push
(
this
.
GetGuestObj
());
}
}
tempObj
.
list
=
[];
tempObj
.
list
=
newArray
;
tempObj
.
list
.
forEach
(
x
=>
{
x
.
isShow
=
true
;
})
}
}
this
.
GuestObj
=
tempObj
;
...
...
@@ -667,6 +666,17 @@
}
});
},
getConnect
(){
this
.
$refs
.
myForm
.
validate
().
then
(
success
=>
{
if
(
success
)
{
// yay, models are correct
}
else
{
// oh no, user has filled in
// at least one invalid value
}
})
},
//保存旅客信息
SavePassenger
()
{
var
that
=
this
;
...
...
@@ -680,6 +690,13 @@
"sellorder_post_SetTravelGuestList"
,
this
.
GuestObj
.
list
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
message
:
res
.
data
.
message
,
position
:
'top'
,
color
:
'secondary'
,
timeout
:
2000
,
// 以毫秒为单位; 0意味着没有超时
})
this
.
getTravelGuest
();
}
else
{
this
.
$q
.
notify
({
...
...
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