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
e9f7f387
Commit
e9f7f387
authored
Aug 23, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/huaguohao/athena
parents
48ca7c5b
e7a2653a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
811 additions
and
148 deletions
+811
-148
FreeDetail.vue
src/components/FreeTravel/FreeDetail.vue
+43
-37
FreePay.vue
src/components/FreeTravel/FreePay.vue
+451
-0
FreePayBefore.vue
src/components/FreeTravel/FreePayBefore.vue
+194
-0
OrderConfirmation.vue
src/components/FreeTravel/OrderConfirmation.vue
+100
-110
FreeCalendar.vue
src/components/mall/FreeCalendar.vue
+5
-1
router.js
src/router.js
+18
-0
No files found.
src/components/FreeTravel/FreeDetail.vue
View file @
e9f7f387
This diff is collapsed.
Click to expand it.
src/components/FreeTravel/FreePay.vue
0 → 100644
View file @
e9f7f387
This diff is collapsed.
Click to expand it.
src/components/FreeTravel/FreePayBefore.vue
0 → 100644
View file @
e9f7f387
<
style
>
.payBefore_vue
{
width
:
1200px
;
height
:
auto
;
margin
:
auto
;
}
.payBefore_vue
.head
{
padding
:
4px
0
;
position
:
relative
;
height
:
40px
;
width
:
100%
;
}
.payBefore_vue
.icon-jinggao
{
color
:
#49C0A1
;
font-size
:
38px
;
position
:
absolute
;
}
.payBefore_content
{
min-height
:
380px
;
position
:
relative
;
margin-top
:
15px
;
padding-bottom
:
25px
;
padding-top
:
16px
;
background
:
rgba
(
255
,
255
,
255
,
1
);
-webkit-box-shadow
:
0px
4px
38px
0px
rgba
(
107
,
107
,
107
,
0.2
);
box-shadow
:
0px
4px
38px
0px
rgba
(
107
,
107
,
107
,
0.2
);
}
.payBefore_content
.ordernum
{
position
:
relative
;
width
:
203px
;
height
:
35px
;
line-height
:
35px
;
background
:
#49c0a1
;
font-size
:
14px
;
font-weight
:
400
;
color
:
rgba
(
255
,
255
,
255
,
1
);
padding-left
:
16px
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
margin-left
:
-7px
;
border-right-color
:
transparent
;
}
.payBefore_content
.triangle_border_left
{
width
:
0
;
height
:
0
;
border-width
:
17px
17px
17px
0
;
border-style
:
solid
;
border-color
:
transparent
#30a19b
transparent
transparent
;
position
:
absolute
;
right
:
0
;
top
:
0px
;
}
.PayBefore_Left
{
float
:
left
;
margin-left
:
173px
;
width
:
435px
;
height
:
150px
;
margin-top
:
30px
;
}
.PayBefore_Right
{
float
:
left
;
margin-left
:
26px
;
width
:
349px
;
height
:
218px
;
}
.PayBefore_Right
img
{
width
:
100%
;
}
.PB_img
{
width
:
54px
;
height
:
54px
;
float
:
left
;
}
.PB_img
img
{
width
:
100%
;
}
.PB_Detail
{
float
:
left
;
width
:
363px
;
font-size
:
12px
;
color
:
#333333
;
margin-left
:
10px
;
}
.PB_Detail
div
:first-child
{
font-size
:
24px
;
font-weight
:
bold
;
margin-bottom
:
5px
;
}
.HP_time
{
color
:
#EE4454
;
font-weight
:
bold
;
}
.HP_zhifu
{
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=
"payBefore_vue"
>
<!-- 头部 -->
<div
class=
"head"
style=
"margin-top:20px;"
>
<div
style=
"box-sizing:border-box;"
>
<div
style=
"float:left;"
>
<i
class=
"iconfont icon-jinggao"
></i>
<div
style=
"margin-left:50px"
>
<p
style=
"font-size:14px;font-weight:600"
>
订单提交成功!
</p>
<p
style=
"font-size:12px"
>
请您在
<span
style=
"color:#FF680B;"
>
12小时
</span>
内完成支付,否则订单会自动取消
</p>
</div>
</div>
<div
style=
"text-align:center;float:right"
>
<span
style=
"font-weight:200;font-size:12px;margin-right:10px;"
>
应付金额
</span>
<span
style=
"color:#FF680B;font-size:18px;font-weight:bold;"
>
{{
TotalPrice
}}
</span>
<span
style=
"font-size:12px;color:#333333"
>
元
</span>
</div>
</div>
</div>
<div
class=
"payBefore_content"
style=
"margin-bottom:30px;"
>
<div
class=
"ordernum"
>
订单号 :
{{
bookingNumber
}}
<div
class=
"triangle_border_left"
></div>
</div>
<div
class=
"clearfix"
style=
"margin-top:45px;"
>
<div
class=
"PayBefore_Left clearfix"
>
<div
class=
"PB_img"
>
<img
src=
"../../assets/img/hotel/smile.png"
alt=
""
/>
</div>
<div
class=
"PB_Detail"
>
<div>
恭喜您下单成功!
</div>
<div>
为了保证您能够顺利下单,请您在
<span
class=
"HP_time"
>
12小时
</span>
内完成付款,如果在此
时间内未能完成付款我们将自动取消此订单
</div>
</div>
<div>
<input
v-if=
"isShowBtn"
type=
"button"
class=
"HP_zhifu"
@
click=
"gotoPay('FreePay')"
value=
"立即支付"
/>
<!--
<input
v-if=
"!isShowBtn"
type=
"button"
class=
"HP_zhifu"
@
click=
"gotoPay('HotelHome')"
value=
"返回首页"
/>
-->
</div>
</div>
<div
class=
"PayBefore_Right"
>
<img
src=
"../../assets/img/hotel/paySuccess.png"
alt=
""
/>
</div>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
//应付总额
TotalPrice
:
0
,
//订单号
bookingNumber
:
0
,
msgList
:
''
,
isShowBtn
:
true
,
};
},
created
()
{
if
(
sessionStorage
.
getItem
(
"FreePay"
)){
this
.
msgList
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"FreePay"
));
this
.
TotalPrice
=
this
.
msgList
.
total_fee
;
this
.
bookingNumber
=
this
.
msgList
.
orderId
;
}
},
methods
:
{
gotoPay
(
path
){
this
.
$router
.
push
({
path
:
path
})
}
}
};
</
script
>
<
style
>
</
style
>
src/components/FreeTravel/OrderConfirmation.vue
View file @
e9f7f387
This diff is collapsed.
Click to expand it.
src/components/mall/FreeCalendar.vue
View file @
e9f7f387
...
...
@@ -126,9 +126,13 @@ export default {
},
methods
:{
selectDate
(
item
){
console
.
log
(
item
)
let
a
=
false
;
a
=
moment
(
this
.
today
).
isBefore
(
moment
(
item
.
date_str
));
if
(
item
.
date_str
==
this
.
today
){
a
=
true
;
}
console
.
log
(
'a'
,
a
)
if
(
item
.
pkg_no
&&
item
.
pkg_no
!=
""
&&
a
){
this
.
$emit
(
'SelectChild'
,
item
);
}
...
...
src/router.js
View file @
e9f7f387
...
...
@@ -709,6 +709,24 @@ export default new Router({
title
:
"自由行-订单确认"
}
},
{
path
:
"/FreePayBefore"
,
name
:
"FreePayBefore"
,
component
:
resolve
=>
require
([
"@/components/FreeTravel/FreePayBefore.vue"
],
resolve
),
meta
:
{
title
:
"自由行-订单确认"
}
},
{
path
:
"/FreePay"
,
name
:
"FreePay"
,
component
:
resolve
=>
require
([
"@/components/FreeTravel/FreePay.vue"
],
resolve
),
meta
:
{
title
:
"自由行-支付"
}
},
]
},
{
...
...
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