|
@@ -35,6 +35,16 @@ export default function LiveSale (props) {
|
35
|
35
|
}
|
36
|
36
|
}
|
37
|
37
|
|
|
38
|
+ const toDetail = (item) => {
|
|
39
|
+ return () => {
|
|
40
|
+ if(item.type === 'live') {
|
|
41
|
+ Taro.navigateTo({ url: `/pages/video/liveDetail/index?id=${item.id}&type=${item.type}` })
|
|
42
|
+ } else {
|
|
43
|
+ Taro.navigateTo({ url: `/pages/video/videoDetail/index?id=${item.id}` })
|
|
44
|
+ }
|
|
45
|
+ }
|
|
46
|
+ }
|
|
47
|
+
|
38
|
48
|
return (
|
39
|
49
|
<view className='components LiveSale'>
|
40
|
50
|
<view>
|
|
@@ -50,7 +60,7 @@ export default function LiveSale (props) {
|
50
|
60
|
{
|
51
|
61
|
PageList.map((item, index) => (
|
52
|
62
|
<view className='ListItem' key={`List-${index}`} style={{display: CurrentId === 1 || (CurrentId === 2 && item.kind === 'notice') || (CurrentId === 3 && item.kind === 'live') || (CurrentId === 4 && item.kind !== 'notice') ? 'inline-block' : 'none'}}>
|
53
|
|
- <Image mode='aspectFill' className='centerLabel' onClick={()=>{Taro.navigateTo({ url: `/pages/video/liveDetail/index?id=${item.id}&type=${item.type}` })}} src={`${getImgURL(item.images)}`} />
|
|
63
|
+ <Image mode='aspectFill' className='centerLabel' onClick={toDetail(item)} src={`${getImgURL(item.images)}`} />
|
54
|
64
|
</view>
|
55
|
65
|
))
|
56
|
66
|
}
|