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
3983ab31
Commit
3983ab31
authored
Jun 04, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
10fd684c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
400 additions
and
2 deletions
+400
-2
recommed-hotel.vue
pages/restaurant/components/recommed-hotel.vue
+163
-0
near-good.vue
pages/ticketCoupons/components/near-good.vue
+69
-0
recommed-hotel.vue
pages/ticketCoupons/components/recommed-hotel.vue
+165
-0
subscribeTicket.vue
pages/ticketCoupons/components/subscribeTicket.vue
+3
-2
No files found.
pages/restaurant/components/recommed-hotel.vue
0 → 100644
View file @
3983ab31
<
template
>
<view>
<view
class=
"hotel-list-item"
v-for=
"(item,index) in foodArr"
:key=
"index"
@
click=
"goHotelDetail(item.ID)"
>
<view
class=
"img-box"
>
<image
:src=
"item.CoverImg"
mode=
"aspectFill"
></image>
</view>
<view
class=
"hotel-info"
>
<view
class=
"hotel-name"
>
{{
item
.
Name
}}
</view>
<view
class=
"hotel-start"
>
<!-- TODO:判定是否为星级酒店,如果是显示星级,不是,显示另外一种方式 -->
<view
class=
"rate"
v-if=
"item.ScoreNum>=1&&item.ScoreNum
<
=
5
"
>
<u-rate
active-color=
"#FEB969"
inactive-color=
"#FFF"
:current=
"item.ScoreNum"
active-icon=
"star"
inactive-icon=
"star"
disabled
></u-rate>
<text
style=
"margin-left: 20rpx;vertical-align: top;"
>
{{
item
.
ScoreNum
}}
<text
v-if=
"item.ScoreNum===1||item.ScoreNum===2||item.ScoreNum===3||item.ScoreNum===4||item.ScoreNum===5"
>
.0
</text>
</text>
</view>
<!--
<view
class=
"other-rate"
v-if=
"item.Star==9"
>
<text>
温泉酒店
</text>
<span
class=
"line"
></span>
</view>
<view
class=
"other-rate"
v-if=
"item.Star==8"
>
<text>
精选民宿
</text>
<span
class=
"line"
></span>
</view>
-->
</view>
<view
class=
"localtion"
>
{{
item
.
Address
}}
</view>
<view>
<u-tag
text=
"亲子设施"
bg-color=
"#FFF"
border-color=
"#DFBE6E"
color=
"#DFBE6E"
size=
"mini"
></u-tag>
</view>
<view
class=
"price"
>
<text>
¥
</text>
<text
class=
"money"
>
{{
$utils
.
getretailer
()
==
true
?
item
.
B2BPrice
:
item
.
SalesPrice
}}
</text>
<text>
起
</text>
</view>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
props
:{
foodArr
:{
type
:
Array
,
default
:
null
},
dayObj
:{
type
:
Object
,
default
:
null
},
searchObj
:{
type
:
Object
,
default
:
null
}
},
data
()
{
return
{
key
:
value
}
},
mounted
(){
},
created
(){
console
.
log
(
64
,
this
.
foodArr
)
},
methods
:{
goHotelDetail
(
id
){
// let myDayObj = JSON.stringify(this.dayObj);
uni
.
navigateTo
({
// url: "/pages/ticketCoupons/detail?id=" + id +'&dayObj=' + myDayObj+'&searchObj='+JSON.stringify(this.searchObj)
url
:
"/pages/restaurant/detail?id="
+
id
});
}
}
}
</
script
>
<
style
>
.hotel-list-item
{
margin
:
30
rpx
0
;
padding-bottom
:
30
rpx
;
/* border-bottom: 1rpx solid #E2E2E2; */
display
:
flex
;
align-items
:
center
;
}
.hotel-list-item
.img-box
{
width
:
220
rpx
;
height
:
280
rpx
;
border-radius
:
20
rpx
;
overflow
:
hidden
;
margin-right
:
30
rpx
;
}
.hotel-list-item
.img-box
image
{
width
:
100%
;
}
.hotel-list-item
.hotel-info
{
width
:
1px
;
flex
:
1
;
}
.hotel-list-item
.hotel-info
.hotel-name
{
font-weight
:
500
;
color
:
#111111
;
line-height
:
30
rpx
;
font-size
:
30
rpx
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.hotel-list-item
.hotel-info
.hotel-start
{
margin
:
10
rpx
0
;
}
.hotel-list-item
.hotel-info
.hotel-start
.rate
{
font-size
:
30
rpx
;
font-weight
:
500
;
color
:
#999999
;
line-height
:
30
rpx
;
margin
:
20
rpx
0
;
}
.hotel-list-item
.hotel-info
.hotel-start
.other-rate
{
display
:
inline-block
;
position
:
relative
;
}
.hotel-list-item
.hotel-info
.hotel-start
.other-rate
text
{
position
:
relative
;
z-index
:
2
;
font-size
:
30
rpx
;
line-height
:
30
rpx
;
font-weight
:
500
;
color
:
#111
;
}
.hotel-list-item
.hotel-info
.hotel-start
.other-rate
.line
{
background-color
:
#DFBE6E
;
height
:
6px
;
bottom
:
2px
;
left
:
0
;
right
:
0
;
position
:
absolute
;
z-index
:
1
;
}
.hotel-list-item
.hotel-info
.localtion
{
font-size
:
24
rpx
;
font-weight
:
400
;
color
:
#999999
;
line-height
:
30
rpx
;
text-overflow
:
-o-ellipsis-lastline
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
display
:
-webkit-box
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
margin-bottom
:
10
rpx
;
}
.hotel-list-item
.hotel-info
.price
{
margin-top
:
10
rpx
;
font-weight
:
500
;
color
:
#000
;
font-size
:
20
rpx
;
text-align
:
right
;
}
.hotel-list-item
.hotel-info
.price
.money
{
font-size
:
36
rpx
;
}
</
style
>
pages/ticketCoupons/components/near-good.vue
0 → 100644
View file @
3983ab31
<
template
>
<view
class=
"near-good"
@
click=
"goDetail"
>
<image
:src=
"goodItem.CoverImg"
mode=
"aspectFill"
></image>
<view
class=
"good-name"
v-if=
"goodType===1"
>
{{
goodItem
.
HotelName
.
substring
(
0
,
6
)
+
'...'
}}
</view>
<view
class=
"good-name"
v-if=
"goodType===2"
>
{{
goodItem
.
Name
.
substring
(
0
,
6
)
+
'...'
}}
</view>
</view>
</
template
>
<
script
>
export
default
{
props
:
{
goodItem
:
{
type
:
Object
,
default
:
{}
},
goodType
:
{
type
:
Number
,
default
:
0
}
},
data
()
{
return
{
}
},
created
()
{
},
methods
:
{
//页面跳转
goDetail
()
{
//1 酒店
if
(
this
.
goodType
==
1
){
uni
.
navigateTo
({
url
:
"/pages/hotel/detail?id="
+
this
.
goodItem
.
HotelId
,
});
}
//2 美食
if
(
this
.
goodType
==
2
){
uni
.
navigateTo
({
url
:
"/pages/restaurant/detail?id="
+
this
.
goodItem
.
ID
});
}
}
}
}
</
script
>
<
style
>
.near-good
{
margin-right
:
20
rpx
;
flex-shrink
:
0
;
}
.near-good
image
{
width
:
200
rpx
;
height
:
200
rpx
;
border-radius
:
20
rpx
;
margin-bottom
:
29
rpx
;
}
.near-good
.good-name
{
font-weight
:
bold
;
color
:
#1F1F1F
;
font-size
:
28
rpx
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
white-space
:
nowrap
;
}
</
style
>
pages/ticketCoupons/components/recommed-hotel.vue
0 → 100644
View file @
3983ab31
<
template
>
<view>
<view
class=
"hotel-list-item"
v-for=
"(item,index) in scenicArr"
:key=
"index"
@
click=
"goHotelDetail(item.ID)"
>
<view
class=
"img-box"
>
<image
:src=
"item.CoverImg"
mode=
"aspectFill"
></image>
</view>
<view
class=
"hotel-info"
>
<view
class=
"hotel-name"
>
{{
item
.
Name
}}
</view>
<view
class=
"hotel-start"
>
<!-- TODO:判定是否为星级酒店,如果是显示星级,不是,显示另外一种方式 -->
<view
class=
"rate"
v-if=
"item.ScoreNum>=1&&item.ScoreNum
<
=
5
"
>
<u-rate
active-color=
"#FEB969"
inactive-color=
"#FFF"
:current=
"item.ScoreNum"
active-icon=
"star"
inactive-icon=
"star"
disabled
></u-rate>
<text
style=
"margin-left: 20rpx;vertical-align: top;"
>
{{
item
.
ScoreNum
}}
<text
v-if=
"item.ScoreNum===1||item.ScoreNum===2||item.ScoreNum===3||item.ScoreNum===4||item.ScoreNum===5"
>
.0
</text>
</text>
</view>
<!--
<view
class=
"other-rate"
v-if=
"item.Star==9"
>
<text>
温泉酒店
</text>
<span
class=
"line"
></span>
</view>
<view
class=
"other-rate"
v-if=
"item.Star==8"
>
<text>
精选民宿
</text>
<span
class=
"line"
></span>
</view>
-->
</view>
<view
class=
"localtion"
>
{{
item
.
Address
}}
</view>
<view>
<u-tag
text=
"亲子设施"
bg-color=
"#FFF"
border-color=
"#DFBE6E"
color=
"#DFBE6E"
size=
"mini"
></u-tag>
</view>
<view
class=
"price"
>
<text>
¥
</text>
<text
class=
"money"
>
{{
$utils
.
getretailer
()
==
true
?
item
.
B2BPrice
:
item
.
SalesPrice
}}
</text>
<text>
起
</text>
</view>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
props
:{
scenicArr
:{
type
:
Array
,
default
:
null
},
dayObj
:{
type
:
Object
,
default
:
null
},
searchObj
:{
type
:
Object
,
default
:
null
}
},
data
()
{
return
{
key
:
value
}
},
mounted
(){
},
created
(){
console
.
log
(
this
.
scenicArr
)
},
methods
:{
goHotelDetail
(
id
){
let
myDayObj
=
JSON
.
stringify
(
this
.
dayObj
);
uni
.
navigateTo
({
// url: "/pages/ticketCoupons/detail?id=" + id +'&dayObj=' + myDayObj+'&searchObj='+JSON.stringify(this.searchObj)
url
:
"/pages/restaurant/detail?id="
+
id
});
}
}
}
</
script
>
<
style
>
.hotel-list-item
{
margin
:
30
rpx
0
;
padding-bottom
:
30
rpx
;
/* border-bottom: 1rpx solid #E2E2E2; */
display
:
flex
;
align-items
:
center
;
}
.hotel-list-item
.img-box
{
width
:
220
rpx
;
height
:
280
rpx
;
border-radius
:
20
rpx
;
overflow
:
hidden
;
margin-right
:
30
rpx
;
}
.hotel-list-item
.img-box
image
{
width
:
100%
;
}
.hotel-list-item
.hotel-info
{
width
:
1px
;
flex
:
1
;
}
.hotel-list-item
.hotel-info
.hotel-name
{
/* width: 80%; */
font-weight
:
500
;
color
:
#111111
;
line-height
:
30
rpx
;
font-size
:
30
rpx
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.hotel-list-item
.hotel-info
.hotel-start
{
/* width: 20%; */
/* margin:10rpx 0; */
}
.hotel-list-item
.hotel-info
.hotel-start
.rate
{
font-size
:
30
rpx
;
font-weight
:
500
;
color
:
#999999
;
line-height
:
30
rpx
;
margin
:
20
rpx
0
;
}
.hotel-list-item
.hotel-info
.hotel-start
.other-rate
{
display
:
inline-block
;
position
:
relative
;
}
.hotel-list-item
.hotel-info
.hotel-start
.other-rate
text
{
position
:
relative
;
z-index
:
2
;
font-size
:
30
rpx
;
line-height
:
30
rpx
;
font-weight
:
500
;
color
:
#111
;
}
.hotel-list-item
.hotel-info
.hotel-start
.other-rate
.line
{
background-color
:
#DFBE6E
;
height
:
6px
;
bottom
:
2px
;
left
:
0
;
right
:
0
;
position
:
absolute
;
z-index
:
1
;
}
.hotel-list-item
.hotel-info
.localtion
{
font-size
:
24
rpx
;
font-weight
:
400
;
color
:
#999999
;
line-height
:
30
rpx
;
text-overflow
:
-o-ellipsis-lastline
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
display
:
-webkit-box
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
margin-bottom
:
10
rpx
;
}
.hotel-list-item
.hotel-info
.price
{
margin-top
:
10
rpx
;
font-weight
:
500
;
color
:
#000
;
font-size
:
20
rpx
;
text-align
:
right
;
}
.hotel-list-item
.hotel-info
.price
.money
{
font-size
:
36
rpx
;
}
</
style
>
pages/ticketCoupons/components/subscribeTicket.vue
View file @
3983ab31
...
...
@@ -239,8 +239,9 @@
}
.chooseTicketAndNum
{
height
:
335rpx
;
padding
:
30rpx
;
// height: 335rpx;
padding
:
30rpx
30rpx
2rpx
30rpx
;
.chooseTicket
{
display
:
flex
;
...
...
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