Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Athena
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
华国豪
Athena
Commits
da946491
Commit
da946491
authored
Nov 19, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
749571d7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
779 additions
and
20 deletions
+779
-20
FillItinerary.vue
src/components/Ticket/FillItinerary.vue
+103
-12
NewChooseCity.vue
src/components/Ticket/NewChooseCity.vue
+305
-0
NewChooseCity1.vue
src/components/Ticket/NewChooseCity1.vue
+292
-0
TicketHome.vue
src/components/Ticket/TicketHome.vue
+1
-1
TicketList.vue
src/components/Ticket/TicketList.vue
+3
-2
TicketPaybefore.vue
src/components/Ticket/TicketPaybefore.vue
+65
-0
TkOrder.vue
src/components/newPersonalCenter/block/model/TkOrder.vue
+10
-5
No files found.
src/components/Ticket/FillItinerary.vue
View file @
da946491
...
...
@@ -207,7 +207,7 @@
<el-input
size=
"small"
v-model=
"personNum.ContactEmail"
></el-input>
</el-form-item>
<el-form-item
style=
"width:450px"
label=
"备注"
>
<el-input
size=
"small"
type=
"textarea"
v-model=
"personNum.Remarks"
></el-input>
<el-input
size=
"small"
type=
"textarea"
style=
"width:970px;"
v-model=
"personNum.Remarks"
></el-input>
</el-form-item>
</el-form>
</div>
...
...
@@ -234,7 +234,7 @@
</div>
<span
class=
"kdj"
>
<span
v-if=
"item.overlapUse==1"
>
可叠加
</span>
<span
v-else
>
不可叠加
</span>
<span
v-else
class=
"fillDisBuke"
>
不可叠加
</span>
</span>
<p
style=
"margin-top:10px"
>
...
...
@@ -242,9 +242,12 @@
<span
v-else
>
{{
item
.
denomination
}}
折
</span>
</p>
<p
style=
"font-size:14px"
>
满
{{
item
.
useCondition
}}
使用
</p>
<p
style=
"font-size:12px;color:#4C58A4;margin-top:6px"
>
<p
v-if=
"item.overlapUse==1"
style=
"font-size:12px;color:#4C58A4;margin-top:6px"
>
有效期:
{{
item
.
effectDate
|
YMD
}}
-
{{
item
.
expirationDate
|
YMD
}}
</p>
<p
v-else
style=
"font-size:12px;color:#d1d1d1;margin-top:6px"
>
有效期:
{{
item
.
effectDate
|
YMD
}}
-
{{
item
.
expirationDate
|
YMD
}}
</p>
<div
v-if=
"Platfrom(item.fromPlatform)"
class=
"_choice_box"
>
<span
v-if=
"!item.active"
></span>
...
...
@@ -261,7 +264,8 @@
<!-- 提交订单 -->
<div
class=
'tjorder'
v-show=
"!personnums"
>
<div
style=
"width:80%;margin:0 auto;color:#cccccc;position:relative"
>
<p
style=
"font-size:14px;text-align:right;"
>
条款和限制
<span
style=
"color:#49C0A1"
>
《网上购票须知》
</span>
</p>
<p
style=
"font-size:14px;text-align:right;"
>
<el-checkbox
v-model=
"checkedXieyi"
>
我已阅读并同意
</el-checkbox><span
style=
"color:#49C0A1;cursor:pointer;"
@
click
.
stop=
"showTips=true"
>
《网上购票须知》
</span>
<p>
<span>
总价
</span>
<span
style=
"font-size:20px;font-weight:400;color:rgba(255,255,255,1);margin:0 15px;"
>
¥
{{
personNum
.
PreferPrice
|
priceFormat
}}
</span>
...
...
@@ -282,6 +286,23 @@
</div>
</div>
<!-- 网上购票须知弹窗 -->
<el-dialog
custom-class=
'w800'
title=
"网上购票须知"
:visible
.
sync=
"showTips"
center
>
<div
class=
"buyTicketxu"
>
<div>
1.购买我司机票为团队机票,需起飞前3天出票,提供票号。
</div>
<div>
2.购买我司机票为团队机票,若起飞提前7天内此团未拼成团,不低于(10人)我司无责任取消,支付的金额原路退回
</div>
<div>
3.购买我司机票为团队机票,支付后此票 不退、不签、不改,请您知晓!
</div>
<div>
4.购买我司机票为团队机票,名字出票后,不可更换字母,不可换人
</div>
<div>
5.购买我司机票为团队机票,大人、孩童同价,婴儿我社无权代理出票,请您致电航司电话进行购买婴儿票
</div>
<div>
6.购买我司机票为团队机票,最终解释权归四川和平国际旅行社有限公司所有
</div>
</div>
</el-dialog>
<!-- 验证是否可以下单弹窗 -->
<el-dialog
custom-class=
'w400'
title=
"温馨提示"
:visible
.
sync=
"OrderTips"
center
>
<div
class=
"buyTicketxu"
style=
"color:red;"
>
<div>
该时间段无法下单,下单时间为9:30-20:00
</div>
</div>
</el-dialog>
</div>
</
template
>
<
script
>
...
...
@@ -331,6 +352,9 @@ export default {
ActivateCode
:
''
,
Verification
:
''
,
showTips
:
false
,
checkedXieyi
:
false
,
OrderTips
:
false
,
}
},
created
(){
...
...
@@ -344,12 +368,42 @@ export default {
},
err
=>
{});
},
mounted
()
{
if
(
this
.
$route
.
query
.
isNew
){
this
.
getTime
();
}
this
.
GetDes
();
this
.
GetCountroy
()
this
.
SellInfo
();
this
.
getUserCanUseCouponList
();
//检测是否第一次弹出弹窗旅客须知
if
(
sessionStorage
.
getItem
(
'isFirstLoad'
)
==
null
){
this
.
showTips
=
true
;
sessionStorage
.
setItem
(
"isFirstLoad"
,
1
);
}
// if (localStorage.getItem('wasVisited') != undefined||localStorage.getItem('wasVisited') != null) {
// this.showTips=false;
// } else {
// localStorage.setItem('wasVisited', 1);
// this.showTips=true;
// }
},
methods
:
{
//调用后台时间确认是否可以下单
getTime
(){
let
msg
=
{
Type
:
1
}
this
.
apipost
(
"sellorder_get_GetNewServerTime"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
!=
1
)
{
this
.
OrderTips
=
true
;
}
},
err
=>
{
}
);
},
Platfrom
(
str
){
if
(
str
){
if
(
str
.
indexOf
(
'0'
)
!=-
1
||
str
.
indexOf
(
'3'
)
!=-
1
){
...
...
@@ -367,7 +421,6 @@ export default {
dom
.
click
()
},
clickCoupon
:
function
(
item
)
{
console
.
log
(
"item"
,
item
);
let
list
=
[];
if
(
!
item
.
active
)
{
// 是否选中
if
(
item
.
denomination
>
this
.
SettlementPrice
){
...
...
@@ -636,6 +689,10 @@ export default {
this
.
personnums
=
false
;
},
submitForm
()
{
if
(
!
this
.
checkedXieyi
){
this
.
Error
(
'请阅读并同意购票须知'
);
return
;
}
let
status1
=
false
;
let
status2
=
false
;
this
.
$refs
.
personNumList
.
validate
((
valid
)
=>
{
...
...
@@ -652,6 +709,12 @@ export default {
return
;
}
});
let
saleName
=
''
;
this
.
SellInfoList
.
forEach
(
x
=>
{
if
(
this
.
personNum
.
EnterID
==
x
.
EmployeeId
){
saleName
=
x
.
EmName
;
}
})
if
(
status1
&&
status2
){
this
.
submitLoad
=
true
;
this
.
personNum
.
CustomerId
=
this
.
userInfo
.
customerId
;
...
...
@@ -662,13 +725,19 @@ export default {
this
.
submitLoad
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
personNum
=
{};
this
.
$router
.
push
({
name
:
"Pay"
,
this
.
personNum
=
{};
// this.$router.push({
// name: "Pay",
// query: {
// id: res.data.data,
// }
// });
this
.
$router
.
push
({
name
:
"TicketPaybefore"
,
query
:
{
id
:
res
.
data
.
data
,
}
});
saleName
:
saleName
}
});
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
...
...
@@ -956,4 +1025,26 @@ font-size: 14px;
height
:
50px
;
box-shadow
:
0px
1px
0px
0px
rgba
(
238
,
238
,
238
,
1
);
}
.fillDisBuke
{
background-color
:
#d1d1d1
;
display
:
inline-block
;
width
:
100%
;
height
:
100%
;
}
.FillItinerary
.el-checkbox__label
{
color
:
#fff
;
}
.FillItinerary
.el-checkbox__input.is-checked
+
.el-checkbox__label
{
color
:
#f56c6c
;
}
.FillItinerary
.el-checkbox__input.is-checked
.el-checkbox__inner
,
.loginNationalDay
.el-checkbox__input.is-indeterminate
.el-checkbox__inner
{
background-color
:
#f56c6c
;
border-color
:
#f56c6c
;
}
.buyTicketxu
div
{
margin-bottom
:
10px
;
}
.w800
{
width
:
800px
;}
.w400
{
width
:
400px
;}
</
style
>
src/components/Ticket/NewChooseCity.vue
0 → 100644
View file @
da946491
This diff is collapsed.
Click to expand it.
src/components/Ticket/NewChooseCity1.vue
0 → 100644
View file @
da946491
This diff is collapsed.
Click to expand it.
src/components/Ticket/TicketHome.vue
View file @
da946491
...
...
@@ -283,7 +283,7 @@
</div>
</
template
>
<
script
>
import
ChooseCity
from
"@/components/Ticket/ChooseCity.vue"
;
import
ChooseCity
from
"@/components/Ticket/
New
ChooseCity.vue"
;
import
ChooseCity1
from
"@/components/Ticket/ChooseCity1.vue"
;
import
moment
from
"moment"
;
export
default
{
...
...
src/components/Ticket/TicketList.vue
View file @
da946491
...
...
@@ -318,7 +318,7 @@
</div>
</
template
>
<
script
>
import
ChooseCity
from
"@/components/Ticket/ChooseCity.vue"
;
import
ChooseCity
from
"@/components/Ticket/
New
ChooseCity.vue"
;
import
ChooseCity1
from
"@/components/Ticket/ChooseCity1.vue"
;
import
moment
from
"moment"
;
import
calendar
from
"@/components/mall/newcalendar.vue"
;
...
...
@@ -494,7 +494,8 @@ export default {
sessionStorage
.
setItem
(
"Homepage"
,
"ticket"
);
// localStorage.homePage = 'ticket';
this
.
$router
.
push
({
path
:
`/ticket/FillItinerary/
${
item
.
id
}
`
path
:
`/ticket/FillItinerary/
${
item
.
id
}
`
,
query
:
{
isNew
:
'isNewAdd'
}
});
}
},
...
...
src/components/Ticket/TicketPaybefore.vue
0 → 100644
View file @
da946491
<
style
>
.orderSuccess
{
width
:
600px
;
height
:
auto
;
margin
:
auto
;
text-align
:
center
;
color
:
#333
;
font-size
:
18px
;
margin-top
:
50px
;
}
.orderSpan
{
position
:
relative
;
margin-left
:
10px
;
top
:
3px
;
color
:
#49C0A1
;
}
.orderContract
{
font-size
:
14px
;
margin-top
:
30px
;
}
.LookBtn
{
width
:
70px
;
height
:
30px
;
background-color
:
#EE4454
;
color
:
#fff
;
border
:
none
;
outline
:
none
;
cursor
:
pointer
;
border-radius
:
4px
;
margin-top
:
43px
;
}
</
style
>
<
template
>
<div
class=
"orderSuccess"
>
<div>
<img
style=
"vertical-align:middle;"
src=
"../../assets/img/hotel/smile.png"
alt=
""
/>
<span
class=
"orderSpan"
>
订单预订成功
</span>
</div>
<div
class=
"orderContract"
>
订单正在确认中,请稍候,确认之后会有短信请注意查收,或与服务专员
{{
saleName
}}
联系
</div>
<input
type=
"button"
class=
"LookBtn"
@
click=
"goOrders"
value=
"查看订单"
/>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
saleName
:
''
,
};
},
created
()
{
},
mounted
(){
if
(
this
.
$route
.
query
.
saleName
){
this
.
saleName
=
this
.
$route
.
query
.
saleName
}
},
methods
:
{
goOrders
(
path
){
this
.
$router
.
push
({
path
:
'/newPersonalCenter?key=8-5'
})
}
}
}
</
script
>
src/components/newPersonalCenter/block/model/TkOrder.vue
View file @
da946491
...
...
@@ -120,9 +120,10 @@
<span
v-if=
"scope.row.refundStatus==3"
>
已退款
</span>
</p>
-->
<p>
<span
v-if=
"scope.row.orderState==1"
>
待付款
</span>
<span
v-if=
"scope.row.orderState==2"
>
正常
</span>
<span
v-if=
"scope.row.orderState==3"
>
取消
</span>
<span
v-if=
"scope.row.airConfirm==2"
>
待确认
</span>
<span
v-else-if=
"scope.row.orderState==1"
>
待付款
</span>
<span
v-else-if=
"scope.row.orderState==2"
>
正常
</span>
<span
v-else-if=
"scope.row.orderState==3"
>
取消
</span>
</p>
</div>
<!--
<p
@
click=
"OrderDes(scope.row)"
style=
"color:#DDDDDD;cursor:pointer"
>
订单详情
</p>
-->
...
...
@@ -132,7 +133,7 @@
<el-table-column
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
v-show=
"scope.row.orderState==1"
<el-button
v-show=
"scope.row.orderState==1
&&scope.row.airConfirm!=2
"
size=
"mini"
style=
"border:1px solid #EE4454;color:#EE4454"
@
click=
"handlePay(scope.$index, scope.row)"
>
去付款
</el-button>
<!--
<el-button
v-show=
"scope.row.status==1 && scope.row.refundStatus==1"
...
...
@@ -160,6 +161,10 @@ export default {
Type
:
"全部"
,
ID
:
0
},
{
Type
:
'待确认'
,
ID
:
4
},
{
Type
:
"待付款"
,
ID
:
1
...
...
@@ -171,7 +176,7 @@ export default {
{
Type
:
"取消"
,
ID
:
3
}
},
],
totalCount
:
0
,
provideItem
:[],
...
...
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