Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
zhengke
jz_Travel
Commits
f8c4bdaf
Commit
f8c4bdaf
authored
Apr 29, 2025
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
c0b4fe08
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1094 additions
and
1055 deletions
+1094
-1055
hotelRoom.vue
pages/hotel/components/hotelRoom.vue
+22
-13
order.vue
pages/hotel/order.vue
+29
-33
orderInfor.vue
pages/hotel/orderInfor.vue
+979
-1004
orderdetails.vue
pages/hotel/orderdetails.vue
+64
-5
No files found.
pages/hotel/components/hotelRoom.vue
View file @
f8c4bdaf
...
@@ -52,26 +52,21 @@
...
@@ -52,26 +52,21 @@
<view
class=
"column"
>
<view
class=
"column"
>
<view
class=
"hotelDetailRPrice"
>
<view
class=
"hotelDetailRPrice"
>
{{subItem.Currency }}
{{subItem.Currency }}
<text>
<text
v-if=
"subItem&&subItem.PriceList&&subItem.PriceList.length>0"
>
{{subItem.
Total
Price}}
{{subItem.
PriceList[0].
Price}}
</text>
起/晚
</text>
起/晚
/间
</view>
</view>
<view
class=
"hotelDetailRPriceT"
>
{{dayObj.day}}晚总价
<view
class=
"hotelDetailRPriceT"
>
{{dayObj.day}}晚总价
<text>
<text>
{{subItem.Currency}}{{ (subItem.TotalPrice
*dayObj.day).toFixed(2) }}
{{subItem.Currency}}{{ (subItem.TotalPrice
).toFixed(2) }}起
</text>
</text>
</view>
</view>
</view>
</view>
<!--:class="[!index?'active':'']"-->
<view
class=
"column hotelDetailRPriceBook"
>
<view
class=
"column hotelDetailRPriceBook"
>
<!--<text v-if="!index" class="hotelDetailMinXiRS">剩2间</text>-->
<view
class=
"hotelDetailMinXiRB"
@
click=
"setOrder(subItem)"
>
<view
class=
"hotelDetailMinXiRB"
@
click=
"setOrder(subItem)"
>
订
订
</view>
</view>
</view>
</view>
<!-- <view class="hotelDetailRPriceBook" @click="setOrder(subItem)">
订
</view> -->
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -111,13 +106,13 @@
...
@@ -111,13 +106,13 @@
<view
class=
"hotelDetailMinXiRF"
>
</view>
<view
class=
"hotelDetailMinXiRF"
>
</view>
<view
class=
"hotelDetailMinXiRP"
>
<view
class=
"hotelDetailMinXiRP"
>
{{subItem.Currency }}
{{subItem.Currency }}
<text>
<text
v-if=
"subItem&&subItem.PriceList&&subItem.PriceList.length>0"
>
{{subItem.
Total
Price}}
{{subItem.
PriceList[0].
Price}}
</text>
</text>
起/晚/间
</view>
</view>
<view
class=
"hotelDetailMinXiRT"
>
{{dayObj.day}}晚总价
<view
class=
"hotelDetailMinXiRT"
>
{{dayObj.day}}晚总价
<text>
<text>
{{subItem.Currency}}{{ (subItem.TotalPrice
*dayObj.day).toFixed(2) }}
{{subItem.Currency}}{{ (subItem.TotalPrice
).toFixed(2) }}起
</text>
</text>
</view>
</view>
</view>
</view>
...
@@ -405,6 +400,9 @@
...
@@ -405,6 +400,9 @@
hotelid
:
this
.
HotelInfo
.
hotelid
,
hotelid
:
this
.
HotelInfo
.
hotelid
,
name
:
this
.
HotelInfo
.
name
,
name
:
this
.
HotelInfo
.
name
,
images
:
[],
images
:
[],
address
:
""
,
destination
:
""
,
country
:
""
,
}
}
if
(
this
.
HotelInfo
)
{
if
(
this
.
HotelInfo
)
{
if
(
this
.
HotelInfo
.
images
&&
this
.
HotelInfo
.
images
.
length
>
0
)
{
if
(
this
.
HotelInfo
.
images
&&
this
.
HotelInfo
.
images
.
length
>
0
)
{
...
@@ -412,6 +410,17 @@
...
@@ -412,6 +410,17 @@
Path
:
this
.
HotelInfo
.
images
[
0
].
url
Path
:
this
.
HotelInfo
.
images
[
0
].
url
});
});
}
}
if
(
this
.
HotelInfo
.
location
)
{
if
(
this
.
HotelInfo
.
location
.
address
)
{
pHotel
.
address
=
encodeURIComponent
(
this
.
HotelInfo
.
location
.
address
);
}
if
(
this
.
HotelInfo
.
location
.
country
&&
this
.
HotelInfo
.
location
.
country
.
name
)
{
pHotel
.
country
=
this
.
HotelInfo
.
location
.
country
.
name
;
}
if
(
this
.
HotelInfo
.
location
.
destination
&&
this
.
HotelInfo
.
location
.
destination
.
name
)
{
pHotel
.
destination
=
this
.
HotelInfo
.
location
.
destination
.
name
;
}
}
}
}
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/hotel/order?searchObj=
${
JSON
.
stringify
(
this
.
searchObj
)}
&HotelInfo=
${
JSON
.
stringify
(
pHotel
)}
&RoomInfo=
${
JSON
.
stringify
(
subItem
)}
&CreateBy=
${
createBy
}
`
,
url
:
`/pages/hotel/order?searchObj=
${
JSON
.
stringify
(
this
.
searchObj
)}
&HotelInfo=
${
JSON
.
stringify
(
pHotel
)}
&RoomInfo=
${
JSON
.
stringify
(
subItem
)}
&CreateBy=
${
createBy
}
`
,
...
...
pages/hotel/order.vue
View file @
f8c4bdaf
...
@@ -100,8 +100,8 @@
...
@@ -100,8 +100,8 @@
联系姓名
联系姓名
<
/view
>
<
/view
>
<
view
class
=
"val row"
>
<
view
class
=
"val row"
>
<
input
type
=
"text"
v
-
model
=
"orderMsg.
Sur
Name"
placeholder
=
"请输入姓"
/>
<
input
type
=
"text"
v
-
model
=
"orderMsg.
guestLast
Name"
placeholder
=
"请输入姓"
/>
<
input
type
=
"text"
v
-
model
=
"orderMsg.Name"
placeholder
=
"请输入名"
/>
<
input
type
=
"text"
v
-
model
=
"orderMsg.
guestFirst
Name"
placeholder
=
"请输入名"
/>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
view
class
=
"form-items"
>
<
view
class
=
"form-items"
>
...
@@ -146,7 +146,6 @@
...
@@ -146,7 +146,6 @@
<
text
class
=
"content"
style
=
"color:grey"
v
-
else
-
if
=
"couponList.length==0"
>
暂无优惠券
<
/text
>
<
text
class
=
"content"
style
=
"color:grey"
v
-
else
-
if
=
"couponList.length==0"
>
暂无优惠券
<
/text
>
<
text
class
=
"content"
v
-
else
<
text
class
=
"content"
v
-
else
:
style
=
"{ color: mainColor
}
"
>
已优惠
{{
currentCoupon
.
discountMoney
}}
元
<
/text
>
:
style
=
"{ color: mainColor
}
"
>
已优惠
{{
currentCoupon
.
discountMoney
}}
元
<
/text
>
<!--
<
u
-
icon
name
=
"ellipsis"
size
=
"36"
v
-
if
=
"couponList.length > 0"
><
/u-icon> --
>
<
/text
>
<
/text
>
<
u
-
icon
name
=
"arrow"
:
size
=
"32"
color
=
"#111"
v
-
if
=
"couponList.length>0"
><
/u-icon
>
<
u
-
icon
name
=
"arrow"
:
size
=
"32"
color
=
"#111"
v
-
if
=
"couponList.length>0"
><
/u-icon
>
<
/view
>
<
/view
>
...
@@ -166,7 +165,7 @@
...
@@ -166,7 +165,7 @@
<
text
style
=
"margin-right: 5rpx;"
>
{{
orderMsg
.
RoomCount
}}
间房
<
/text
>
<
text
style
=
"margin-right: 5rpx;"
>
{{
orderMsg
.
RoomCount
}}
间房
<
/text
>
<
text
style
=
"margin-right: 5rpx;"
>
{{
dayObj
.
day
}}
晚
<
/text
>
<
text
style
=
"margin-right: 5rpx;"
>
{{
dayObj
.
day
}}
晚
<
/text
>
<
text
class
=
"red"
>
<
text
class
=
"red"
>
{{
RoomInfo
.
Currency
}}
{{(
orderMsg
.
TotalPrice
*
orderMsg
.
RoomCount
*
dayObj
.
day
).
toFixed
(
2
)
}}
{{
RoomInfo
.
Currency
}}
{{(
orderMsg
.
TotalPrice
).
toFixed
(
2
)
}}
<
/text
>
<
/text
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
...
@@ -176,16 +175,19 @@
...
@@ -176,16 +175,19 @@
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
template
v
-
if
=
"roomRateDetails&&roomRateDetails.RatePlanList&&roomRateDetails.RatePlanList.length>0"
>
<
template
v
-
for
=
"subItem in roomRateDetails.RatePlanList"
>
<
view
class
=
"flex f12 grey"
style
=
"margin-bottom: 40rpx"
>
<
view
class
=
"flex f12 grey"
style
=
"margin-bottom: 40rpx"
>
<
view
style
=
"flex: 1"
>
<
view
style
=
"flex: 1"
>
<
text
style
=
"margin-right: 30rpx"
>
房间
<
/text
>
<
text
style
=
"margin-right: 30rpx"
>
房间
{{
subItem
.
RoomOccupancy
.
RoomNum
}}
<
/text
>
<
/view
>
<
/view
>
<
view
style
=
"text-align: right"
>
<
view
style
=
"text-align: right"
>
{{
orderMsg
.
RoomCount
}}
间×
{{
dayObj
.
day
}}
晚×
{{
RoomInfo
.
Currency
}}
{{(
subItem
.
PriceList
.
length
*
subItem
.
PriceList
[
0
].
Price
).
toFixed
(
2
)
}}
<!--
{{
getPrice
(
orderMsg
.
TotalPrice
)
}}
-->
{{
orderMsg
.
TotalPrice
}}
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/template
>
<
/template
>
<
view
class
=
"flex f12 grey"
style
=
"margin-bottom: 40rpx"
<
view
class
=
"flex f12 grey"
style
=
"margin-bottom: 40rpx"
:
style
=
"{'color':mainColor+' !important'
}
"
v
-
if
=
"useCouponIds.length>0"
>
:
style
=
"{'color':mainColor+' !important'
}
"
v
-
if
=
"useCouponIds.length>0"
>
<
view
style
=
"flex: 1"
>
<
view
style
=
"flex: 1"
>
...
@@ -198,8 +200,7 @@
...
@@ -198,8 +200,7 @@
<
view
style
=
"flex: 1"
>
小计
<
/view
>
<
view
style
=
"flex: 1"
>
小计
<
/view
>
<
view
>
<
view
>
{{
RoomInfo
.
Currency
}}
{{
RoomInfo
.
Currency
}}
<!--
{{
(
getPrice
(
orderMsg
.
TotalPrice
)
*
orderMsg
.
RoomCount
)
-
currentCoupon
.
discountMoney
}}
-->
{{
(
orderMsg
.
TotalPrice
-
currentCoupon
.
discountMoney
).
toFixed
(
2
)
}}
{{
((
orderMsg
.
TotalPrice
*
orderMsg
.
RoomCount
*
dayObj
.
day
)
-
currentCoupon
.
discountMoney
).
toFixed
(
2
)
}}
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
...
@@ -242,9 +243,7 @@
...
@@ -242,9 +243,7 @@
<
view
class
=
"price"
>
<
view
class
=
"price"
>
<
text
class
=
"f11"
>
{{
RoomInfo
.
Currency
}}
<
/text
>
<
text
class
=
"f11"
>
{{
RoomInfo
.
Currency
}}
<
/text
>
<
text
>
<
text
>
<!--
{{
(
getPrice
(
orderMsg
.
TotalPrice
)
*
orderMsg
.
RoomCount
)
-
currentCoupon
.
discountMoney
}}
-->
{{
(
orderMsg
.
TotalPrice
-
currentCoupon
.
discountMoney
).
toFixed
(
2
)
}}
<!--
{{
(
orderMsg
.
TotalPrice
*
orderMsg
.
RoomCount
)
-
currentCoupon
.
discountMoney
}}
-->
{{
((
orderMsg
.
TotalPrice
*
orderMsg
.
RoomCount
*
dayObj
.
day
)
-
currentCoupon
.
discountMoney
).
toFixed
(
2
)
}}
<
/text
>
<
/text
>
<
/view
>
<
/view
>
<
view
class
=
"sum-detail"
>
共计
{{
orderMsg
.
RoomCount
}}
间房
<
/view
>
<
view
class
=
"sum-detail"
>
共计
{{
orderMsg
.
RoomCount
}}
间房
<
/view
>
...
@@ -259,9 +258,7 @@
...
@@ -259,9 +258,7 @@
<
u
-
toast
ref
=
"uToast"
/>
<
u
-
toast
ref
=
"uToast"
/>
<
u
-
picker
mode
=
"selector"
v
-
model
=
"showCountry"
:
default
-
selector
=
"[0]"
:
range
=
"countrys"
<
u
-
picker
mode
=
"selector"
v
-
model
=
"showCountry"
:
default
-
selector
=
"[0]"
:
range
=
"countrys"
@
confirm
=
'(e)=>{changeDown(e,CountryType)
}
'
range
-
key
=
"label"
@
input
=
"showCountry=false"
><
/u-picker
>
@
confirm
=
'(e)=>{changeDown(e,CountryType)
}
'
range
-
key
=
"label"
@
input
=
"showCountry=false"
><
/u-picker
>
<!--
<
coupon
v
-
if
=
"couponList.length > 0 && showCoupon"
:
price
=
"getPrice(orderMsg.TotalPrice)"
:
list
=
"couponList"
:
current
=
"useCouponIds"
@
close
=
"closeCouponHandler"
:
order
=
"orderMsg"
:
numberPeople
=
"searchObj.peoples"
>
<
/coupon>--
>
<
coupon
v
-
if
=
"couponList.length > 0 && showCoupon"
:
price
=
"orderMsg.TotalPrice"
:
list
=
"couponList"
<
coupon
v
-
if
=
"couponList.length > 0 && showCoupon"
:
price
=
"orderMsg.TotalPrice"
:
list
=
"couponList"
:
current
=
"useCouponIds"
@
close
=
"closeCouponHandler"
:
order
=
"orderMsg"
:
numberPeople
=
"searchObj.peoples"
>
:
current
=
"useCouponIds"
@
close
=
"closeCouponHandler"
:
order
=
"orderMsg"
:
numberPeople
=
"searchObj.peoples"
>
<
/coupon
>
<
/coupon
>
...
@@ -306,18 +303,18 @@
...
@@ -306,18 +303,18 @@
RatePlanID
:
""
,
RatePlanID
:
""
,
CheckOutDate
:
""
,
//离店时间
CheckOutDate
:
""
,
//离店时间
RoomCount
:
""
,
//房间数量
RoomCount
:
""
,
//房间数量
guestLastName
:
"
张
"
,
//英文姓
guestLastName
:
""
,
//英文姓
guestFirstName
:
"
无误
"
,
//英文名
guestFirstName
:
""
,
//英文名
guestAddress
:
""
,
guestAddress
:
""
,
guestPhoneNumber
:
"
13344445555
"
,
guestPhoneNumber
:
""
,
guestEmail
:
"
123@qq.com
"
,
//Email
guestEmail
:
""
,
//Email
BookingID
:
""
,
BookingID
:
""
,
HotelName
:
""
,
//酒店名称
HotelName
:
""
,
//酒店名称
HotelPic
:
""
,
//酒店封面
HotelPic
:
""
,
//酒店封面
GuestList
:
[],
GuestList
:
[],
TotalPrice
:
0
,
//总价
TotalPrice
:
0
,
//总价
CustomerPayMoney
:
0
,
CustomerPayMoney
:
0
,
DiscountMoney
:
0
,
//优惠
DiscountMoney
:
0
,
//优惠
金额
CouponAllotIds
:
''
,
//优惠券Id
CouponAllotIds
:
''
,
//优惠券Id
// #ifdef MP-DI
// #ifdef MP-DI
OrderSource
:
7
,
OrderSource
:
7
,
...
@@ -395,7 +392,7 @@
...
@@ -395,7 +392,7 @@
this
.
searchObj
=
JSON
.
parse
(
options
.
searchObj
)
this
.
searchObj
=
JSON
.
parse
(
options
.
searchObj
)
}
}
if
(
options
.
HotelInfo
)
{
if
(
options
.
HotelInfo
)
{
this
.
HotelInfo
=
JSON
.
parse
(
options
.
HotelInfo
)
this
.
HotelInfo
=
JSON
.
parse
(
options
.
HotelInfo
)
;
this
.
orderMsg
.
hotelId
=
this
.
HotelInfo
.
hotelid
;
this
.
orderMsg
.
hotelId
=
this
.
HotelInfo
.
hotelid
;
this
.
orderMsg
.
HotelName
=
this
.
HotelInfo
.
name
;
this
.
orderMsg
.
HotelName
=
this
.
HotelInfo
.
name
;
if
(
this
.
HotelInfo
.
images
&&
this
.
HotelInfo
.
images
.
length
>
0
)
{
if
(
this
.
HotelInfo
.
images
&&
this
.
HotelInfo
.
images
.
length
>
0
)
{
...
@@ -504,8 +501,8 @@
...
@@ -504,8 +501,8 @@
guestInfo
+=
`儿童${this.searchObj.childrenNumberZC
}
; `
;
guestInfo
+=
`儿童${this.searchObj.childrenNumberZC
}
; `
;
}
}
let
msg
=
{
let
msg
=
{
SurName
:
this
.
orderMsg
.
Sur
Name
,
SurName
:
this
.
orderMsg
.
guestLast
Name
,
Name
:
this
.
orderMsg
.
Name
,
Name
:
this
.
orderMsg
.
guestFirst
Name
,
ContactNumber
:
this
.
orderMsg
.
guestPhoneNumber
,
ContactNumber
:
this
.
orderMsg
.
guestPhoneNumber
,
Mailbox
:
this
.
orderMsg
.
guestEmail
,
Mailbox
:
this
.
orderMsg
.
guestEmail
,
GoodsId
:
this
.
HotelInfo
.
hotelid
,
GoodsId
:
this
.
HotelInfo
.
hotelid
,
...
@@ -543,7 +540,7 @@
...
@@ -543,7 +540,7 @@
}
}
//道旅酒店参数
//道旅酒店参数
let
that
=
this
;
let
that
=
this
;
var
CreateBy
=
0
//直客
//直客
// #ifdef MP-DI
// #ifdef MP-DI
if
(
this
.
customer
.
salesBaseInfo
&&
this
.
customer
.
salesBaseInfo
.
employeeId
)
{
if
(
this
.
customer
.
salesBaseInfo
&&
this
.
customer
.
salesBaseInfo
.
employeeId
)
{
...
@@ -863,7 +860,6 @@
...
@@ -863,7 +860,6 @@
}
}
return
msg
return
msg
}
,
}
,
}
}
}
}
<
/script
>
<
/script
>
...
...
pages/hotel/orderInfor.vue
View file @
f8c4bdaf
This diff is collapsed.
Click to expand it.
pages/hotel/orderdetails.vue
View file @
f8c4bdaf
...
@@ -130,7 +130,7 @@
...
@@ -130,7 +130,7 @@
<view
class=
"ResInforText row-sb-n"
>
<view
class=
"ResInforText row-sb-n"
>
<view
class=
"ResInforL Lwidth"
>
联系姓名
</view>
<view
class=
"ResInforL Lwidth"
>
联系姓名
</view>
<view
class=
"ResInforR"
>
<view
class=
"ResInforR"
>
{{ orderData.parmResultRoomInfo.
SurName }}{{ orderData.parmResultRoomInfo.
Name }}
{{ orderData.parmResultRoomInfo.
guestFirstName }}{{ orderData.parmResultRoomInfo.guestLast
Name }}
</view>
</view>
</view>
</view>
<view
class=
"ResInforText row-sb-n"
>
<view
class=
"ResInforText row-sb-n"
>
...
@@ -169,13 +169,13 @@
...
@@ -169,13 +169,13 @@
<view
class=
"form-items"
style=
"border-bottom: none;padding: 20rpx 0;"
>
<view
class=
"form-items"
style=
"border-bottom: none;padding: 20rpx 0;"
>
<view
class=
"label"
>
明细
</view>
<view
class=
"label"
>
明细
</view>
</view>
</view>
<view
class=
"flex f12 grey"
style=
"margin-bottom: 40rpx"
<view
v-if=
"RatePlanList&&RatePlanList.length>0"
class=
"flex f12 grey"
style=
"margin-bottom: 40rpx"
v-for=
"(item,index) in
orderData.parmResultRoomInfo.Guest
List"
:key=
"index"
>
v-for=
"(item,index) in
RatePlan
List"
:key=
"index"
>
<view
style=
"flex: 1"
>
<view
style=
"flex: 1"
>
<text
style=
"margin-right: 30rpx"
>
房间数
</text>
<text
style=
"margin-right: 30rpx"
>
房间数
{{index+1}}
</text>
</view>
</view>
<view
style=
"text-align: right"
>
<view
style=
"text-align: right"
>
1间({{ item.GuestInfo.length }}人) × {{ DanWei }}{{ orderData.model.Room
Price }}
{{ DanWei }}{{ item.Total
Price }}
</view>
</view>
</view>
</view>
...
@@ -476,6 +476,8 @@
...
@@ -476,6 +476,8 @@
this
.
RatePlanList
=
res
.
data
.
parmResult
.
Success
.
BookingDetails
.
Hotel
.
RatePlanList
this
.
RatePlanList
=
res
.
data
.
parmResult
.
Success
.
BookingDetails
.
Hotel
.
RatePlanList
this
.
DanWei
=
res
.
data
.
parmResult
.
Success
.
BookingDetails
.
Hotel
.
RatePlanList
[
0
].
Currency
this
.
DanWei
=
res
.
data
.
parmResult
.
Success
.
BookingDetails
.
Hotel
.
RatePlanList
[
0
].
Currency
this
.
roomRateDetails
=
res
.
data
.
parmResult
.
Success
.
BookingDetails
.
Hotel
this
.
roomRateDetails
=
res
.
data
.
parmResult
.
Success
.
BookingDetails
.
Hotel
}
else
{
this
.
initBookHotel
()
}
}
res
.
data
.
parmResultRoomInfo
.
GuestList
.
forEach
((
item
,
index
)
=>
{
res
.
data
.
parmResultRoomInfo
.
GuestList
.
forEach
((
item
,
index
)
=>
{
this
.
roomNum
++
this
.
roomNum
++
...
@@ -490,6 +492,63 @@
...
@@ -490,6 +492,63 @@
}
}
);
);
},
},
//未付款是初始化预定房型,餐型等,
initBookHotel
()
{
var
cMsg
=
{
"sort"
:
1
,
"displayFrom"
:
1
,
"CheckInDate"
:
this
.
orderData
.
parmResultRoomInfo
.
CheckInDate
,
"CheckOutDate"
:
this
.
orderData
.
parmResultRoomInfo
.
CheckOutDate
,
"searchroomGroup"
:
[],
"ratePlanID"
:
this
.
orderData
.
parmResultRoomInfo
.
RatePlanID
,
"imgUrl"
:
""
,
"RoomCount"
:
this
.
orderData
.
parmResultRoomInfo
.
RoomCount
,
"ChildCount"
:
0
,
"AdultCount"
:
0
,
"OccupancyDetails"
:
[],
"hotelId"
:
this
.
orderData
.
parmResultRoomInfo
.
hotelId
};
if
(
this
.
orderData
.
parmResultRoomInfo
.
GuestList
&&
this
.
orderData
.
parmResultRoomInfo
.
GuestList
.
length
>
0
)
{
this
.
orderData
.
parmResultRoomInfo
.
GuestList
.
forEach
(
item
=>
{
var
rObj
=
{
"roomNum"
:
item
.
RoomNum
,
"numberOfAdults"
:
item
.
numberOfAdults
,
"numberOfChildren"
:
item
.
numberOfChildren
,
"ChildAgeDetails"
:
item
.
ChildAgeDetails
,
"ChildAgeTexts"
:
[]
};
if
(
item
.
GuestInfo
&&
item
.
GuestInfo
.
length
>
0
)
{
item
.
GuestInfo
.
forEach
(
subItem
=>
{
if
(
subItem
.
IsAdult
==
0
)
{
rObj
.
ChildAgeTexts
.
push
(
subItem
.
Age
);
}
})
}
cMsg
.
searchroomGroup
.
push
(
rObj
)
})
}
uni
.
showLoading
({
title
:
'加载中...'
,
mask
:
true
});
this
.
apipost
(
"dmc_post_GetDiDaPriceConfirm"
,
cMsg
,
res
=>
{
uni
.
hideLoading
();
if
(
res
.
resultCode
==
1
)
{
var
tempData
=
res
.
data
;
if
(
tempData
&&
tempData
.
PriceDetails
&&
tempData
.
PriceDetails
.
HotelList
&&
tempData
.
PriceDetails
.
HotelList
.
length
>
0
)
{
this
.
RatePlanList
=
tempData
.
PriceDetails
.
HotelList
[
0
].
RatePlanList
;
}
}
},
failed
=>
{
uni
.
hideLoading
();
console
.
log
(
"failed"
,
failed
);
});
},
//日期格式化
//日期格式化
getformatDateStr
(
value
)
{
getformatDateStr
(
value
)
{
var
dt
=
new
Date
(
value
);
var
dt
=
new
Date
(
value
);
...
...
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