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
5b604e51
Commit
5b604e51
authored
Sep 05, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
9ad715f8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
5 deletions
+23
-5
HotelDetail.vue
src/components/Hotel/HotelDetail.vue
+13
-1
HotelList.vue
src/components/Hotel/HotelList.vue
+8
-2
search.vue
src/components/mall/search.vue
+2
-2
No files found.
src/components/Hotel/HotelDetail.vue
View file @
5b604e51
...
...
@@ -665,7 +665,10 @@
</li>
<li
class=
"HD_Lingprice"
>
<div><i>
¥
</i>
<span>
{{
getPrice
(
subItem
.
chargeableRateInfoPerPersonForANightBySetCurrency
)
}}
</span>
<span>
{{
getPrice2
(
subItem
.
chargeableRateInfoPerPersonForANightBySetCurrency
)
}}
<span
style=
"font-size:12px;color:#888888"
>
/人均
</span>
</span>
<!--
<span>
{{
getPrice
(
subItem
.
chargeableRateInfoPerPersonForANightBySetCurrency
)
}}
</span>
-->
</div>
</li>
<li>
...
...
@@ -1304,6 +1307,12 @@ export default {
this
.
auditNum
+=
x
.
numberOfAdults
;
this
.
childNum
+=
x
.
numberOfChildren
;
});
if
(
this
.
auditNum
==
null
||
this
.
auditNum
==
undefined
){
this
.
auditNum
=
1
}
if
(
this
.
childNum
==
null
||
this
.
childNum
==
undefined
){
this
.
childNum
=
1
}
},
//获取餐
getMealType
(
meals
)
{
...
...
@@ -1329,6 +1338,9 @@ export default {
//天数
return
Math
.
ceil
(
price
/
this
.
JapanIncrease
)
*
(
this
.
auditNum
+
this
.
childNum
)
*
this
.
DateDiff
(
this
.
SimilarMsg
.
arrivalDate
,
this
.
SimilarMsg
.
departureDate
);
},
getPrice2
(
price
){
return
Math
.
ceil
(
price
/
this
.
JapanIncrease
)
},
//获取相差天数
DateDiff
(
sDate1
,
sDate2
)
{
//sDate1和sDate2是2017-09-25格式
var
aDate
,
oDate1
,
oDate2
,
iDays
;
...
...
src/components/Hotel/HotelList.vue
View file @
5b604e51
...
...
@@ -611,7 +611,7 @@
地址:
{{
item
.
address
}}
</div>
<div
class=
"HL_ListPrice"
>
<span><label>
¥
</label>
{{
getPrice
(
item
.
lowrate
Total
BySetCurrency
)
}}
</span>
起
<span><label>
¥
</label>
{{
getPrice
(
item
.
lowrateBySetCurrency
)
}}
</span>
起
</div>
<input
type=
"button"
class=
"HL_ListBtn"
@
click=
"goHotelDetail(item,'HotelDetail')"
value=
"查看详情"
/>
</div>
...
...
@@ -968,6 +968,12 @@ export default {
this
.
auditNum
+=
x
.
numberOfAdults
;
this
.
childNum
+=
x
.
numberOfChildren
;
})
if
(
this
.
auditNum
==
null
||
this
.
auditNum
==
undefined
){
this
.
auditNum
=
1
}
if
(
this
.
childNum
==
null
||
this
.
childNum
==
undefined
){
this
.
childNum
=
1
}
},
//点击展开关闭
setOpenMore
(){
...
...
@@ -1098,7 +1104,7 @@ export default {
this
.
PassMsg
.
arrivalDate
=
this
.
msg
.
arrivalDate
;
this
.
PassMsg
.
departureDate
=
this
.
msg
.
departureDate
;
this
.
PassMsg
.
searchroomGroup
=
this
.
msg
.
searchroomGroup
;
this
.
PassMsg
.
lowrateBySetCurrency
=
this
.
getPrice
(
item
.
lowrate
Total
BySetCurrency
);
this
.
PassMsg
.
lowrateBySetCurrency
=
this
.
getPrice
(
item
.
lowrateBySetCurrency
);
this
.
PassMsg
.
room
=
this
.
room
this
.
PassMsg
.
auditNum
=
this
.
auditNum
;
...
...
src/components/mall/search.vue
View file @
5b604e51
...
...
@@ -305,8 +305,8 @@ export default {
startDate
=
`${y
}
-${m>9?m:'0'+m
}
-01`
endDate
=
`${y
}
-${m>9?m:'0'+m
}
-${new Date(y,m,0).getDate()
}
`
}
else
if
(
this
.
searchItem
[
5
]
!=
''
&&
this
.
searchItem
[
5
]
!=
'0'
)
{
startDate
=
`20${multData[0]
}
`
endDate
=
`20${multData[1]
}
`
startDate
=
`20${
this.
multData[0]
}
`
endDate
=
`20${
this.
multData[1]
}
`
}
if
(
this
.
minPrice
!=
''
){
minPrice
=
parseFloat
(
this
.
minPrice
)
...
...
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