|
|
|
@ -7,7 +7,7 @@ import Img from "@/components/image/image"; |
|
|
|
|
import {SearchApi} from "@/api/search"; |
|
|
|
|
import {AtLoadMore} from 'taro-ui' |
|
|
|
|
import {rfc33392time} from "@/utils/day"; |
|
|
|
|
import play from "@/static/img/play.png"; |
|
|
|
|
import play from "@/static/img/play-back.png"; |
|
|
|
|
|
|
|
|
|
type Props = { |
|
|
|
|
name: string |
|
|
|
@ -107,7 +107,8 @@ const SearchList: FC<Props> = ({name,clear}) => { |
|
|
|
|
{ |
|
|
|
|
d.data.table === 'brand' && |
|
|
|
|
<> |
|
|
|
|
<Img width={128} height={128} src={d.data['@data'].logo} mode='aspectFill' className={styles.image}/> |
|
|
|
|
<Img width={128} height={128} src={d.data['@data'].logo} mode='aspectFill' className={styles.image} |
|
|
|
|
errorType='brand'/> |
|
|
|
|
<View className={styles.rightBox}> |
|
|
|
|
<View className='font-weight mb-2 font-28'>{d.data.title}</View> |
|
|
|
|
<View className={styles.desc}>{d.data.content || '暂无品牌简介'}</View> |
|
|
|
@ -119,15 +120,18 @@ const SearchList: FC<Props> = ({name,clear}) => { |
|
|
|
|
<> |
|
|
|
|
<View className={styles.articleLeftBox}> |
|
|
|
|
<View className='font-weight mb-2 font-28 lh-40'>{d.data['@data'].title}</View> |
|
|
|
|
<View className={styles.desc}>{rfc33392time(d.data['@data'].created_at)} {d.data['@data'].page_view}阅读</View> |
|
|
|
|
<View |
|
|
|
|
className={styles.desc}>{rfc33392time(d.data['@data'].created_at)} {d.data['@data'].page_view}阅读</View> |
|
|
|
|
</View> |
|
|
|
|
<Img width={172} height={128} src={d.data['@data'].logo} mode='aspectFill' className={styles.image}/> |
|
|
|
|
<Img width={172} height={128} src={d.data['@data'].logo} mode='aspectFill' className={styles.image} |
|
|
|
|
errorType='course'/> |
|
|
|
|
</> |
|
|
|
|
} |
|
|
|
|
{ |
|
|
|
|
d.data.table === 'video_records' && |
|
|
|
|
<> |
|
|
|
|
<Img width={192} height={192} src={d.data['@data'].url_path} mode='aspectFill' className={styles.image}/> |
|
|
|
|
<Img width={192} height={192} src={d.data['@data'].url_path} mode='aspectFill' errorType='health' |
|
|
|
|
className={styles.image}/> |
|
|
|
|
<Image src={play} className={styles.play} mode='aspectFit'/> |
|
|
|
|
<View className={styles.videoRightBox}> |
|
|
|
|
<View className='font-weight mb-2 font-28 lh-40'>{d.data['@data'].title}</View> |
|
|
|
@ -139,18 +143,20 @@ const SearchList: FC<Props> = ({name,clear}) => { |
|
|
|
|
{ |
|
|
|
|
d.data.table === 'courses' && |
|
|
|
|
<> |
|
|
|
|
<Img width={192} height={138} src={d.data['@data'].thumb} mode='aspectFill' className={styles.image}/> |
|
|
|
|
<Img width={192} height={138} src={d.data['@data'].thumb} mode='aspectFill' className={styles.image} |
|
|
|
|
errorType='course'/> |
|
|
|
|
<View className={styles.courseRightBox}> |
|
|
|
|
<View className='font-weight mb-2 font-28 lh-40'>{d.data['@data'].title}</View> |
|
|
|
|
<View className={styles.desc}>课时:{d.data['@data'].class_hour}节 销量:{d.data['@data'].charge}</View> |
|
|
|
|
<View className={styles.desc}>课时:{d.data['@data'].class_hour}节 |
|
|
|
|
销量:{d.data['@data'].charge}</View> |
|
|
|
|
</View> |
|
|
|
|
</> |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
</View> |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
<View style={{width: '750rpx', textAlign: 'center', color: '#999'}} className="font-28 mt-3 mb-3">{text}</View> |
|
|
|
|
<View style={{width: '750rpx', textAlign: 'center', color: '#999'}} |
|
|
|
|
className="font-28 mt-3 mb-3">{text}</View> |
|
|
|
|
</> |
|
|
|
|
} |
|
|
|
|
{!loading && brands.length === 0 && <Empty name='空空如也'/>} |
|
|
|
|