import React, { Component } from "react"; import Taro from "@tarojs/taro"; import { View, Image } from "@tarojs/components"; import Skeleton from "taro-skeleton"; import { getClockState } from "../../utils/tools"; import ListBottomStart from "../../components/common/listBottomStart"; import RevokeWhite from "../../image/revokeWhite.png"; import "./index.less"; class MyList extends Component { constructor(props) { super(props); } render() { let seeView = this.props.seeView; return ( {this.props.list.length === 0 && this.props.listState === "LOADING" ? this.props.typelist?.map((v) => ( )) : null} {this.props.list.map((v, k) => ( { Taro.navigateTo({ url: "/pages/egressDetails/index?id=" + v.id + "&index=" + k + "&status=" + seeView, }); }} > {v.status === 3 ? ( ) : null} {v.type === 3 ? v.mainName : v.aname}提交的公出申请 {v.updateStatus == 1 && } {v.createTimes} 公出企业: {v.nickname} 公出地点: {v.userName} 开始时间:{v.releaseStarts} {this.props.type === 0 && v.status !== 3 ? ( { e.stopPropagation(); Taro.eventCenter.trigger("GoPunchIn", v); Taro.switchTab({ url: "/pages/punchClock/index", }); }} > {v.clockIn === 1 ? "更新打卡" : "去打卡"} ) : null} 结束时间:{v.releaseEnds} { v.assistAidName != null && v.assistAidName != "" && 技术协单:{v.assistAidName.replace(/,/g, " ")} } {v.clockIn === 1 ? ( 已打卡 ) : ( 未打卡 )} {getClockState(v.status).title} ))} { this.props.onRefresh; }} /> ); } } export default MyList;