|
@@ -3,7 +3,6 @@ import ax from '@/assets/icons/housemantj/onlove.png'
|
3
|
3
|
import dw from '@/assets/icons/housemantj/loc-o.png'
|
4
|
4
|
import titlejd from '@/assets/icons/housemantj/goodTourist.png'
|
5
|
5
|
import titlems from '@/assets/icons/housemantj/goodFood.png'
|
6
|
|
-import { compressImage } from '@/utils'
|
7
|
6
|
import share from '@/assets/icons/housemantj/touristShare.png'
|
8
|
7
|
import good from '@/assets/icons/housemantj/touristGood.png'
|
9
|
8
|
import baozan from '@/assets/icons/housemantj/bgood.png'
|
|
@@ -22,6 +21,7 @@ import Cards from '@/components/foodCards/foodCards.jsx'
|
22
|
21
|
import Taro, { useShareAppMessage } from '@tarojs/taro'
|
23
|
22
|
import Extend from '../components/Extend/extend'
|
24
|
23
|
import './sceneryDetails.less'
|
|
24
|
+import ImageList from "../components/ImageList";
|
25
|
25
|
|
26
|
26
|
|
27
|
27
|
|
|
@@ -35,10 +35,6 @@ export default withLayout((props) => {
|
35
|
35
|
|
36
|
36
|
//banner图集数组
|
37
|
37
|
const [imglist, setimglist] = useState([])
|
38
|
|
- const [index, setIndex] = useState(0)
|
39
|
|
- const handchange = (e) => {
|
40
|
|
- setIndex(e.detail.current)
|
41
|
|
- }
|
42
|
38
|
|
43
|
39
|
//本店指南
|
44
|
40
|
const [extend, setExtend] = useState([])
|
|
@@ -115,26 +111,7 @@ export default withLayout((props) => {
|
115
|
111
|
<SpinBox loading={loading} className='index-container' style={{ padding: '0 30rpx', background: '#F8F8F8' }}>
|
116
|
112
|
<scroll-view scrollY style={{ height: '100%' }}>
|
117
|
113
|
<view className='storeDetails'>
|
118
|
|
- <View className='huadong'>
|
119
|
|
- <Swiper
|
120
|
|
- className='swiper'
|
121
|
|
- circular
|
122
|
|
- onChange={handchange}
|
123
|
|
- >
|
124
|
|
- {
|
125
|
|
- imglist.map((item) => (
|
126
|
|
-
|
127
|
|
- <SwiperItem>
|
128
|
|
- <image src={compressImage(item.url)} mode='aspectFit' className='storeImage' />
|
129
|
|
- </SwiperItem>
|
130
|
|
- ))}
|
131
|
|
- </Swiper>
|
132
|
|
- <view className='tpPage'>
|
133
|
|
- <text>
|
134
|
|
- {index + 1}/{imglist.length}
|
135
|
|
- </text>
|
136
|
|
- </view>
|
137
|
|
- </View>
|
|
114
|
+ <ImageList imglist={imglist} />
|
138
|
115
|
|
139
|
116
|
<view className='storeJs'>
|
140
|
117
|
<view className='introduce'>
|