|
@@ -1,6 +1,7 @@
|
1
|
1
|
import React, { useState, useEffect } from 'react'
|
2
|
2
|
import './index.scss'
|
3
|
3
|
import { Swiper, SwiperItem, Image } from '@tarojs/components'
|
|
4
|
+import { getImgURL } from '@/utils/image'
|
4
|
5
|
|
5
|
6
|
export default function Banner (props) {
|
6
|
7
|
const { List = [] } = props
|
|
@@ -11,7 +12,7 @@ export default function Banner (props) {
|
11
|
12
|
List.map((item, index) => (
|
12
|
13
|
<SwiperItem key={`Banner-${index}`}>
|
13
|
14
|
<view className="swiper-item">
|
14
|
|
- <Image mode='aspectFill' className='centerLabel' src={item.image || null} />
|
|
15
|
+ <Image mode='aspectFill' className='centerLabel' src={getImgURL(item.image)} />
|
15
|
16
|
</view>
|
16
|
17
|
</SwiperItem>
|
17
|
18
|
))
|