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
37b33e72
Commit
37b33e72
authored
Apr 21, 2025
by
youjie
Browse files
Options
Browse Files
Download
Plain Diff
酒店
parents
5e45e1c7
391066a7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1465 additions
and
1428 deletions
+1465
-1428
AggregateOrdersList.vue
pages/AggregateOrders/AggregateOrdersList.vue
+103
-95
AggregateOrdersSearch.vue
pages/AggregateOrders/AggregateOrdersSearch.vue
+155
-136
header.vue
pages/AggregateOrders/components/header.vue
+232
-214
orders.vue
pages/AggregateOrders/components/orders.vue
+490
-466
hotelRoom.vue
pages/hotel/components/hotelRoom.vue
+28
-17
detail.vue
pages/hotel/detail.vue
+15
-77
list.vue
pages/hotel/list.vue
+0
-13
order.vue
pages/hotel/order.vue
+377
-351
producttypeenum.js
utils/producttypeenum.js
+65
-59
No files found.
pages/AggregateOrders/AggregateOrdersList.vue
View file @
37b33e72
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
url("@/asset/css/flex.css")
;
@import
url("@/asset/css/flex.css")
;
.AggOrdBox
{
.AggOrdBox
{
height
:
100vh
;
height
:
100vh
;
background
:
url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772246864278108.jpg')
no-repeat
#F3F1EF
;
background
:
url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772246864278108.jpg')
no-repeat
#F3F1EF
;
background-size
:
100%
240rpx
;
background-size
:
100%
240rpx
;
.AggOrdHeader
{
.AggOrdHeader
{
padding-bottom
:
20rpx
;
padding-bottom
:
20rpx
;
// background: url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772246864278108.jpg')no-repeat;
// background: url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772246864278108.jpg')no-repeat;
// background-size: 100% 100%;
// background-size: 100% 100%;
}
}
.AggOrdStatus
{
.AggOrdStatus
{
padding-top
:
20rpx
;
padding-top
:
20rpx
;
.AggOrdT
{
.AggOrdT
{
width
:
25%
;
width
:
25%
;
padding
:
10rpx
20rpx
;
padding
:
10rpx
20rpx
;
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
#080A09
;
color
:
#080A09
;
position
:
relative
;
position
:
relative
;
}
}
.AggOrdT.active
{
.AggOrdT.active
{
color
:
#B99846
;
color
:
#B99846
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.AggOrdT
text
{
.AggOrdT
text
{
display
:
block
;
display
:
block
;
text-align
:
center
;
text-align
:
center
;
}
}
.AggOrdT
view
{
.AggOrdT
view
{
position
:
absolute
;
position
:
absolute
;
left
:
0
;
left
:
0
;
right
:
0
;
right
:
0
;
bottom
:
0
;
bottom
:
0
;
}
}
.AggOrdT
view
view
{
.AggOrdT
view
view
{
width
:
60rpx
;
width
:
60rpx
;
height
:
10rpx
;
height
:
10rpx
;
margin
:
auto
;
margin
:
auto
;
...
@@ -40,106 +48,103 @@
...
@@ -40,106 +48,103 @@
border-radius
:
10rpx
;
border-radius
:
10rpx
;
}
}
}
}
}
}
/
deep
/
.showModalInfo
.u-drawer-bottom
{
background-color
:
rgba
(
23
,
23
,
23
,
0
)
!
important
;
/
deep
/
.showModalInfo
.u-drawer-bottom
{
background-color
:
rgba
(
23
,
23
,
23
,
0
)
!
important
;
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<view
class=
"AggOrdBox column"
>
<view
class=
"AggOrdBox column"
>
<view
class=
"AggOrdHeader"
:style=
"[titleStyle]"
>
<view
class=
"AggOrdHeader"
:style=
"[titleStyle]"
>
<AggOrdHeader
:title=
"pageTitle"
<AggOrdHeader
:title=
"pageTitle"
@
change=
"getOrderType"
:params=
"msg"
></AggOrdHeader>
@
change=
"getOrderType"
:params=
"msg"
></AggOrdHeader>
<view
class=
"AggOrdStatus row items-center"
>
<view
class=
"AggOrdStatus row items-center"
>
<template>
<template>
<view
class=
"AggOrdT"
<view
class=
"AggOrdT"
v-for=
"(item,index) in statusList"
:key=
"index"
v-for=
"(item,index) in statusList"
:class=
"[msg.OrderStatus==item.ID?'active':'']"
@
click=
"getStatus(item.ID)"
>
:key=
"index"
:class=
"[msg.OrderStatus==item.ID?'active':'']"
@
click=
"getStatus(item.ID)"
>
<text>
{{
item
.
Name
}}
</text>
<text>
{{
item
.
Name
}}
</text>
</view>
</view>
</
template
>
</
template
>
</view>
</view>
</view>
</view>
<view
class=
"col"
style=
"height: 1px;flex: 1;overflow: hidden;padding-top: 10rpx;"
>
<view
class=
"col"
style=
"height: 1px;flex: 1;overflow: hidden;padding-top: 10rpx;"
>
<scroll-view
:scroll-y=
"true"
<scroll-view
:scroll-y=
"true"
:enable-back-to-top=
"true"
:enable-flex=
"true"
@
scrolltolower=
"lower"
:enable-back-to-top=
"true"
style=
"height: 100%;"
>
:enable-flex=
"true"
<orders
:orders=
"g"
@
research=
"research"
></orders>
@
scrolltolower=
"lower"
style=
"height: 100%;"
>
<u-empty
v-if=
"g.length==0"
text=
"暂无数据"
mode=
"data"
padding-top=
"20"
></u-empty>
<orders
:orders=
"g"
@
research=
"research"
></orders>
<u-loadmore
v-else
:status=
"status"
:load-text=
"loadText"
:font-size=
"24"
:margin-top=
"20"
<u-empty
v-if=
"g.length==0"
text=
"暂无数据"
mode=
"data"
padding-top=
"20"
></u-empty>
:margin-bottom=
"20"
bg-color=
"#F3F1EF"
/>
<u-loadmore
v-else
:status=
"status"
:load-text=
"loadText"
:font-size=
"24"
:margin-top=
"20"
:margin-bottom=
"20"
bg-color=
"#F3F1EF"
/>
<view
style=
"width: 100%;height: 20rpx;"
></view>
<view
style=
"width: 100%;height: 20rpx;"
></view>
</scroll-view>
</scroll-view>
</view>
</view>
</view>
</view>
</template>
</template>
<
script
>
<
script
>
import
{
mappingListType
,
mappingListTypeTy
}
from
"../../utils/producttypeenum"
;
import
{
mappingListType
,
mappingListTypeTy
}
from
"../../utils/producttypeenum"
;
import
EnumHelper
from
'../../utils/enumhelper'
;
import
EnumHelper
from
'../../utils/enumhelper'
;
import
OrderStatusEnum
from
'../../utils/orderStautsEnum'
;
import
OrderStatusEnum
from
'../../utils/orderStautsEnum'
;
import
AggOrdHeader
from
"./components/header.vue"
;
import
AggOrdHeader
from
"./components/header.vue"
;
import
orders
from
"./components/orders.vue"
;
import
orders
from
"./components/orders.vue"
;
export
default
{
export
default
{
components
:
{
components
:
{
AggOrdHeader
,
AggOrdHeader
,
orders
,
orders
,
},
},
data
()
{
data
()
{
return
{
return
{
pageTitle
:
'所有订单'
,
pageTitle
:
'所有订单'
,
msg
:{
msg
:
{
pageSize
:
10
,
pageSize
:
10
,
pageIndex
:
1
,
pageIndex
:
1
,
OrderStatus
:
0
,
OrderStatus
:
0
,
GoodsName
:
''
,
GoodsName
:
''
,
OrderTypeStr
:
''
OrderTypeStr
:
''
},
},
loadText
:
{
loadText
:
{
loadmore
:
"轻轻上拉,加载更多"
,
loadmore
:
"轻轻上拉,加载更多"
,
loading
:
"努力加载中"
,
loading
:
"努力加载中"
,
nomore
:
"没有更多了"
,
nomore
:
"没有更多了"
,
},
},
status
:
"loadmore"
,
status
:
"loadmore"
,
showModal
:
false
,
showModal
:
false
,
barshow
:
0
,
barshow
:
0
,
statusList
:
[],
statusList
:
[],
g
:
[],
g
:
[],
page_count
:
1
,
page_count
:
1
,
index
:
0
,
index
:
0
,
payindex
:
0
,
payindex
:
0
,
showAuth
:
false
,
showAuth
:
false
,
titleStyle
:{},
titleStyle
:
{},
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
if
(
options
.
OrderTypeStr
)
this
.
msg
.
OrderTypeStr
=
options
.
OrderTypeStr
if
(
options
.
OrderTypeStr
)
this
.
msg
.
OrderTypeStr
=
options
.
OrderTypeStr
if
(
options
.
OrderStatus
)
this
.
msg
.
OrderStatus
=
options
.
OrderStatus
if
(
options
.
OrderStatus
)
this
.
msg
.
OrderStatus
=
options
.
OrderStatus
this
.
research
()
this
.
research
()
},
},
created
()
{
created
()
{
const
that
=
this
const
that
=
this
uni
.
getSystemInfo
({
uni
.
getSystemInfo
({
success
(
res
)
{
success
(
res
)
{
that
.
titleStyle
=
{
that
.
titleStyle
=
{
paddingTop
:
`
${
res
.
statusBarHeight
}
px`
paddingTop
:
`
${
res
.
statusBarHeight
}
px`
};
};
},
},
});
});
this
.
getOrderEnums
()
this
.
getOrderEnums
()
},
},
methods
:
{
methods
:{
getStatus
(
ID
)
{
getStatus
(
ID
){
this
.
msg
.
OrderStatus
=
ID
this
.
msg
.
OrderStatus
=
ID
this
.
research
()
this
.
research
()
},
},
research
(
status
){
research
(
status
)
{
if
(
status
)
this
.
msg
.
OrderStatus
=
status
;
if
(
status
)
this
.
msg
.
OrderStatus
=
status
;
this
.
msg
.
pageIndex
=
1
;
this
.
msg
.
pageIndex
=
1
;
this
.
msg
.
pageSize
=
10
;
this
.
msg
.
pageSize
=
10
;
this
.
status
=
"loadmore"
;
this
.
status
=
"loadmore"
;
...
@@ -147,35 +152,36 @@
...
@@ -147,35 +152,36 @@
this
.
g
=
[];
this
.
g
=
[];
this
.
init
()
this
.
init
()
},
},
getOrderType
(
item
){
getOrderType
(
item
)
{
this
.
msg
.
OrderTypeStr
=
item
.
Id
this
.
msg
.
OrderTypeStr
=
item
.
Id
this
.
pageTitle
=
item
.
Name
this
.
pageTitle
=
item
.
Name
this
.
research
()
this
.
research
()
},
},
init
()
{
init
()
{
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'加载中...'
title
:
'加载中...'
})
})
// #ifdef MP-DI
// #ifdef MP-DI
this
.
OrderPageZK
();
this
.
OrderPageZK
();
// #endif
// #endif
// #ifdef MP-AG
// #ifdef MP-AG
this
.
OrderPageTY
();
this
.
OrderPageTY
();
// #endif
// #endif
},
},
OrderPageTY
(){
OrderPageTY
()
{
this
.
apipost
(
'b2b_get_GetB2BAllOrderPageList'
,
this
.
msg
,
this
.
apipost
(
'b2b_get_GetB2BAllOrderPageList'
,
this
.
msg
,
res
=>
{
res
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
uni
.
hideLoading
()
uni
.
hideLoading
()
res
.
data
.
pageData
.
forEach
(
x
=>
{
res
.
data
.
pageData
.
forEach
(
x
=>
{
// #ifdef MP-DI
// #ifdef MP-DI
x
.
goodTypeEnum
=
mappingListType
(
x
.
goodsType
)
x
.
goodTypeEnum
=
mappingListType
(
x
.
goodsType
)
// #endif
// #endif
// #ifdef MP-AG
// #ifdef MP-AG
x
.
goodTypeEnum
=
mappingListTypeTy
(
x
.
goodsType
)
x
.
goodTypeEnum
=
mappingListTypeTy
(
x
.
goodsType
)
// #endif
// #endif
x
.
orderStatusInfo
=
EnumHelper
.
ParseToEnum
(
OrderStatusEnum
,
x
.
orderStatus
,
'value'
)
x
.
orderStatusInfo
=
EnumHelper
.
ParseToEnum
(
OrderStatusEnum
,
x
.
orderStatus
,
'value'
)
})
})
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
this
.
page_count
=
res
.
data
.
pageCount
;
this
.
page_count
=
res
.
data
.
pageCount
;
...
@@ -189,14 +195,15 @@
...
@@ -189,14 +195,15 @@
}
}
);
);
},
},
OrderPageZK
(){
OrderPageZK
()
{
this
.
apipost
(
'GetMyDirectOrderPageList_post'
,
this
.
msg
,
this
.
apipost
(
'GetMyDirectOrderPageList_post'
,
this
.
msg
,
res
=>
{
res
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
uni
.
hideLoading
()
uni
.
hideLoading
()
res
.
data
.
pageData
.
forEach
(
x
=>
{
res
.
data
.
pageData
.
forEach
(
x
=>
{
x
.
goodTypeEnum
=
mappingListType
(
x
.
goodsType
)
x
.
goodTypeEnum
=
mappingListType
(
x
.
goodsType
)
x
.
orderStatusInfo
=
EnumHelper
.
ParseToEnum
(
OrderStatusEnum
,
x
.
orderStatus
,
'value'
)
x
.
orderStatusInfo
=
EnumHelper
.
ParseToEnum
(
OrderStatusEnum
,
x
.
orderStatus
,
'value'
)
})
})
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
this
.
page_count
=
res
.
data
.
pageCount
;
this
.
page_count
=
res
.
data
.
pageCount
;
...
@@ -210,7 +217,7 @@
...
@@ -210,7 +217,7 @@
}
}
);
);
},
},
lower
(
e
)
{
lower
(
e
)
{
if
(
this
.
msg
.
pageIndex
<
this
.
page_count
)
{
if
(
this
.
msg
.
pageIndex
<
this
.
page_count
)
{
this
.
msg
.
pageIndex
++
;
this
.
msg
.
pageIndex
++
;
this
.
status
=
"loading"
;
this
.
status
=
"loading"
;
...
@@ -219,25 +226,27 @@
...
@@ -219,25 +226,27 @@
this
.
status
=
"nomore"
;
this
.
status
=
"nomore"
;
}
}
},
},
getOrderEnums
()
{
getOrderEnums
()
{
this
.
apipost
(
this
.
apipost
(
"GetDirectOrderStatusEnum_post"
,
"GetDirectOrderStatusEnum_post"
,
{},
{},
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
// #ifdef MP-DI
// #ifdef MP-DI
this
.
statusList
=
res
.
data
.
filter
(
x
=>
x
.
ID
!=
4
);
this
.
statusList
=
res
.
data
.
filter
(
x
=>
x
.
ID
!=
4
);
// #endif
// #endif
// #ifdef MP-AG
// #ifdef MP-AG
this
.
statusList
=
res
.
data
.
filter
(
x
=>
x
.
ID
!=
5
);
this
.
statusList
=
res
.
data
.
filter
(
x
=>
x
.
ID
!=
5
);
// #endif
// #endif
this
.
statusList
.
splice
(
0
,
0
,{
ID
:
0
,
Name
:
'全部'
})
this
.
statusList
.
splice
(
0
,
0
,
{
this
.
statusList
.
forEach
(
x
=>
{
ID
:
0
,
if
(
x
.
Name
==
'已付款'
)
x
.
Name
=
'待出行'
Name
:
'全部'
})
this
.
statusList
.
forEach
(
x
=>
{
if
(
x
.
Name
==
'已付款'
)
x
.
Name
=
'待出行'
})
})
}
}
},
},
err
=>
{
err
=>
{
uni
.
showToast
({
uni
.
showToast
({
title
:
err
.
message
,
title
:
err
.
message
,
icon
:
"none"
,
icon
:
"none"
,
...
@@ -245,7 +254,6 @@
...
@@ -245,7 +254,6 @@
}
}
);
);
},
},
},
},
}
}
</
script
>
</
script
>
\ No newline at end of file
pages/AggregateOrders/AggregateOrdersSearch.vue
View file @
37b33e72
This diff is collapsed.
Click to expand it.
pages/AggregateOrders/components/header.vue
View file @
37b33e72
This diff is collapsed.
Click to expand it.
pages/AggregateOrders/components/orders.vue
View file @
37b33e72
This diff is collapsed.
Click to expand it.
pages/hotel/components/hotelRoom.vue
View file @
37b33e72
...
@@ -3,24 +3,29 @@
...
@@ -3,24 +3,29 @@
<view
style=
"padding: 0 31rpx;"
>
<view
style=
"padding: 0 31rpx;"
>
<view
class=
"hotelDetailBox activeTag"
v-for=
"(item,index) in RoomList"
:key=
"index"
>
<view
class=
"hotelDetailBox activeTag"
v-for=
"(item,index) in RoomList"
:key=
"index"
>
<view
class=
"hotelDetailTag"
>
<view
class=
"hotelDetailTag"
>
热门房型
{{
item
.
RoomName_CN
}}
</view>
</view>
<template
v-for=
"(subItem,subindex) in item.RatePlanList"
>
<template
v-for=
"(subItem,subindex) in item.RatePlanList"
>
<view
class=
"hotelDetail row"
v-if=
"!subindex"
>
<view
class=
"hotelDetail row"
v-if=
"!subindex"
>
<view
class=
"hotelDetailL"
@
click=
"openPicture(item.images)"
>
<template
v-if=
"item.images&&item.images.length>0"
>
<image
mode=
"heightFix"
:src=
"item.Path"
/>
<view
class=
"hotelDetailL"
@
click=
"openPicture(item.images)"
>
<view
class=
"hotelDetailLImgs"
v-if=
"item.images&&item.images.length>1"
>
<image
mode=
"heightFix"
:src=
"item.images[0].Url"
/>
{{
item
.
images
.
length
}}
<view
class=
"hotelDetailLImgs"
v-if=
"item.images&&item.images.length>1"
>
{{
item
.
images
.
length
}}
</view>
</view>
</view>
</view>
</
template
>
<
template
v-else
>
<view
class=
"hotelDetailL"
>
<image
mode=
"heightFix"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/defaultHotelImg.png"
/>
</view>
</
template
>
<view
class=
"hotelDetailR column"
>
<view
class=
"hotelDetailR column"
>
<view
class=
"hotelDetailRTitle row items-center"
>
<view
class=
"hotelDetailRTitle row items-center"
>
<view>
<view>
<!--
{{
getRoomType
(
subItem
.
BedType
)
}}
-->
</view>
</view>
<!--
<img
:src=
"openImg[0]"
/>
-->
</view>
</view>
<view
class=
"hotelDetailRRoom"
>
<view
class=
"hotelDetailRRoom"
>
{{ subItem.RoomName_CN }}
{{ subItem.RoomName_CN }}
...
@@ -287,17 +292,23 @@
...
@@ -287,17 +292,23 @@
return
mealtypeName
;
return
mealtypeName
;
},
},
goUrl
(
subItem
)
{
goUrl
(
subItem
)
{
let
HotelInfo
=
{
let
pHotel
=
{
hotelid
:
this
.
HotelInfo
.
hotelid
,
hotelid
:
this
.
HotelInfo
.
hotelid
,
name
:
this
.
HotelInfo
.
name
,
name
:
this
.
HotelInfo
.
name
,
location
:
this
.
HotelInfo
.
location
,
address
:
""
,
address
:
this
.
HotelInfo
.
address
,
images
:
[],
destination
:
this
.
HotelInfo
.
destination
,
}
country
:
this
.
HotelInfo
.
country
,
if
(
this
.
HotelInfo
)
{
images
:
this
.
HotelInfo
.
images
,
if
(
this
.
HotelInfo
.
images
&&
this
.
HotelInfo
.
images
.
length
>
0
)
{
pHotel
.
images
.
push
(
this
.
HotelInfo
.
images
[
0
].
url
);
}
if
(
this
.
HotelInfo
.
location
&&
this
.
HotelInfo
.
location
.
address
)
{
pHotel
.
address
=
this
.
HotelInfo
.
location
.
address
;
}
}
}
console
.
log
(
"hotelRoom"
,
pHotel
);
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/hotel/order?searchObj=
${
JSON
.
stringify
(
this
.
searchObj
)}
&dayObj=
${
JSON
.
stringify
(
this
.
dayObj
)}
&HotelInfo=
${
JSON
.
stringify
(
HotelInfo
)}
&RoomInfo=
${
JSON
.
stringify
(
subItem
)}
`
,
url
:
`/pages/hotel/order?searchObj=
${
JSON
.
stringify
(
this
.
searchObj
)}
&dayObj=
${
JSON
.
stringify
(
this
.
dayObj
)}
&HotelInfo=
${
JSON
.
stringify
(
pHotel
)}
&RoomInfo=
${
JSON
.
stringify
(
subItem
)}
`
,
});
});
},
},
openPicture
(
item
)
{
openPicture
(
item
)
{
...
...
pages/hotel/detail.vue
View file @
37b33e72
...
@@ -16,19 +16,12 @@
...
@@ -16,19 +16,12 @@
style=
"width: 37rpx; height: 44rpx"
mode=
""
></image>
style=
"width: 37rpx; height: 44rpx"
mode=
""
></image>
</view>
</view>
</view>
</view>
<!--
<view
class=
"type-box"
v-if=
"videoUrl!=''"
>
<u-tabs
bg-color=
"rgba(0,0,0,0)"
:is-scroll=
"false"
name=
"Name"
:list=
"typeList"
:active-color=
"mainColor"
:current=
"active"
@
change=
"changeHandler"
:show-bar=
"true"
:bold=
"false"
height=
"50"
duration=
"0"
font-size=
"24"
:activeFontSize=
"24"
:typeStyle=
"2"
>
</u-tabs>
</view>
-->
<view
class=
"media-info"
v-if=
"dataList.images"
>
<view
class=
"media-info"
v-if=
"dataList.images"
>
<view
class=
"flex"
>
<view
class=
"flex"
>
<view
class=
"mi-left"
>
<view
class=
"mi-left"
>
<view
v-if=
"dataList.images.length > 0"
class=
"type-img-box"
>
<view
v-if=
"dataList.images.length > 0"
class=
"type-img-box"
>
<image
:src=
"dataList.images[0].url"
mode=
"aspectFill"
></image>
<image
:src=
"dataList.images[0].url"
mode=
"aspectFill"
></image>
<view
class=
"content"
>
<view
class=
"content"
>
<!--
<u-icon
name=
"photo"
size=
"26"
color=
"#FFF"
></u-icon>
-->
<text>
{{
dataList
.
images
.
length
}}
</text>
<text>
{{
dataList
.
images
.
length
}}
</text>
</view>
</view>
</view>
</view>
...
@@ -205,8 +198,6 @@
...
@@ -205,8 +198,6 @@
<hotelPolicy
ref=
"hotelPolicy"
id=
"hotelPolicy"
:dataList=
"dataList"
></hotelPolicy>
<hotelPolicy
ref=
"hotelPolicy"
id=
"hotelPolicy"
:dataList=
"dataList"
></hotelPolicy>
<hotelFacilities
ref=
"hotelFacilities"
id=
"hotelFacilities"
:dataList=
"dataList"
>
<hotelFacilities
ref=
"hotelFacilities"
id=
"hotelFacilities"
:dataList=
"dataList"
>
</hotelFacilities>
</hotelFacilities>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -351,7 +342,10 @@
...
@@ -351,7 +342,10 @@
loading
:
false
,
loading
:
false
,
DidaHotelRoomDetails
:
{},
DidaHotelRoomDetails
:
{},
qRoomTypeList
:
[],
qRoomTypeList
:
[],
qMealTypeList
:
[],
qMealTypeList
:
[{
ID
:
''
,
MTypeName
:
"全部"
}],
HotelMealTypes
:
[],
HotelMealTypes
:
[],
qMsg
:
{
qMsg
:
{
RoomTypeName
:
""
,
//房型筛选
RoomTypeName
:
""
,
//房型筛选
...
@@ -483,7 +477,6 @@
...
@@ -483,7 +477,6 @@
if
(
options
.
searchObj
)
{
if
(
options
.
searchObj
)
{
this
.
searchObj
=
JSON
.
parse
(
options
.
searchObj
);
this
.
searchObj
=
JSON
.
parse
(
options
.
searchObj
);
}
}
// this.getRecomHotel();
this
.
getHotelPrices
()
this
.
getHotelPrices
()
this
.
getdidaMealType
()
this
.
getdidaMealType
()
},
},
...
@@ -561,31 +554,20 @@
...
@@ -561,31 +554,20 @@
console
.
log
(
"dmc_post_GetDiDaPriceSearchList"
,
tempData
);
console
.
log
(
"dmc_post_GetDiDaPriceSearchList"
,
tempData
);
this
.
DidaHotelRoomDetails
=
tempData
;
this
.
DidaHotelRoomDetails
=
tempData
;
this
.
qRoomTypeList
=
tempData
.
qRoomTypeList
;
this
.
qRoomTypeList
=
tempData
.
qRoomTypeList
;
console
.
log
(
"qRoomTypeList"
,
this
.
qRoomTypeList
);
if
(
this
.
qRoomTypeList
&&
this
.
qRoomTypeList
.
length
>
0
)
{
if
(
this
.
qRoomTypeList
&&
this
.
qRoomTypeList
.
length
>
0
)
this
.
qRoomTypeList
.
unshift
({
this
.
qRoomTypeList
.
unshift
({
RoomTypeID
:
-
1
,
RoomTypeID
:
-
1
,
RoomName_CN
:
'全部'
RoomName_CN
:
'房型(全部)'
})
})
var
tempMealArray
=
tempData
.
qMealTypeList
;
if
(
tempMealArray
&&
tempMealArray
.
length
>
0
)
{
tempMealArray
.
forEach
(
mItem
=>
{
var
MTypeName
=
that
.
getMealtype
(
mItem
.
MealType
);
if
(
mItem
.
MealAmount
>
0
)
{
MTypeName
+=
mItem
.
MealAmount
+
"份"
;
}
mItem
.
MTypeName
=
MTypeName
});
}
}
this
.
qMealTypeList
=
tempData
.
qMealTypeList
;
this
.
qMealTypeList
=
tempMealArray
;
if
(
this
.
qMealTypeList
&&
this
.
qMealTypeList
.
length
>
0
)
{
console
.
log
(
"qMealTypeList"
,
this
.
qMealTypeList
);
this
.
qMealTypeList
.
unshift
({
if
(
this
.
qMealTypeList
&&
this
.
qMealTypeList
.
length
>
0
)
this
.
qMealTypeList
.
unshift
({
MTypeName
:
"餐型(全部)"
,
MTypeName
:
"全部"
,
MealAmount
:
0
,
MealAmount
:
0
,
MealType
:
0
,
MealType
:
0
,
})
})
}
}
}
})
})
},
},
...
@@ -628,7 +610,6 @@
...
@@ -628,7 +610,6 @@
},
},
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
// console.log(res, '推荐酒店');
this
.
HotelArr
=
[];
this
.
HotelArr
=
[];
let
tempHotel
=
res
.
data
.
pageData
;
let
tempHotel
=
res
.
data
.
pageData
;
tempHotel
.
forEach
((
x
)
=>
{
tempHotel
.
forEach
((
x
)
=>
{
...
@@ -785,9 +766,7 @@
...
@@ -785,9 +766,7 @@
longPressActions
:
{
longPressActions
:
{
itemList
:
[
"发送给朋友"
,
"保存图片"
,
"收藏"
],
itemList
:
[
"发送给朋友"
,
"保存图片"
,
"收藏"
],
success
:
function
(
data
)
{},
success
:
function
(
data
)
{},
fail
:
function
(
err
)
{
fail
:
function
(
err
)
{},
// console.log(err.errMsg);
},
},
},
});
});
},
},
...
@@ -843,20 +822,8 @@
...
@@ -843,20 +822,8 @@
for
(
let
i
=
0
;
i
<
res
.
data
.
images
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
res
.
data
.
images
.
length
;
i
++
)
{
res
.
data
.
images
[
i
].
Path
=
res
.
data
.
images
[
i
].
url
res
.
data
.
images
[
i
].
Path
=
res
.
data
.
images
[
i
].
url
}
}
// for(let i=0;i
<
res
.
data
.
rooms
.
length
;
i
++
){
// let list = res.data.rooms[i].images.filter(x=>{
// return x.isDefault
// })
// res.data.rooms[i].images.forEach(x=>{
// x.Path = x.url
// })
// if(list.length>0) res.data.rooms[i].Path = list[0].url
// else res.data.rooms[i].Path = res.data.rooms[i].images.length>0&&res.data.rooms[i].images[0].url?res.data.rooms[i].images[0].url:''
// this.RoomList.push(res.data.rooms[i])
// }
this
.
hotelData
.
hotelid
=
this
.
dataList
.
hotelid
;
this
.
hotelData
.
hotelid
=
this
.
dataList
.
hotelid
;
this
.
hotelData
.
name
=
this
.
dataList
.
name
;
this
.
hotelData
.
name
=
this
.
dataList
.
name
;
// this.hotelData.Booking = this.dataList.Booking;
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
hotelFacilities
.
forEach
((
x
)
=>
{
this
.
hotelFacilities
.
forEach
((
x
)
=>
{
const
query
=
uni
.
createSelectorQuery
().
select
(
`#
${
x
.
val
}
`
);
const
query
=
uni
.
createSelectorQuery
().
select
(
`#
${
x
.
val
}
`
);
...
@@ -867,35 +834,6 @@
...
@@ -867,35 +834,6 @@
},
1000
);
},
1000
);
}
}
})
})
// let msg = {
// hotelid: id,
// StartDate: this.dayObj.start,
// EndDate: this.dayObj.end,
// };
// this.request2(
// {
// url: "/api/Hotel/GetHotelInfo",
// data: msg,
// },
// (res) => {
// if (res.resultCode == 1) {
// // console.log(res, '详情数据');
// this.dataList = res.data;
// this.RoomList = this.dataList.RoomList;
// this.hotelData.hotelid = this.dataList.hotelid;
// this.hotelData.name = this.dataList.name;
// this.hotelData.Booking = this.dataList.Booking;
// setTimeout(() => {
// this.hotelFacilities.forEach((x)=>{
// const query = uni.createSelectorQuery().select(`#${x.val}`);
// query.boundingClientRect((rect) => {
// x.top = rect.top+250;
// }).exec();
// })
// }, 1000);
// }
// }
// );
},
},
// #ifdef MP-WEIXIN
// #ifdef MP-WEIXIN
//分享朋友圈
//分享朋友圈
...
...
pages/hotel/list.vue
View file @
37b33e72
...
@@ -46,15 +46,6 @@
...
@@ -46,15 +46,6 @@
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
15
,
pageSize
:
15
,
KeyWords
:
""
,
//关键字
KeyWords
:
""
,
//关键字
// StartPrice: 0,
// EndPrice: 1000,
// QStartDate: "",//开始日期
// QEndDate: "",//结束日期
// OrderByType: "1", //排序类型
// QStars: "", //星级
// TagList: [], //查询标签
// City: 262, //市
// District: 0, //区
},
},
HotelList
:
[],
//酒店数据
HotelList
:
[],
//酒店数据
tempRateAndPrice
:
{
tempRateAndPrice
:
{
...
@@ -251,13 +242,10 @@
...
@@ -251,13 +242,10 @@
}
}
.hotel-list
.hotel-city
{
.hotel-list
.hotel-city
{
// width: 105rpx;
height
:
40rpx
;
height
:
40rpx
;
padding
:
0rpx
0
8rpx
0rpx
;
padding
:
0rpx
0
8rpx
0rpx
;
margin-right
:
27rpx
;
margin-right
:
27rpx
;
text-align
:
center
;
text-align
:
center
;
/* color: #DFBE6E; */
// border-right: 1px solid #e2e2e2;
font-size
:
28rpx
;
font-size
:
28rpx
;
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
overflow
:
hidden
;
...
@@ -277,7 +265,6 @@
...
@@ -277,7 +265,6 @@
}
}
.hotel-list
.search-box
.date
{
.hotel-list
.search-box
.date
{
// width: 82rpx;
height
:
50rpx
;
height
:
50rpx
;
font-size
:
20rpx
;
font-size
:
20rpx
;
font-weight
:
500
;
font-weight
:
500
;
...
...
pages/hotel/order.vue
View file @
37b33e72
This diff is collapsed.
Click to expand it.
utils/producttypeenum.js
View file @
37b33e72
import
EnumHelper
from
"./enumhelper.js"
import
EnumHelper
from
"./enumhelper.js"
import
ListProductTypeEnum
from
"./listProductType.js"
import
ListProductTypeEnum
from
"./listProductType.js"
const
ProductTypeEnum
=
[
const
ProductTypeEnum
=
[{
{
value
:
1
,
value
:
1
,
desc
:
'机票产品'
desc
:
'机票产品'
},
},
/**
/**
* 线路
* 线路
*/
*/
{
{
value
:
2
,
value
:
2
,
desc
:
'线路产品'
desc
:
'线路产品'
},
},
/**
/**
* 酒店
* 酒店
*/
*/
{
{
value
:
3
,
value
:
3
,
desc
:
'酒店产品'
desc
:
'酒店产品'
},
},
/**
/**
* 景点门票
* 景点门票
*/
*/
{
{
value
:
4
,
value
:
4
,
desc
:
'景点门票产品'
desc
:
'景点门票产品'
},
},
/**
* 包车
*/
{
value
:
5
,
desc
:
'包车产品'
},
{
value
:
6
,
desc
:
'签证产品'
},
/**
* 包车
*/
{
value
:
5
,
desc
:
'包车产品'
},
{
value
:
6
,
desc
:
'签证产品'
},
{
value
:
7
,
desc
:
'酒店产品'
},
]
]
const
mappingRules
=
[
const
mappingRules
=
[
[
-
1
],
[
-
1
],
[
1
,
2
,
3
],
[
1
,
2
,
3
],
[
4
,
5
,
6
,
7
],
[
4
,
5
,
6
,
7
],
[
-
1
],
[
-
1
],
[
12
,
13
,
14
],
[
12
,
13
,
14
],
[
8
,
9
,
10
,
11
],
[
8
,
9
,
10
,
11
],
[
15
],
[
15
],
[
16
]
[
16
]
]
]
const
mappingListType
=
(
value
)
=>
{
const
mappingListType
=
(
value
)
=>
{
let
val
=
mappingRules
.
findIndex
(
x
=>
{
let
val
=
mappingRules
.
findIndex
(
x
=>
{
return
x
.
indexOf
(
value
)
!=
-
1
return
x
.
indexOf
(
value
)
!=
-
1
})
})
if
(
val
&&
val
>
0
)
{
if
(
val
&&
val
>
0
)
{
return
EnumHelper
.
ParseToEnum
(
ListProductTypeEnum
,
val
,
'value'
)
return
EnumHelper
.
ParseToEnum
(
ListProductTypeEnum
,
val
,
'value'
)
}
}
return
{}
return
{}
}
}
const
mappingListTypeTy
=
(
type
)
=>
{
const
mappingListTypeTy
=
(
type
)
=>
{
let
val
=
ProductTypeEnum
.
findIndex
(
x
=>
{
let
val
=
ProductTypeEnum
.
findIndex
(
x
=>
{
return
x
.
value
==
Number
(
type
)
return
x
.
value
==
Number
(
type
)
})
})
return
ProductTypeEnum
[
val
]
return
ProductTypeEnum
[
val
]
}
}
const
transProductEnum
=
(
value
)
=>
{
const
transProductEnum
=
(
value
)
=>
{
return
mappingRules
[
value
]
return
mappingRules
[
value
]
}
}
export
default
ProductTypeEnum
export
default
ProductTypeEnum
export
{
mappingListType
,
transProductEnum
,
mappingListTypeTy
}
export
{
\ No newline at end of file
mappingListType
,
transProductEnum
,
mappingListTypeTy
}
\ No newline at end of file
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