|
@@ -1,7 +1,7 @@
|
|
import { useCallback, useState } from "react"
|
|
import { useCallback, useState } from "react"
|
|
import React from 'react'
|
|
import React from 'react'
|
|
import { Col, Row, Radio, Input, Button, message, Space, Image, Modal, Popconfirm } from "antd";
|
|
import { Col, Row, Radio, Input, Button, message, Space, Image, Modal, Popconfirm } from "antd";
|
|
-let name = {
|
|
|
|
|
|
+let name: any = {
|
|
0: '小说账号失败列表:',
|
|
0: '小说账号失败列表:',
|
|
1: '游戏账号失败列表:',
|
|
1: '游戏账号失败列表:',
|
|
}
|
|
}
|
|
@@ -13,7 +13,7 @@ function QQAuth(props: { qqVisible: boolean, callBack: () => void, adAppType: 0
|
|
let [visible, setVisible] = useState(false)
|
|
let [visible, setVisible] = useState(false)
|
|
let [loading, setLoading] = useState(false)
|
|
let [loading, setLoading] = useState(false)
|
|
let [codeUrl, setCodeUrl] = useState('')
|
|
let [codeUrl, setCodeUrl] = useState('')
|
|
- let [err, setErr] = useState({})
|
|
|
|
|
|
+ let [err, setErr] = useState<any>({})
|
|
let [outTime, setOutTime] = useState(0)
|
|
let [outTime, setOutTime] = useState(0)
|
|
let [data, setData] = useState({
|
|
let [data, setData] = useState({
|
|
userId: localStorage.getItem('userId'),
|
|
userId: localStorage.getItem('userId'),
|
|
@@ -25,12 +25,12 @@ function QQAuth(props: { qqVisible: boolean, callBack: () => void, adAppType: 0
|
|
smType: smType ? "WX" : "QQ",
|
|
smType: smType ? "WX" : "QQ",
|
|
isOld
|
|
isOld
|
|
})
|
|
})
|
|
- let adAppIdonChange = useCallback((checkedValue) => {
|
|
|
|
|
|
+ let adAppIdonChange = useCallback((checkedValue: any) => {
|
|
let v = checkedValue.target.value
|
|
let v = checkedValue.target.value
|
|
console.log("checkedValue===>", v)
|
|
console.log("checkedValue===>", v)
|
|
setData({ ...data, adAppType: v })
|
|
setData({ ...data, adAppType: v })
|
|
}, [data])
|
|
}, [data])
|
|
- let adUnitTypeChange = useCallback((adUnitType) => {
|
|
|
|
|
|
+ let adUnitTypeChange = useCallback((adUnitType: any) => {
|
|
let v = adUnitType.target.value
|
|
let v = adUnitType.target.value
|
|
console.log("checkedValue===>", v)
|
|
console.log("checkedValue===>", v)
|
|
setData({ ...data, adUnitType: v })
|
|
setData({ ...data, adUnitType: v })
|
|
@@ -102,7 +102,7 @@ function QQAuth(props: { qqVisible: boolean, callBack: () => void, adAppType: 0
|
|
message.success('清理成功!!!!请重新扫码授权登录!!!')
|
|
message.success('清理成功!!!!请重新扫码授权登录!!!')
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- let userIdChange = useCallback((e) => {
|
|
|
|
|
|
+ let userIdChange = useCallback((e: any) => {
|
|
let value = e.target.value
|
|
let value = e.target.value
|
|
let arr = value.split(/,|,/)
|
|
let arr = value.split(/,|,/)
|
|
let newArr = arr?.map((str: string) => Number(str.replace(/\s/ig, '')))
|
|
let newArr = arr?.map((str: string) => Number(str.replace(/\s/ig, '')))
|
|
@@ -136,7 +136,8 @@ function QQAuth(props: { qqVisible: boolean, callBack: () => void, adAppType: 0
|
|
<Col span={3}><h3>平台选择:</h3></Col>
|
|
<Col span={3}><h3>平台选择:</h3></Col>
|
|
<Col span={20}>
|
|
<Col span={20}>
|
|
<Radio.Group style={{ width: '100%' }} onChange={adAppIdonChange} defaultValue={data.adAppType}>
|
|
<Radio.Group style={{ width: '100%' }} onChange={adAppIdonChange} defaultValue={data.adAppType}>
|
|
- {adAppType === 0 ? <Radio value={0}>小说</Radio> : <Radio value={1}>游戏</Radio>}
|
|
|
|
|
|
+ <Radio value={0}>小说</Radio>
|
|
|
|
+ <Radio value={1}>游戏</Radio>
|
|
</Radio.Group>
|
|
</Radio.Group>
|
|
</Col>
|
|
</Col>
|
|
</Row>
|
|
</Row>
|