|
@@ -3,9 +3,6 @@ import { useMemo } from 'react'
|
3
|
3
|
import Taro from '@tarojs/taro'
|
4
|
4
|
import useSave from "@/utils/hooks/useSave"
|
5
|
5
|
import { compressImage, random } from '@/utils'
|
6
|
|
-import msTip from '@/assets/icons/housemantj/foodtip.png'
|
7
|
|
-import mjTip from '@/assets/icons/housemantj/mjtip.png'
|
8
|
|
-import location from '@/assets/icons/housemantj/location.png'
|
9
|
6
|
import onlove from '@/assets/icons/housemantj/onlove.png'
|
10
|
7
|
import love from '@/assets/icons/housemantj/bheart.png'
|
11
|
8
|
import VideoStart from '@/assets/icons/housemantj/VideoStart.png'
|
|
@@ -22,16 +19,15 @@ export default (props) => {
|
22
|
19
|
|
23
|
20
|
const [isSaved, toggleSave] = useSave(item.isSaved, 'note', item.noteId)
|
24
|
21
|
const Detail = () => {
|
25
|
|
-
|
26
|
22
|
Taro.navigateTo({ url: `/pages/details/NoteDetails/index?id=${item.noteId}` });
|
27
|
23
|
|
28
|
|
-
|
29
|
24
|
}
|
30
|
25
|
return (
|
|
26
|
+
|
31
|
27
|
<view className={uqClass} style={{ overflow: 'hidden' }}>
|
32
|
28
|
<view className='contentCard' style={style}>
|
33
|
29
|
<view className='cardTop'>
|
34
|
|
- <image mode='widthFix' onClick={Detail} src={compressImage(item.poster)} className='cCardimg' />
|
|
30
|
+ <image mode='widthFix' src={compressImage(item.poster)} className='cCardimg' />
|
35
|
31
|
<image className='lefttips' src={item.noteType == 'video' ? VideoStart : ''} />
|
36
|
32
|
<image onClick={toggleSave} src={isSaved > 0 ? onlove : love} className='loveharde'></image>
|
37
|
33
|
</view>
|
|
@@ -41,5 +37,4 @@ export default (props) => {
|
41
|
37
|
</view>
|
42
|
38
|
</view>
|
43
|
39
|
)
|
44
|
|
-
|
45
|
40
|
}
|