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
76ea0478
Commit
76ea0478
authored
Jul 29, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改价格
parent
48e6d61b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
7 deletions
+38
-7
HotelDetail.vue
src/components/Hotel/HotelDetail.vue
+11
-2
HotelList.vue
src/components/Hotel/HotelList.vue
+8
-1
HotelSure.vue
src/components/Hotel/HotelSure.vue
+19
-4
No files found.
src/components/Hotel/HotelDetail.vue
View file @
76ea0478
...
@@ -472,7 +472,7 @@
...
@@ -472,7 +472,7 @@
{{
hotelSummary
.
address
}}
{{
hotelSummary
.
address
}}
</div>
</div>
<div
class=
"HD_Top_Price"
>
<div
class=
"HD_Top_Price"
>
<span
class=
"HD_Top_Pinfo"
><i>
¥
</i>
{{
price
}}
</span>
<span
class=
"HD_Top_Pinfo"
><i>
¥
</i>
{{
getPrice
(
price
)
}}
</span>
<span
class=
"HD_Top_qi"
>
/起
</span>
<span
class=
"HD_Top_qi"
>
/起
</span>
<!--
<span>
另付税:¥177
</span>
-->
<!--
<span>
另付税:¥177
</span>
-->
<input
type=
"button"
class=
"HD_SureBtn"
style=
"display:none;"
value=
"立即预订"
/>
<input
type=
"button"
class=
"HD_SureBtn"
style=
"display:none;"
value=
"立即预订"
/>
...
@@ -662,7 +662,9 @@
...
@@ -662,7 +662,9 @@
<div>
最迟退房时间
{{
subItem
[
'finalCheck-outTime'
]
}}
</div>
<div>
最迟退房时间
{{
subItem
[
'finalCheck-outTime'
]
}}
</div>
</li>
</li>
<li
class=
"HD_Lingprice"
>
<li
class=
"HD_Lingprice"
>
<div><i>
¥
</i><span>
{{
subItem
.
chargeableRateInfoPerPersonForANightBySetCurrency
}}
</span></div>
<div><i>
¥
</i>
<span>
{{
getPrice
(
subItem
.
chargeableRateInfoPerPersonForANightBySetCurrency
)
}}
</span>
</div>
</li>
</li>
<li>
<li>
<input
type=
"button"
style=
"right:20px;"
@
click=
"bookHotel(subItem.roomOptionCd)"
class=
"HD_PsureBtn"
value=
"预订"
/>
<input
type=
"button"
style=
"right:20px;"
@
click=
"bookHotel(subItem.roomOptionCd)"
class=
"HD_PsureBtn"
value=
"预订"
/>
...
@@ -830,6 +832,8 @@ export default {
...
@@ -830,6 +832,8 @@ export default {
bathRoom
:[],
bathRoom
:[],
//地图坐标
//地图坐标
travelLngLat
:[],
travelLngLat
:[],
//除以
JapanIncrease
:
0
,
pickerOptions0
:
{
pickerOptions0
:
{
disabledDate
(
time
)
{
disabledDate
(
time
)
{
let
today_after7
=
moment
().
add
(
8
,
'days'
).
format
(
'YYYY-MM-DD'
);
let
today_after7
=
moment
().
add
(
8
,
'days'
).
format
(
'YYYY-MM-DD'
);
...
@@ -1165,6 +1169,7 @@ export default {
...
@@ -1165,6 +1169,7 @@ export default {
x
.
roomOptions
=
arr
;
x
.
roomOptions
=
arr
;
}
}
})
})
this
.
JapanIncrease
=
res
.
data
.
data
.
JapanIncrease
;
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
}
}
...
@@ -1218,6 +1223,10 @@ export default {
...
@@ -1218,6 +1223,10 @@ export default {
}
}
}
}
},
},
//获取价格
getPrice
(
price
){
return
Math
.
ceil
(
price
/
this
.
JapanIncrease
);
},
//点击预订传递参数
//点击预订传递参数
bookHotel
(
roomOptionCd
){
bookHotel
(
roomOptionCd
){
if
(
sessionStorage
.
getItem
(
'OpenB2BCode'
)
==
null
&&
!
localStorage
.
userInfo
){
if
(
sessionStorage
.
getItem
(
'OpenB2BCode'
)
==
null
&&
!
localStorage
.
userInfo
){
...
...
src/components/Hotel/HotelList.vue
View file @
76ea0478
...
@@ -606,7 +606,7 @@
...
@@ -606,7 +606,7 @@
地址:
{{
item
.
address
}}
地址:
{{
item
.
address
}}
</div>
</div>
<div
class=
"HL_ListPrice"
>
<div
class=
"HL_ListPrice"
>
<span><label>
¥
</label>
{{
item
.
lowrateBySetCurrency
}}
</span>
起
<span><label>
¥
</label>
{{
getPrice
(
item
.
lowrateBySetCurrency
)
}}
</span>
起
</div>
</div>
<input
type=
"button"
class=
"HL_ListBtn"
@
click=
"goHotelDetail(item)"
value=
"查看详情"
/>
<input
type=
"button"
class=
"HL_ListBtn"
@
click=
"goHotelDetail(item)"
value=
"查看详情"
/>
</div>
</div>
...
@@ -675,6 +675,8 @@ export default {
...
@@ -675,6 +675,8 @@ export default {
//最大星星
//最大星星
reviewRatingUpperLimits
:
''
,
reviewRatingUpperLimits
:
''
,
},
},
//除以
JapanIncrease
:
0
,
isShowPop
:
false
,
isShowPop
:
false
,
roomList
:[],
roomList
:[],
room
:
1
,
room
:
1
,
...
@@ -1052,6 +1054,7 @@ export default {
...
@@ -1052,6 +1054,7 @@ export default {
})
})
this
.
TotalPage
=
parseInt
(
res
.
data
.
data
.
numberOfResultMatched
);
this
.
TotalPage
=
parseInt
(
res
.
data
.
data
.
numberOfResultMatched
);
this
.
PassMsg
.
groupBookingFlg
=
res
.
data
.
data
.
groupBookingFlg
;
this
.
PassMsg
.
groupBookingFlg
=
res
.
data
.
data
.
groupBookingFlg
;
this
.
JapanIncrease
=
res
.
data
.
data
.
JapanIncrease
;
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
}
}
...
@@ -1101,6 +1104,10 @@ export default {
...
@@ -1101,6 +1104,10 @@ export default {
newArr
.
push
(
'退房11点以后'
);
newArr
.
push
(
'退房11点以后'
);
}
}
return
newArr
;
return
newArr
;
},
//获取价格
getPrice
(
price
){
return
Math
.
ceil
(
price
/
this
.
JapanIncrease
);
}
}
}
}
};
};
...
...
src/components/Hotel/HotelSure.vue
View file @
76ea0478
...
@@ -632,7 +632,8 @@ export default {
...
@@ -632,7 +632,8 @@ export default {
CustomerId
:
0
,
CustomerId
:
0
,
HotelName
:
''
,
HotelName
:
''
,
HotelPic
:
''
,
HotelPic
:
''
,
EmployeeIdStr
:
''
EmployeeIdStr
:
''
,
OldTotalPrice
:
0
},
},
//验证规则
//验证规则
rules
:
{
rules
:
{
...
@@ -733,7 +734,7 @@ export default {
...
@@ -733,7 +734,7 @@ export default {
TotalChildCount
:
0
,
TotalChildCount
:
0
,
//选了的儿童数
//选了的儿童数
chekedChildCount
:
0
,
chekedChildCount
:
0
,
isBaoChild
:
false
isBaoChild
:
false
,
};
};
},
},
mounted
()
{
mounted
()
{
...
@@ -779,7 +780,6 @@ export default {
...
@@ -779,7 +780,6 @@ 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
;
this
.
TotalChildCount
=
0
;
let
rateGrouoLen
=
0
;
let
rateGrouoLen
=
0
;
this
.
dataList
.
roomGroup
.
forEach
(
x
=>
{
this
.
dataList
.
roomGroup
.
forEach
(
x
=>
{
...
@@ -800,6 +800,11 @@ export default {
...
@@ -800,6 +800,11 @@ export default {
let
AdultJapanCount
=
0
;
let
AdultJapanCount
=
0
;
let
childJapanCount
=
0
;
let
childJapanCount
=
0
;
//原始成人
let
oldAount
=
0
;
let
childAount
=
0
;
let
oldAuditPrice
=
0
;
let
oldChildPrice
=
0
;
this
.
TotalChildCount
+=
x
.
roomChildCount
*
x
.
rateGroup
.
length
;
this
.
TotalChildCount
+=
x
.
roomChildCount
*
x
.
rateGroup
.
length
;
rateGrouoLen
+=
x
.
rateGroup
.
length
;
rateGrouoLen
+=
x
.
rateGroup
.
length
;
...
@@ -809,11 +814,18 @@ export default {
...
@@ -809,11 +814,18 @@ export default {
}
}
x
.
rateGroup
.
forEach
(
z
=>
{
x
.
rateGroup
.
forEach
(
z
=>
{
if
(
z
.
perAdultRateBySetCurrency
){
if
(
z
.
perAdultRateBySetCurrency
){
z
.
oldAuditPrice
=
z
.
perAdultRateBySetCurrency
;
z
.
oldchildPrice
=
z
.
perChildRateBySetCurrency
;
z
.
perAdultRateBySetCurrency
=
Math
.
ceil
(
z
.
perAdultRateBySetCurrency
/
this
.
dataList
.
JapanIncrease
);
z
.
perChildRateBySetCurrency
=
Math
.
ceil
(
z
.
perChildRateBySetCurrency
/
this
.
dataList
.
JapanIncrease
);
if
(
x
.
roomAdultCount
>
0
){
if
(
x
.
roomAdultCount
>
0
){
AdultTotalPrice
+=
parseFloat
(
z
.
perAdultRateBySetCurrency
);
AdultTotalPrice
+=
parseFloat
(
z
.
perAdultRateBySetCurrency
);
oldAuditPrice
+=
parseFloat
(
z
.
oldAuditPrice
);
}
}
if
(
x
.
roomChildCount
>
0
){
if
(
x
.
roomChildCount
>
0
){
childToTalPrice
+=
parseFloat
(
z
.
perChildRateBySetCurrency
);
childToTalPrice
+=
parseFloat
(
z
.
perChildRateBySetCurrency
);
oldChildPrice
+=
parseFloat
(
z
.
oldchildPrice
);
}
}
}
}
if
(
z
.
perAdultRate
){
if
(
z
.
perAdultRate
){
...
@@ -825,8 +837,11 @@ export default {
...
@@ -825,8 +837,11 @@ export default {
// childCount+=childToTalPrice*x.roomChildCount;
// childCount+=childToTalPrice*x.roomChildCount;
AdultCount
+=
AdultTotalPrice
;
AdultCount
+=
AdultTotalPrice
;
childCount
+=
childToTalPrice
;
childCount
+=
childToTalPrice
;
this
.
sureMsg
.
totalChargeableRateInfo
+=
parseFloat
(
AdultCount
+
childCount
);
oldAount
+=
oldAuditPrice
;
childAount
+=
childAount
;
this
.
sureMsg
.
totalChargeableRateInfo
+=
parseFloat
(
AdultCount
+
childCount
);
this
.
sureMsg
.
OldTotalPrice
+=
parseFloat
(
oldAount
+
childAount
);
// AdultJapanCount+=AdultJapanPrice*x.roomAdultCount;
// AdultJapanCount+=AdultJapanPrice*x.roomAdultCount;
// childJapanCount+=ChildJapanPrice*x.roomChildCount;
// childJapanCount+=ChildJapanPrice*x.roomChildCount;
...
...
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