|
@@ -2,10 +2,7 @@ import CustomNav from '@/components/CustomNav'
|
2
|
2
|
import withLayout from '@/layouts'
|
3
|
3
|
import { getShopDetail, getShopPackage, getExtendContent } from '@/services/home'
|
4
|
4
|
import { useState, useEffect, useRef } from 'react'
|
5
|
|
-
|
6
|
5
|
import { Swiper, SwiperItem } from '@tarojs/components';
|
7
|
|
-import BossCard from '@/components/BossCard'
|
8
|
|
-
|
9
|
6
|
import Star from '@/components/Star/Star.jsx'
|
10
|
7
|
import Cards from '@/components/foodCards/foodCards.jsx'
|
11
|
8
|
import ax from '@/assets/icons/housemantj/onlove.png'
|
|
@@ -14,15 +11,15 @@ import dw from '@/assets/icons/housemantj/地址.png'
|
14
|
11
|
import zhuandao from '@/assets/icons/housemantj/backTop.png'
|
15
|
12
|
import titlezs from '@/assets/icons/housemantj/标题装饰.png'
|
16
|
13
|
import showMore from '@/assets/icons/housemantj/查看更多.png'
|
17
|
|
-import share from '../../../assets/icons/housemantj/景点分享.png'
|
18
|
|
-import good from '../../../assets/icons/housemantj/景点爆赞.png'
|
19
|
|
-import collection from '../../../assets/icons/housemantj/景点收藏.png'
|
20
|
|
-import hongxin from '../../../assets/icons/housemantj/已收藏.png'
|
21
|
|
-import './foodDetails.less'
|
|
14
|
+import share from '@/assets/icons/housemantj/景点分享.png'
|
|
15
|
+import good from '@/assets/icons/housemantj/景点爆赞.png'
|
|
16
|
+import baozan from '@/assets/icons/housemantj/爆赞.png'
|
|
17
|
+import weibaozan from '@/assets/icons/housemantj/未赞.png'
|
22
|
18
|
import Taro from '@tarojs/taro'
|
23
|
|
-import Extend from '../components/Extend/extend'
|
24
|
19
|
import useSave from "@/utils/hooks/useSave"
|
25
|
20
|
import useLike from "@/utils/hooks/useLike"
|
|
21
|
+import Extend from '../components/Extend/extend'
|
|
22
|
+import './foodDetails.less'
|
26
|
23
|
|
27
|
24
|
export default withLayout((props) => {
|
28
|
25
|
const { router, person } = props
|
|
@@ -147,7 +144,7 @@ export default withLayout((props) => {
|
147
|
144
|
<text className='t1'>¥</text>
|
148
|
145
|
{detail.averagePrice / 100}/人
|
149
|
146
|
<view className='bzRight'>
|
150
|
|
- <image src={ax} style={{ width: '15px', height: '15px', marginRight: '11rpx', marginBottom: '-2px' }} />
|
|
147
|
+ <image src={baozan} style={{ width: '15px', height: '15px', marginRight: '11rpx', marginBottom: '-2px' }} />
|
151
|
148
|
爆赞{detail.likeNum}</view>
|
152
|
149
|
</view>
|
153
|
150
|
</view>
|
|
@@ -200,10 +197,10 @@ export default withLayout((props) => {
|
200
|
197
|
<image className='share' src={share} />分享
|
201
|
198
|
</view>
|
202
|
199
|
<view className='tab' onClick={toggleLike}>
|
203
|
|
- <image className='good' src={isLike > 0 ? ax : good} />{isLike > 0 ? '已爆赞' : '爆赞'}
|
|
200
|
+ <image className='good' src={isLike > 0 ? baozan : weibaozan} />{isLike > 0 ? '已爆赞' : '爆赞'}
|
204
|
201
|
</view>
|
205
|
202
|
<view className='tab' onClick={toggleSave}>
|
206
|
|
- <image className='collection' src={isSaved > 0 ? hongxin : collection} />{isSaved > 0 ? '已收藏' : '加入收藏'}
|
|
203
|
+ <image className='collection' src={isSaved > 0 ? ax : good} />{isSaved > 0 ? '已收藏' : '加入收藏'}
|
207
|
204
|
</view>
|
208
|
205
|
</view>
|
209
|
206
|
</view>
|