|
|
|
@ -1,4 +1,4 @@ |
|
|
|
|
import {Video, View} from "@tarojs/components"; |
|
|
|
|
import {Video, View, Text, Image} from "@tarojs/components"; |
|
|
|
|
import {FC, useState} from "react"; |
|
|
|
|
import Taro from "@tarojs/taro"; |
|
|
|
|
import styles from './videoFull.module.scss' |
|
|
|
@ -6,6 +6,7 @@ import {brandApi, HomeApi} from "@/api"; |
|
|
|
|
import Collect from "@/components/collect/collect"; |
|
|
|
|
import Spin from "@/components/spinner"; |
|
|
|
|
import VideoEvent from "@/hooks/videoEvent"; |
|
|
|
|
import palyWhite from '@/static/img/palyWhite.png' |
|
|
|
|
|
|
|
|
|
interface Params { |
|
|
|
|
id: string |
|
|
|
@ -107,16 +108,22 @@ const VideoFull: FC = () => { |
|
|
|
|
onPause={() => setpalying(false)} |
|
|
|
|
onError={onError} |
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
<View className={styles.text}> |
|
|
|
|
<View className='font-32 font-weight'>{data.title}</View> |
|
|
|
|
<View className='font-28 mt-2 text-ellipsis-2'>{data.introduction}</View> |
|
|
|
|
</View> |
|
|
|
|
|
|
|
|
|
<View className={styles.title}> |
|
|
|
|
<View className='flex'> |
|
|
|
|
<View className='font-36 font-weight flex-1 pr-3 text-row1'>{data.title}</View> |
|
|
|
|
<Collect owner_id={Number(id)} |
|
|
|
|
owner_type={2} |
|
|
|
|
styles={{color: '#fff', width: 'auto'}} |
|
|
|
|
select={data.collects}/> |
|
|
|
|
<View className='flex align-center mr-5'> |
|
|
|
|
<Image src={palyWhite} mode='widthFix' className={styles.img}/> |
|
|
|
|
<Text>{data.video_view}</Text> |
|
|
|
|
</View> |
|
|
|
|
<View className='font-32'>播放{data.video_view}</View> |
|
|
|
|
<View className='font-32 mt-1 text-ellipsis-1'>{data.introduction}</View> |
|
|
|
|
<Collect owner_id={Number(id)} |
|
|
|
|
owner_type={2} |
|
|
|
|
stylesImage={{width: '48rpx', height: '48rpx'}} |
|
|
|
|
styles={{color: '#fff', width: 'auto'}} |
|
|
|
|
select={data.collects}/> |
|
|
|
|
</View> |
|
|
|
|
</> : <Spin enable={enable} overlay/> |
|
|
|
|
} |
|
|
|
|