|
@@ -1,5 +1,6 @@
|
1
|
1
|
import Taro, { Component } from '@tarojs/taro'
|
2
|
2
|
import './index.scss'
|
|
3
|
+import { getThumbnail } from '@utils/tools'
|
3
|
4
|
const dotImg = require('@assets/dot.png')
|
4
|
5
|
export default class Index extends Component {
|
5
|
6
|
static options = {
|
|
@@ -22,7 +23,7 @@ export default class Index extends Component {
|
22
|
23
|
return (
|
23
|
24
|
<View className='item' onClick={onClick.bind(this, data)}>
|
24
|
25
|
<View className='item__top'>
|
25
|
|
- <Image className='item__img' src={imgSrc}></Image>
|
|
26
|
+ <Image className='item__img' src={getThumbnail(imgSrc)}></Image>
|
26
|
27
|
{data.marketStatus &&
|
27
|
28
|
<View className={data.marketStatus == '在售' ? 'item__status sale' : data.marketStatus == '售罄' ? 'item__status soldout' : 'item__status waitsale'}>{data.marketStatus}</View>}
|
28
|
29
|
<View className='item__right'>
|
|
@@ -53,8 +54,8 @@ export default class Index extends Component {
|
53
|
54
|
<Text className='item__bottom__seenum'>{total}人围观</Text>
|
54
|
55
|
|
55
|
56
|
<View className='see__img'>
|
56
|
|
- {records.slice(0, 4).map(item => <Image className='userImg' key={item.uvId} src={item.photoOravatar}></Image>)}
|
57
|
|
- {records.length > 4 && <Image className="dot-img" src={dotImg}></Image>}
|
|
57
|
+ {records.slice(0, 4).map(item => <Image className='userImg' key={item.uvId} src={getThumbnail(item.photoOravatar)}></Image>)}
|
|
58
|
+ {records.length > 4 && <Image className="dot-img" src={getThumbnail(dotImg)}></Image>}
|
58
|
59
|
</View>
|
59
|
60
|
|
60
|
61
|
</View>
|