index.tsx 727 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
import TempItem from '../temp_item'
import DetailTop from '../detail_top'
import { View, Text } from '@tarojs/components'

import './index.scss'

interface IProps {
  detailData: any
  filmDataList: any[]
}

export default function TempDetailContent(props: IProps) {
  const { detailData, filmDataList } = props
  return (
    <View className="temp-detail">
      <DetailTop {...detailData} />
      <View className="temp-detail-list">
        <Text className="temp-detail-list-title">我的视片({filmDataList.length})</Text>
        <View className="temp-detail-list-content">
          {filmDataList && filmDataList.map(item => <TempItem {...item} key={item.templateId} />)}
        </View>
      </View>
    </View>
  )
}