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
04285479
Commit
04285479
authored
Jul 26, 2019
by
黄媛媛
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/huaguohao/athena
parents
1d83b885
cef2fe61
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
61 additions
and
23 deletions
+61
-23
HotelDetail.vue
src/components/Hotel/HotelDetail.vue
+2
-1
HotelHome.vue
src/components/Hotel/HotelHome.vue
+1
-1
HotelList.vue
src/components/Hotel/HotelList.vue
+1
-1
HotelPayBefore.vue
src/components/Hotel/HotelPayBefore.vue
+1
-1
HotelSure.vue
src/components/Hotel/HotelSure.vue
+56
-19
No files found.
src/components/Hotel/HotelDetail.vue
View file @
04285479
...
@@ -851,6 +851,7 @@ export default {
...
@@ -851,6 +851,7 @@ export default {
this
.
SimilarMsg
.
departureDate
=
msgList
.
departureDate
;
this
.
SimilarMsg
.
departureDate
=
msgList
.
departureDate
;
this
.
SimilarMsg
.
searchroomGroup
=
msgList
.
searchroomGroup
;
this
.
SimilarMsg
.
searchroomGroup
=
msgList
.
searchroomGroup
;
this
.
room
=
msgList
.
room
;
this
.
room
=
msgList
.
room
;
this
.
auditNum
=
msgList
.
auditNum
;
this
.
getList
();
this
.
getList
();
this
.
getSimilar
();
this
.
getSimilar
();
}
}
...
@@ -1219,7 +1220,7 @@ export default {
...
@@ -1219,7 +1220,7 @@ export default {
},
},
//点击预订传递参数
//点击预订传递参数
bookHotel
(
roomOptionCd
){
bookHotel
(
roomOptionCd
){
if
(
!
localStorage
.
OpenB2BCode
&&
!
localStorage
.
userInfo
){
if
(
sessionStorage
.
getItem
(
'OpenB2BCode'
)
==
null
&&
!
localStorage
.
userInfo
){
return
this
.
Error
(
'请登录!'
)
return
this
.
Error
(
'请登录!'
)
}
}
...
...
src/components/Hotel/HotelHome.vue
View file @
04285479
...
@@ -339,7 +339,7 @@ export default {
...
@@ -339,7 +339,7 @@ export default {
if
(
url
.
indexOf
(
"?"
)
!=
-
1
)
{
if
(
url
.
indexOf
(
"?"
)
!=
-
1
)
{
let
str
=
url
.
split
(
"?"
)[
1
];
let
str
=
url
.
split
(
"?"
)[
1
];
let
uid
=
str
.
split
(
"uid="
)[
1
];
let
uid
=
str
.
split
(
"uid="
)[
1
];
local
Storage
.
setItem
(
"OpenB2BCode"
,
decodeURIComponent
(
uid
));
session
Storage
.
setItem
(
"OpenB2BCode"
,
decodeURIComponent
(
uid
));
}
}
},
},
methods
:
{
methods
:
{
...
...
src/components/Hotel/HotelList.vue
View file @
04285479
...
@@ -1078,7 +1078,7 @@ export default {
...
@@ -1078,7 +1078,7 @@ export default {
this
.
PassMsg
.
lowrateBySetCurrency
=
item
.
lowrateBySetCurrency
;
this
.
PassMsg
.
lowrateBySetCurrency
=
item
.
lowrateBySetCurrency
;
this
.
PassMsg
.
room
=
this
.
room
this
.
PassMsg
.
room
=
this
.
room
this
.
PassMsg
.
auditNum
=
this
.
auditNum
;
sessionStorage
.
setItem
(
"HotelDetail"
,
JSON
.
stringify
(
this
.
PassMsg
));
sessionStorage
.
setItem
(
"HotelDetail"
,
JSON
.
stringify
(
this
.
PassMsg
));
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"/HotelDetail"
path
:
"/HotelDetail"
...
...
src/components/Hotel/HotelPayBefore.vue
View file @
04285479
...
@@ -177,7 +177,7 @@ export default {
...
@@ -177,7 +177,7 @@ export default {
this
.
TotalPrice
=
this
.
msgList
.
bookMoney
;
this
.
TotalPrice
=
this
.
msgList
.
bookMoney
;
this
.
bookingNumber
=
this
.
msgList
.
orderId
;
this
.
bookingNumber
=
this
.
msgList
.
orderId
;
}
}
if
(
localStorage
.
OpenB2BCode
){
if
(
sessionStorage
.
getItem
(
'OpenB2BCode'
)
){
this
.
isShowBtn
=
false
;
this
.
isShowBtn
=
false
;
}
}
},
},
...
...
src/components/Hotel/HotelSure.vue
View file @
04285479
...
@@ -308,6 +308,16 @@
...
@@ -308,6 +308,16 @@
.HS_FFEI
:last-child
{
.HS_FFEI
:last-child
{
visibility
:
hidden
;
visibility
:
hidden
;
}
}
.cantBaoChild
{
color
:
red
;
}
.disBtn
{
background-color
:
gray
;
cursor
:
default
;
}
.disBtn
:hover
{
opacity
:
1
;
}
</
style
>
</
style
>
...
@@ -353,6 +363,7 @@
...
@@ -353,6 +363,7 @@
<li
class=
"HS2_title"
>
入住人数
</li>
<li
class=
"HS2_title"
>
入住人数
</li>
<li>
成人 {{auditNum}}人
</li>
<li>
成人 {{auditNum}}人
</li>
<li>
儿童 {{childNum}}人
</li>
<li>
儿童 {{childNum}}人
</li>
<li
v-if=
"isBaoChild"
><span
class=
"cantBaoChild"
>
不能报入儿童
</span></li>
</ul>
</ul>
</div>
</div>
<div
class=
"HS_div2One"
>
<div
class=
"HS_div2One"
>
...
@@ -494,7 +505,7 @@
...
@@ -494,7 +505,7 @@
</ul>
</ul>
</div>
</div>
</div>
</div>
<input
type=
"button"
class=
"HD_payBtn"
@
click=
"submitForm('sureMsg')"
value=
"下单"
/>
<input
type=
"button"
class=
"HD_payBtn"
:class=
"{'disBtn':isBaoChild}"
@
click=
"submitForm('sureMsg')"
value=
"下单"
/>
</div>
</div>
<div
class=
"HS_RightList"
>
<div
class=
"HS_RightList"
>
<div
class=
"HS_RightTopImg"
>
<div
class=
"HS_RightTopImg"
>
...
@@ -718,6 +729,11 @@ export default {
...
@@ -718,6 +729,11 @@ export default {
//传递的图片
//传递的图片
HotelImgUrl
:
''
,
HotelImgUrl
:
''
,
dataList
:[],
dataList
:[],
//孩子能否报入
TotalChildCount
:
0
,
//选了的儿童数
chekedChildCount
:
0
,
isBaoChild
:
false
};
};
},
},
mounted
()
{
mounted
()
{
...
@@ -763,6 +779,9 @@ export default {
...
@@ -763,6 +779,9 @@ export default {
}
}
this
.
sureMsg
.
totalChargeableRateInfo
=
0
;
this
.
sureMsg
.
totalChargeableRateInfo
=
0
;
this
.
sureMsg
.
totalPriceJapanese
=
0
;
this
.
sureMsg
.
totalPriceJapanese
=
0
;
console
.
log
(
this
.
dataList
,
'datalistss'
);
this
.
TotalChildCount
=
0
;
let
rateGrouoLen
=
0
;
this
.
dataList
.
roomGroup
.
forEach
(
x
=>
{
this
.
dataList
.
roomGroup
.
forEach
(
x
=>
{
if
(
Object
.
prototype
.
toString
.
call
(
x
.
rateGroup
)
==
'[object Object]'
){
if
(
Object
.
prototype
.
toString
.
call
(
x
.
rateGroup
)
==
'[object Object]'
){
let
arr
=
[];
let
arr
=
[];
...
@@ -780,27 +799,43 @@ export default {
...
@@ -780,27 +799,43 @@ export default {
let
ChildJapanPrice
=
0
;
let
ChildJapanPrice
=
0
;
let
AdultJapanCount
=
0
;
let
AdultJapanCount
=
0
;
let
childJapanCount
=
0
;
let
childJapanCount
=
0
;
this
.
TotalChildCount
+=
x
.
roomChildCount
*
x
.
rateGroup
.
length
;
rateGrouoLen
+=
x
.
rateGroup
.
length
;
this
.
chekedChildCount
=
this
.
childNum
*
rateGrouoLen
;
if
(
this
.
TotalChildCount
<
this
.
chekedChildCount
){
this
.
isBaoChild
=
true
;
}
x
.
rateGroup
.
forEach
(
z
=>
{
x
.
rateGroup
.
forEach
(
z
=>
{
if
(
z
.
perAdultRateBySetCurrency
){
if
(
z
.
perAdultRateBySetCurrency
){
AdultTotalPrice
+=
parseFloat
(
z
.
perAdultRateBySetCurrency
);
if
(
x
.
roomAdultCount
>
0
){
childToTalPrice
+=
parseFloat
(
z
.
perChildRateBySetCurrency
);
AdultTotalPrice
+=
parseFloat
(
z
.
perAdultRateBySetCurrency
);
}
if
(
x
.
roomChildCount
>
0
){
childToTalPrice
+=
parseFloat
(
z
.
perChildRateBySetCurrency
);
}
}
}
if
(
z
.
perAdultRate
){
if
(
z
.
perAdultRate
){
AdultJapanPrice
+=
parseFloat
(
z
.
perAdultRate
);
AdultJapanPrice
+=
parseFloat
(
z
.
perAdultRate
);
ChildJapanPrice
+=
parseFloat
(
z
.
perChildRate
);
ChildJapanPrice
+=
parseFloat
(
z
.
perChildRate
);
}
}
})
})
AdultCount
+=
AdultTotalPrice
*
x
.
roomAdultCount
;
// AdultCount+=AdultTotalPrice*x.roomAdultCount;
childCount
+=
childToTalPrice
*
x
.
roomChildCount
;
// childCount+=childToTalPrice*x.roomChildCount;
AdultCount
+=
AdultTotalPrice
;
childCount
+=
childToTalPrice
;
this
.
sureMsg
.
totalChargeableRateInfo
+=
parseFloat
(
AdultCount
+
childCount
);
this
.
sureMsg
.
totalChargeableRateInfo
+=
parseFloat
(
AdultCount
+
childCount
);
AdultJapanCount
+=
AdultJapanPrice
*
x
.
roomAdultCount
;
// AdultJapanCount+=AdultJapanPrice*x.roomAdultCount;
childJapanCount
+=
ChildJapanPrice
*
x
.
roomChildCount
;
// childJapanCount+=ChildJapanPrice*x.roomChildCount;
AdultJapanCount
+=
AdultJapanPrice
;
childJapanCount
+=
ChildJapanPrice
;
this
.
sureMsg
.
totalPriceJapanese
+=
parseFloat
(
AdultJapanCount
+
childJapanCount
);
this
.
sureMsg
.
totalPriceJapanese
+=
parseFloat
(
AdultJapanCount
+
childJapanCount
);
})
})
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
}
}
...
@@ -867,29 +902,31 @@ export default {
...
@@ -867,29 +902,31 @@ export default {
//提交
//提交
submitForm
(
addMsg
)
{
submitForm
(
addMsg
)
{
//提交创建、修改表单
//提交创建、修改表单
this
.
$refs
[
addMsg
].
validate
(
valid
=>
{
if
(
!
this
.
isBaoChild
){
if
(
valid
)
{
this
.
$refs
[
addMsg
].
validate
(
valid
=>
{
this
.
BuyHoTel
();
if
(
valid
)
{
}
else
{
this
.
BuyHoTel
();
return
false
;
}
else
{
}
return
false
;
});
}
});
}
},
},
//点击下单
//点击下单
BuyHoTel
(){
BuyHoTel
(){
if
(
!
localStorage
.
OpenB2BCode
&&
!
localStorage
.
userInfo
){
if
(
sessionStorage
.
getItem
(
'OpenB2BCode'
)
==
null
&&
!
localStorage
.
userInfo
){
return
this
.
Error
(
'请登录!'
)
return
this
.
Error
(
'请登录!'
)
}
}
//判断是否为登录状态
//判断是否为登录状态
if
(
localStorage
.
userInfo
){
if
(
localStorage
.
userInfo
){
local
Storage
.
removeItem
(
"OpenB2BCode"
);
session
Storage
.
removeItem
(
"OpenB2BCode"
);
this
.
sureMsg
.
EmployeeIdStr
=
''
;
this
.
sureMsg
.
EmployeeIdStr
=
''
;
let
userInfo
=
this
.
getLocalStorage
();
let
userInfo
=
this
.
getLocalStorage
();
this
.
sureMsg
.
CustomerId
=
userInfo
.
customerId
;
this
.
sureMsg
.
CustomerId
=
userInfo
.
customerId
;
}
}
//判断是否跳过来的
//判断是否跳过来的
if
(
localStorage
.
OpenB2BCode
){
if
(
sessionStorage
.
getItem
(
'OpenB2BCode'
)
){
this
.
sureMsg
.
EmployeeIdStr
=
local
Storage
.
getItem
(
'OpenB2BCode'
);
this
.
sureMsg
.
EmployeeIdStr
=
session
Storage
.
getItem
(
'OpenB2BCode'
);
}
}
this
.
sureMsg
.
hotelId
=
this
.
msg
.
hotelId
;
this
.
sureMsg
.
hotelId
=
this
.
msg
.
hotelId
;
...
...
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