|
@@ -1,22 +1,22 @@
|
1
|
1
|
import CustomNav from '@/components/CustomNav'
|
2
|
|
-import ax from '../../../assets/icons/housemantj/onlove.png'
|
3
|
|
-import dw from '../../../assets/icons/housemantj/地址.png'
|
4
|
|
-import titlejd from '../../../assets/icons/housemantj/推荐景点.png'
|
5
|
|
-import titlems from '../../../assets/icons/housemantj/推荐美食.png'
|
6
|
|
-import showMore from '../../../assets/icons/housemantj/查看更多.png'
|
7
|
|
-import share from '../../../assets/icons/housemantj/景点分享.png'
|
8
|
|
-import good from '../../../assets/icons/housemantj/景点爆赞.png'
|
9
|
|
-import baozan from '../../../assets/icons/housemantj/爆赞.png'
|
10
|
|
-import weibaozan from '../../../assets/icons/housemantj/未赞.png'
|
|
2
|
+import ax from '@/assets/icons/housemantj/onlove.png'
|
|
3
|
+import dw from '@/assets/icons/housemantj/地址.png'
|
|
4
|
+import titlejd from '@/assets/icons/housemantj/推荐景点.png'
|
|
5
|
+import titlems from '@/assets/icons/housemantj/推荐美食.png'
|
|
6
|
+import showMore from '@/assets/icons/housemantj/查看更多.png'
|
|
7
|
+import share from '@/assets/icons/housemantj/景点分享.png'
|
|
8
|
+import good from '@/assets/icons/housemantj/景点爆赞.png'
|
|
9
|
+import baozan from '@/assets/icons/housemantj/爆赞.png'
|
|
10
|
+import weibaozan from '@/assets/icons/housemantj/未赞.png'
|
11
|
11
|
import withLayout from '@/layouts'
|
12
|
12
|
import { useState, useEffect, useRef } from 'react'
|
13
|
13
|
import { getTouristDetail, getExtendContent, getRecommendList } from '@/services/home'
|
14
|
|
-import { Swiper, SwiperItem } from '@tarojs/components';
|
|
14
|
+import { Swiper, SwiperItem,Button } from '@tarojs/components';
|
15
|
15
|
import useSave from "@/utils/hooks/useSave"
|
16
|
16
|
import useLike from "@/utils/hooks/useLike"
|
17
|
|
-import Extend from '../components/Extend/extend'
|
18
|
17
|
import Cards from '@/components/foodCards/foodCards.jsx'
|
19
|
|
-import Taro from '@tarojs/taro'
|
|
18
|
+import Taro,{ useShareAppMessage } from '@tarojs/taro'
|
|
19
|
+import Extend from '../components/Extend/extend'
|
20
|
20
|
import './sceneryDetails.less'
|
21
|
21
|
|
22
|
22
|
|
|
@@ -84,6 +84,16 @@ export default withLayout((props) => {
|
84
|
84
|
setRecommend(res || [])
|
85
|
85
|
})
|
86
|
86
|
}, [])
|
|
87
|
+
|
|
88
|
+ // 分享
|
|
89
|
+ useShareAppMessage(()=>{
|
|
90
|
+ return {
|
|
91
|
+ title: detail.touristName,
|
|
92
|
+ path: `/pages/details/mjDetails/sceneryDetails?id=${id}`,
|
|
93
|
+ imageUrl: detail.poster,
|
|
94
|
+ }
|
|
95
|
+
|
|
96
|
+})
|
87
|
97
|
return (
|
88
|
98
|
<view className='page-index'>
|
89
|
99
|
<view className='index-navbar'>
|
|
@@ -153,6 +163,7 @@ export default withLayout((props) => {
|
153
|
163
|
</scroll-view>
|
154
|
164
|
</view>
|
155
|
165
|
<view className='bottomTab'>
|
|
166
|
+ <Button openType='share' className='sharebtn'>分享</Button>
|
156
|
167
|
<view className='tab'>
|
157
|
168
|
<image className='share' src={share} />分享
|
158
|
169
|
</view>
|