调整盲盒、ido兑换、公告

This commit is contained in:
myf 2022-06-24 14:28:01 +08:00
parent 661b9f99b1
commit 08bd178bf5
8 changed files with 27 additions and 12 deletions

View File

@ -1284,5 +1284,6 @@
"GIVING": "礼物", "GIVING": "礼物",
"PROPS": "道具", "PROPS": "道具",
"rarity": "稀有度", "rarity": "稀有度",
"success": "成功" "success": "成功",
"Exchange closed": "兑换已结束"
} }

View File

@ -31,6 +31,7 @@ const Menu = (props) => {
}, [userInfo]) }, [userInfo])
const sign = useSignLogin() const sign = useSignLogin()
const handleLogin = async (connectorID: ConnectorNames) => { const handleLogin = async (connectorID: ConnectorNames) => {
console.log(connectorID)
await login(connectorID) await login(connectorID)
setHasWalletLogin(true) setHasWalletLogin(true)
} }

View File

@ -37,12 +37,12 @@ export default {
referralChef: { referralChef: {
97: '0x0866962d208e91ea8804db3f547cccf22fe39ea7', 97: '0x0866962d208e91ea8804db3f547cccf22fe39ea7',
56: '0x0866962d208e91ea8804db3f547cccf22fe39ea7', // NEED CHANGE 邀请或则军团长 56: '0x0866962d208e91ea8804db3f547cccf22fe39ea7', // NEED CHANGE 邀请或则军团长
5: '0x9C08E33271ea01da9FbC72aE7bDa8FEdAa41ee59', 5: '0xafa64f22a09fc197949c45281b2ad381a2b623a3',
}, },
referralRewardChef: { referralRewardChef: {
97: '0x0fb12ffe4b38730b80c26f44fa540eabfd03a30e', 97: '0x0fb12ffe4b38730b80c26f44fa540eabfd03a30e',
56: '0x0fb12ffe4b38730b80c26f44fa540eabfd03a30e', // NEED CHANGE 邀请或则军团长收益 56: '0x0fb12ffe4b38730b80c26f44fa540eabfd03a30e', // NEED CHANGE 邀请或则军团长收益
5: '0x0fb12ffe4b38730b80c26f44fa540eabfd03a30e', 5: '0x9F59C9e98C79c129541d2b316D17F7F97089d067',
}, },
idoPurchase: { idoPurchase: {
97: '0x2f562A9fE0325501A6Aa92cd9e2081B026fC35aa', 97: '0x2f562A9fE0325501A6Aa92cd9e2081B026fC35aa',

View File

@ -1411,5 +1411,6 @@
"GIVING": "GIVING", "GIVING": "GIVING",
"PROPS": "PROPS", "PROPS": "PROPS",
"rarity": "rarity", "rarity": "rarity",
"success": "success" "success": "success",
"Exchange closed": "Exchange closed"
} }

View File

@ -5,6 +5,7 @@ import { useTranslation } from 'contexts/Localization'
// import Container from 'components/Layout/Container' // import Container from 'components/Layout/Container'
import { getAnnouncementPage, getAnnouncementDetail } from 'services/announcement' import { getAnnouncementPage, getAnnouncementDetail } from 'services/announcement'
import { Text, Flex, Image, Input, Heading } from '@pancakeswap/uikit' import { Text, Flex, Image, Input, Heading } from '@pancakeswap/uikit'
import Empty from 'components/Empty'
import ListItem from './components/ListItem' import ListItem from './components/ListItem'
import Detail from './components/Detail' import Detail from './components/Detail'
@ -120,6 +121,10 @@ const TextAll = styled(Text)`
padding: 20px 0; padding: 20px 0;
color: #999; color: #999;
` `
const EmptyFlex = styled(Flex)`
padding: 100px 0;
justify-content: center;
`
const Announcement: React.FC = () => { const Announcement: React.FC = () => {
const { t } = useTranslation() const { t } = useTranslation()
@ -204,12 +209,18 @@ const Announcement: React.FC = () => {
</SearchBtn> </SearchBtn>
</InputMain> </InputMain>
</SearchDiv> </SearchDiv>
<ListMain> {list.length > 0 ? (
{renderContent()} <ListMain>
<Flex justifyContent="center" padding={10}> {renderContent()}
<Pagination count={count} onChange={pageChange} page={pageNum} /> <Flex justifyContent="center" padding={10}>
</Flex> <Pagination count={count} onChange={pageChange} page={pageNum} />
</ListMain> </Flex>
</ListMain>
) : (
<EmptyFlex>
<Empty />
</EmptyFlex>
)}
</TableDiv> </TableDiv>
)} )}
</MainDiv> </MainDiv>

View File

@ -80,7 +80,7 @@ const HolderPoolBoardCard: React.FC<NodeCardProps> = ({ board, account, boardsDa
</Text> </Text>
<PriceCoin> <PriceCoin>
<Text fontSize="16px" color="#1FC7D4"> <Text fontSize="16px" color="#1FC7D4">
{board.estimatedProfit} {board.estimatedProfit.toFixed(3)}
</Text> </Text>
<Text fontSize="12px" color="#9BE5EB"> <Text fontSize="12px" color="#9BE5EB">
{hccPriceUsdt ? (hccPriceUsdt * board.estimatedProfit).toFixed(3) : 0} USDT {hccPriceUsdt ? (hccPriceUsdt * board.estimatedProfit).toFixed(3) : 0} USDT

View File

@ -38,6 +38,7 @@ const HeaderStatus: React.FC<HeaderStatusProps> = ({ status, roundDetail }) => {
return ( return (
<TimeText> <TimeText>
{/* {status === 'close' && t('Exchange closed')} */}
{status === 'none' && t('Exchange not commenced')} {status === 'none' && t('Exchange not commenced')}
{status === 'proceed' && ( {status === 'proceed' && (

View File

@ -41,7 +41,7 @@ const Exchange: React.FC = () => {
const getRound = useGetRound() const getRound = useGetRound()
const init = async () => { const init = async () => {
const detail = await getRound() const detail = await getRound()
if (!detail || detail.endTime < new Date().getTime() || roundDetail?.remaining === 0) { if (!detail || detail.endTime < new Date().getTime()) {
setStatus('none') setStatus('none')
} else if (detail.beginTime < new Date().getTime() && detail.endTime > new Date().getTime()) { } else if (detail.beginTime < new Date().getTime() && detail.endTime > new Date().getTime()) {
setStatus('proceed') setStatus('proceed')