bot安装-详情-头像裂开+新建站点实名认证判断
This commit is contained in:
parent
e6491776c5
commit
117c79853f
|
|
@ -3,6 +3,7 @@ import { Button, Checkbox, message, Radio, Select, Switch, Spin, Tooltip } from
|
|||
import axios from "axios";
|
||||
import { Link } from "react-router-dom";
|
||||
import { getInstallBot, updateInstallBot } from "../../../../softbot/api";
|
||||
import LogoBot from '../../../Settings/image/logoBot.png';
|
||||
import { getImageUrl } from 'educoder';
|
||||
import './index.scss';
|
||||
import '../exploit/index.scss';
|
||||
|
|
@ -158,7 +159,7 @@ function DispositionDetail(props){
|
|||
<div className="dispositionDetailBox">
|
||||
<div className="oneLine mb30">
|
||||
{botDetail && <div className="oneLine">
|
||||
<img src={getImageUrl(botDetail.logo)} alt="" className="botImg imgBox"/>
|
||||
<img src={(botDetail.logo && !(botDetail.logo.indexOf("347246")>-1 || botDetail.logo.indexOf("412603")>-1)) ? getImageUrl(botDetail.logo) : LogoBot} alt="" className="botImg imgBox"/>
|
||||
<div className="ml40 font-16">
|
||||
<div className="font-22">
|
||||
<a href={`/softbot/${id}`}>{botDetail && botDetail.market_name}</a>
|
||||
|
|
|
|||
|
|
@ -38,9 +38,16 @@ function MySiteList(props){
|
|||
return <Spin spinning={loading}>
|
||||
<FlexAJ className="mySites_head">
|
||||
<span>我的站点</span>
|
||||
{id_card_verify && website_permission && total >= 1 ? <Tooltip title="您已存在站点,请勿重复创建">
|
||||
<Button type="primary" disabled>新建站点</Button>
|
||||
</Tooltip> : <Button type="primary" onClick={()=>{history.push(`/settings/mysite/create`)}}>新建站点</Button>}
|
||||
{
|
||||
!id_card_verify ?
|
||||
<Tooltip title="您还没有实名认证,无法创建站点">
|
||||
<Button type="primary" disabled>新建站点</Button>
|
||||
</Tooltip>:
|
||||
id_card_verify && website_permission && total >= 1 ?
|
||||
<Tooltip title="您已存在站点,请勿重复创建">
|
||||
<Button type="primary" disabled>新建站点</Button>
|
||||
</Tooltip> :
|
||||
<Button type="primary" onClick={()=>{history.push(`/settings/mysite/create`)}}>新建站点</Button>}
|
||||
</FlexAJ>
|
||||
{/* 站点权限被管理员关闭 */}
|
||||
{id_card_verify && !website_permission && <div className="tipsBox font-15 mt20">您的站点权限被锁定,请联系平台管理员。</div>}
|
||||
|
|
|
|||
Loading…
Reference in New Issue