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
b0a54f95
Commit
b0a54f95
authored
Jun 04, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
24cb3d88
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
4 deletions
+76
-4
detail.vue
pages/hotel/detail.vue
+61
-4
index.vue
pages/index/index.vue
+15
-0
No files found.
pages/hotel/detail.vue
View file @
b0a54f95
...
...
@@ -63,7 +63,10 @@
</view>
<!-- 关注 -->
<view
class=
"op-box"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1621940804000_709.png"
style=
"margin-right: 17rpx;"
></image>
<view
style=
"position: relative;margin-right: 17rpx;width:32px;height:32px;display:inline-block;"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1621940804000_709.png"
></image>
<button
class=
"detail_ShareBtn"
open-type=
"share"
></button>
</view>
<image
v-if=
"!islike"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1621940804000_61.png"
@
click=
"changeLike"
></image>
<image
v-if=
"islike"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1621940804000_953.png"
...
...
@@ -268,7 +271,8 @@
dayObj
:{},
hotelData
:{}
,
//传递到房间预订组件
startDay
:
''
,
endDay
:
''
endDay
:
''
,
Up
:
0
}
},
components
:
{
...
...
@@ -278,7 +282,7 @@
canlendar
},
created
()
{
this
.
Up
=
uni
.
getStorageSync
(
"mall_UserInfo"
)?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserPageType
:
0
;
},
onLoad
(
options
)
{
this
.
id
=
options
.
id
;
...
...
@@ -550,7 +554,52 @@
}
}
);
}
},
//分享朋友圈
onShareTimeline
()
{
let
uid
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserId
:
0
;
if
(
uid
==
0
){
uid
=
uni
.
getStorageSync
(
"pid"
)?
uni
.
getStorageSync
(
"pid"
).
pid
:
0
}
let
SmallShopId
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
SmallShopId
:
0
;
if
(
SmallShopId
==
0
){
//如果微店id为0 去找所属微店id
SmallShopId
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserSmallShopId
:
0
;
}
let
title
=
this
.
dataList
.
HotelName
?
this
.
dataList
.
HotelName
:
'帖子'
;
let
imageUrl
=
this
.
dataList
.
HotelImg
&&
this
.
dataList
.
HotelImg
.
length
>
0
?
this
.
dataList
.
HotelImg
[
0
]:
''
;
let
id
=
this
.
id
;
return
{
title
:
title
,
query
:
"id="
+
this
.
id
+
"&user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
this
.
Up
+
'&JumpType=18'
+
'&dayObj='
+
JSON
.
stringify
(
this
.
dayObj
)
+
'&searchObj='
+
JSON
.
stringify
(
this
.
searchObj
),
imageUrl
:
imageUrl
,
};
},
//分享给朋友
onShareAppMessage
(
res
)
{
let
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
let
uid
=
u
.
UserId
?
u
.
UserId
:
0
;
if
(
uid
==
0
){
uid
=
uni
.
getStorageSync
(
"pid"
)?
uni
.
getStorageSync
(
"pid"
).
pid
:
0
}
let
SmallShopId
=
u
.
SmallShopId
?
u
.
SmallShopId
:
0
;
if
(
SmallShopId
==
0
){
//如果微店id为0 去找所属微店id
SmallShopId
=
u
.
UserSmallShopId
?
u
.
UserSmallShopId
:
0
}
return
{
title
:
this
.
dataList
.
HotelName
?
this
.
dataList
.
HotelName
:
'帖子'
,
path
:
"/pages/index/index?id="
+
this
.
id
+
"&user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
this
.
Up
+
'&JumpType=18'
+
'&dayObj='
+
JSON
.
stringify
(
this
.
dayObj
)
+
'&searchObj='
+
JSON
.
stringify
(
this
.
searchObj
),
imageUrl
:
this
.
dataList
.
HotelImg
&&
this
.
dataList
.
HotelImg
.
length
>
0
?
this
.
dataList
.
HotelImg
[
0
]:
''
,
};
},
},
}
</
script
>
...
...
@@ -988,4 +1037,12 @@
.hotel-detail
.media
.media-info
.mi-left
{
flex
:
1
;
}
.detail_ShareBtn
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
left
:
0
;
top
:
0
;
opacity
:
0
}
</
style
>
pages/index/index.vue
View file @
b0a54f95
...
...
@@ -169,6 +169,9 @@
orderPopupdata
:{},
//离线收益的弹窗
showorder
:
false
,
//显示弹出
carMsg
:
''
,
//景点专车分享带过来的字段
id
:
0
,
//酒店带过来字段
dayObj
:
''
,
//酒店带过来字段
searchObj
:
''
//酒店带过来字段
};
},
components
:
{
...
...
@@ -285,6 +288,7 @@
CounponPassword
:
options
.
CounponPassword
});
}
if
(
options
&&
options
.
KeyWord
)
{
//口令
uni
.
setStorageSync
(
"KeyWord"
,
{
KeyWord
:
options
.
KeyWord
...
...
@@ -353,6 +357,15 @@
if
(
options
&&
options
.
money
)
{
//储值卡
this
.
cardsmoney
=
options
.
money
;
}
if
(
options
&&
options
.
id
){
this
.
id
=
options
.
id
}
if
(
options
&&
options
.
dayObj
){
this
.
dayObj
=
options
.
dayObj
}
if
(
options
&&
options
.
searchObj
){
this
.
searchObj
=
options
.
searchObj
}
if
(
options
&&
options
.
OrderId
)
{
//代付订单id
this
.
OrderId
=
options
.
OrderId
;
}
...
...
@@ -803,6 +816,8 @@
uni
.
navigateTo
({
url
:
"/pages/restaurant/details?id"
+
that
.
GoodsId
});
}
else
if
(
that
.
JumpType
==
17
){
//景点专车
uni
.
navigateTo
({
url
:
'/pages/guidecar/bookaCarList?carMsg='
+
that
.
carMsg
})
}
else
if
(
that
.
JumpType
==
18
){
//酒店详情
uni
.
navigateTo
({
url
:
'/pages/hotel/detail?id='
+
that
.
id
+
'&dayObj='
+
that
.
dayObj
+
'&searchObj='
+
that
.
searchObj
})
}
},
500
);
},
...
...
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