forked from Gitlink/forgeplus-react
41 lines
1.6 KiB
TypeScript
41 lines
1.6 KiB
TypeScript
//没有数据时显示
|
||
import React, { FC, useEffect, useState } from 'react';
|
||
import styles from '../index.less'
|
||
interface Nulldata{
|
||
setIsAddmodel:any
|
||
setJoin:any
|
||
HeaderDetail:any
|
||
user:any
|
||
dispatch:any
|
||
}
|
||
function Nulldata({setIsAddmodel,setJoin,HeaderDetail,user,dispatch}:Nulldata){
|
||
return(
|
||
<div className={styles.nullnodata}>
|
||
<img src={require('@/assets/images/Noentry.jpg')} />
|
||
<p style={{fontSize:'16px',color:'#333333'}} className="bootomtext">您当前未报名,请先<span onClick={()=>{
|
||
if(HeaderDetail?.is_authentication&&!user?.userInfo?.authentication){
|
||
dispatch({
|
||
type: 'shixunsDetail/setActionTabs',
|
||
payload: {
|
||
key: 'Banner-Auth',
|
||
},
|
||
})
|
||
return
|
||
}
|
||
setJoin(true)
|
||
}} style={{color:'#1890FF',cursor: "pointer"}}>加入战队</span>或<span onClick={()=>{
|
||
if(HeaderDetail?.is_authentication&&!user?.userInfo?.authentication){
|
||
dispatch({
|
||
type: 'shixunsDetail/setActionTabs',
|
||
payload: {
|
||
key: 'Banner-Auth',
|
||
},
|
||
})
|
||
return
|
||
}
|
||
setIsAddmodel(true)
|
||
}} style={{color:'#1890FF',cursor: "pointer"}} >创建战队</span>,</p>
|
||
<p style={{fontSize:'16px',color:'#333333'}}>加入/创建战队后将自动报名</p>
|
||
</div>
|
||
)
|
||
}export default Nulldata |