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
7bcc99cb
Commit
7bcc99cb
authored
Jun 02, 2021
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/zk123/jz_travel
parents
983d382d
50aa9d45
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
36 deletions
+45
-36
bookaCarList.vue
pages/guidecar/bookaCarList.vue
+6
-3
hotel-good.vue
pages/hotel/components/hotel-good.vue
+15
-19
detail.vue
pages/hotel/detail.vue
+13
-12
list.vue
pages/hotel/list.vue
+1
-0
utils.js
plugin/utils.js
+10
-2
No files found.
pages/guidecar/bookaCarList.vue
View file @
7bcc99cb
...
...
@@ -372,7 +372,7 @@
</view>
<view
class=
"s-c-r prices"
>
<span
style=
'margin-top: 3px;font-size: 11px;'
>
¥
</span>
<span
style=
'font-weight: bold;'
>
{{
x
.
Price
}}
</span>
<span
style=
'font-weight: bold;'
>
{{
isdistributor
==
true
?
x
.
Price
:
x
.
B2C
Price
}}
</span>
<span
style=
'margin-top: 3px;font-size: 11px;'
>
起
</span>
</view>
</view>
...
...
@@ -404,7 +404,7 @@
</view>
<view
class=
"s-c-r prices"
v-if=
"index==0"
>
<span
style=
'margin-top: 3px;font-size: 11px;'
>
¥
</span>
<span
style=
'font-weight: bold;'
>
{{
x
.
Price
}}
</span>
<span
style=
'font-weight: bold;'
>
{{
isdistributor
==
true
?
x
.
Price
:
x
.
B2C
Price
}}
</span>
<span
style=
'margin-top: 3px;font-size: 11px;'
>
起
</span>
</view>
<view
class=
"s-c-r sold"
v-if=
"index==x.SiteList.length-1"
>
...
...
@@ -559,7 +559,8 @@
Arrive
:
''
,
StartDate
:
''
,
EndDate
:
''
,
}
},
isdistributor
:
false
,
}
...
...
@@ -575,6 +576,8 @@
this
.
msg
.
ArriveCityType
=
this
.
carMsg
.
ArriveCityType
;
this
.
msg
.
Q_Date
=
this
.
carMsg
.
Q_Date
;
}
this
.
isdistributor
=
this
.
$utils
.
getretailer
()
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
gettimeList
()
this
.
init
();
...
...
pages/hotel/components/hotel-good.vue
View file @
7bcc99cb
...
...
@@ -9,9 +9,8 @@
<view
class=
"hotel-start"
>
<!-- TODO:判定是否为星级酒店,如果是显示星级,不是,显示另外一种方式 -->
<view
class=
"rate"
v-if=
"item.Star>=1&&item.Star
<
=
5
"
>
<u-rate
active-color=
"#FEB969"
inactive-color=
"#FFF"
is-fill=
"true"
:current=
"item.Star"
active-icon=
"star"
inactive-icon=
"star"
disabled
:count=
"5"
></u-rate>
<text
style=
"margin-left: 20rpx;vertical-align: top;"
>
{{
item
.
StarName
}}
</text>
<u-rate
active-color=
"#FEB969"
inactive-color=
"#b2b2b2"
:current=
"item.Star"
active-icon=
"star"
inactive-icon=
"star"
disabled
></u-rate>
<text
style=
"margin-left: 20rpx;vertical-align: top;"
>
{{
item
.
Star
+
'.0'
}}
</text>
</view>
<view
class=
"other-rate"
v-if=
"item.Star==9"
>
<text>
温泉酒店
</text>
...
...
@@ -24,8 +23,8 @@
</view>
<view
class=
"localtion"
>
{{
item
.
Address
}}
</view>
<view>
<u-tag
v-for=
"(subItem,subIndex) in item.TagList"
:key=
"subIndex"
style=
"margin-right:10rpx;"
:text=
"subItem"
bg-color=
"#FFF"
border-color=
"#DFBE6E"
color=
"#DFBE6E"
size=
"mini"
></u-tag>
<u-tag
v-for=
"(subItem,subIndex) in item.TagList"
:key=
"subIndex"
style=
"margin-right:10rpx;"
:text=
"subItem"
bg-color=
"#FFF"
border-color=
"#DFBE6E"
color=
"#DFBE6E"
size=
"mini"
></u-tag>
</view>
<view
class=
"price"
>
<text>
¥
</text>
...
...
@@ -44,13 +43,13 @@
type
:
Array
,
default
:
null
},
dayObj
:
{
dayObj
:{
type
:
Object
,
default
:
null
},
searchObj
:
{
type
:
Object
,
default
:
null
searchObj
:{
type
:
Object
,
default
:
null
}
},
data
()
{
...
...
@@ -61,17 +60,11 @@
created
()
{
console
.
log
(
this
.
HotelList
,
'hotel'
);
},
methods
:
{
getStar
(
num
)
{
if
(
num
)
{
return
num
.
toFixed
(
1
);
}
return
0.0
;
},
goHotelDetail
(
id
)
{
methods
:{
goHotelDetail
(
id
){
let
myDayObj
=
JSON
.
stringify
(
this
.
dayObj
);
uni
.
navigateTo
({
url
:
"/pages/hotel/detail?id="
+
id
+
'&dayObj='
+
myDayObj
+
'&searchObj='
+
JSON
.
stringify
(
this
.
searchObj
)
url
:
"/pages/hotel/detail?id="
+
id
+
'&dayObj='
+
myDayObj
+
'&searchObj='
+
JSON
.
stringify
(
this
.
searchObj
)
});
}
}
...
...
@@ -84,7 +77,7 @@
padding-bottom
:
30
rpx
;
border-bottom
:
1
rpx
solid
#E2E2E2
;
display
:
flex
;
align-items
:
center
;
align-items
:
flex-start
;
}
.hotel-list-item
.img-box
{
...
...
@@ -102,6 +95,7 @@
.hotel-list-item
.hotel-info
{
width
:
1px
;
flex
:
1
;
margin-top
:
20
rpx
;
}
.hotel-list-item
.hotel-info
.hotel-name
{
...
...
@@ -123,6 +117,8 @@
font-weight
:
500
;
color
:
#999999
;
line-height
:
30
rpx
;
display
:
flex
;
align-items
:
center
;
}
.hotel-list-item
.hotel-info
.hotel-start
.other-rate
{
...
...
pages/hotel/detail.vue
View file @
7bcc99cb
...
...
@@ -90,7 +90,7 @@
<view>
{{
dataList
.
AddressDes
}}
</view>
</view>
</view>
<view
class=
"loc-right"
>
<view
class=
"loc-right"
@
click=
"goMap(dataList.Address,dataList.Lng,dataList.Lat)"
>
<text
style=
"margin-right: 20rpx;"
>
地图详情
</text>
<u-icon
name=
"arrow"
size=
"20"
/>
</view>
...
...
@@ -336,17 +336,18 @@
);
},
goMap
(
name
,
lon
,
lat
)
{
let
newLon
=
parseFloat
(
lon
)
let
newLat
=
parseFloat
(
lat
)
wx
.
openLocation
({
latitude
:
l
at
,
longitude
:
l
on
,
latitude
:
newL
at
,
longitude
:
newL
on
,
scale
:
18
,
name
,
address
:
"武侯区科华中路 2 号"
,
success
:
(
res
)
=>
{
// console.log(res)
success
:(
res
)
=>
{
console
.
log
(
res
)
},
fail
:
(
err
)
=>
{
//
console.log(err)
console
.
log
(
err
)
}
})
},
...
...
pages/hotel/list.vue
View file @
7bcc99cb
...
...
@@ -423,6 +423,7 @@
font-weight
:
500
;
color
:
#111111
;
line-height
:
29
rpx
;
margin-top
:
-6px
;
}
.hotel-list
.search-box
.days
{
...
...
plugin/utils.js
View file @
7bcc99cb
...
...
@@ -29,10 +29,18 @@ function getRect(selector){//获取元素的信息
}).
exec
();
})
}
function
getretailer
(){
//判断是否是分销商
let
isdistributor
=
false
let
mall_UserInfo
=
uni
.
getStorageSync
(
"mall_UserInfo"
)?
uni
.
getStorageSync
(
"mall_UserInfo"
):{};
if
(
mall_UserInfo
.
IsDistrbutorUser
&&
mall_UserInfo
.
IsDistrbutorUser
==
1
){
isdistributor
=
true
}
return
isdistributor
}
export
default
{
calcContentHeight
,
SystemInfo
,
getRect
getRect
,
getretailer
}
\ 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