import React, { Component } from "react"; import Taro from "@tarojs/taro"; import { View, Image, Button } from "@tarojs/components"; import Skeleton from "taro-skeleton"; import { getClockState } from "../../utils/tools"; import ListBottomStart from "../../components/common/listBottomStart"; import "./index.less"; import sels from "../../image/sels.png"; import sel from "../../image/sel.png"; class MyList extends Component { constructor(props) { super(props); } render() { const { type, sublist = [] } = this.props return ( { this.props.list.length === 0 && this.props.listState === "LOADING" && this.props.typelist?.map((v) => ( )) } {this.props.list.length > 0 && this.props.list?.map((v, k) => ( { e.stopPropagation(); Taro.navigateTo({ url: `/pages/detail/index?id=${v.id}&type=${type}`, }); }} > { type == 1 && { e.stopPropagation(); v.processStatus == 1 ? this.props.onChecked(v) : Taro.showToast({ title: '该打卡信息已审核!', icon: 'none' }) }}> } {v.projectName} 负责人:{v.adminName} 打卡人员:{v.name} 创建时间:{v.createTime} 打卡工时:{v.duration} { v.processStatus == 1 && ( type == 0 ? 已打卡,待审核 : 去审核 ) } {v.processStatus == 2 && {type == 0 ? "已打卡,已审核" : "已审核"}} {v.processStatus == 3 && {type == 0 ? "已打卡,已驳回" : "已驳回"}} ))} { this.props.onRefresh; }} /> ); } } export default MyList;