增加文档地址
This commit is contained in:
parent
c394ba117f
commit
856aa630c9
|
|
@ -19,7 +19,7 @@ REACT_APP_SNAPSHOT_VOTING_API = "https://xtjyd0liqe.execute-api.ap-northeast-1.a
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
REACT_APP_REQUEST_URL = 'http://192.253.237.94:9090'
|
# REACT_APP_REQUEST_URL = 'http://192.253.237.94:9090'
|
||||||
# REACT_APP_REQUEST_URL = 'http://192.168.2.147:8080'
|
# REACT_APP_REQUEST_URL = 'http://192.168.2.147:8080'
|
||||||
# REACT_APP_REQUEST_URL = 'http://192.168.2.28:8080'
|
REACT_APP_REQUEST_URL = 'http://192.168.2.176:8080'
|
||||||
# REACT_APP_REQUEST_URL = 'http://6o7g1fv83e.51xd.pub'
|
# REACT_APP_REQUEST_URL = 'http://6o7g1fv83e.51xd.pub'
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import React, { useEffect, useState, useMemo } from 'react'
|
import React, { useEffect, useState, useMemo } from 'react'
|
||||||
import { Menu as UikitMenu, ConnectorNames } from '@pancakeswap/uikit'
|
import { Menu as UikitMenu, ConnectorNames } from '@pancakeswap/uikit'
|
||||||
import { useDispatch } from 'react-redux'
|
import { useDispatch } from 'react-redux'
|
||||||
import { uccnDetail, indexInfo } from 'services/user'
|
import { uccnDetail, indexInfo, getProjectDoc } from 'services/user'
|
||||||
import { useWeb3React } from '@web3-react/core'
|
import { useWeb3React } from '@web3-react/core'
|
||||||
import { languageList } from 'config/localization/languages'
|
import { languageList } from 'config/localization/languages'
|
||||||
import { useTranslation } from 'contexts/Localization'
|
import { useTranslation } from 'contexts/Localization'
|
||||||
|
|
@ -17,6 +17,7 @@ const Menu = (props) => {
|
||||||
const account = useAccount()
|
const account = useAccount()
|
||||||
const { login, logout } = useAuth()
|
const { login, logout } = useAuth()
|
||||||
const [hasWalletLogin, setHasWalletLogin] = useState(false)
|
const [hasWalletLogin, setHasWalletLogin] = useState(false)
|
||||||
|
const [documentAddress, setDocumentAddress] = useState('')
|
||||||
const { isDark, toggleTheme } = useTheme()
|
const { isDark, toggleTheme } = useTheme()
|
||||||
const hccPriceUsdt = usePriceHccUsdt()
|
const hccPriceUsdt = usePriceHccUsdt()
|
||||||
const { library } = useWeb3Provider()
|
const { library } = useWeb3Provider()
|
||||||
|
|
@ -50,6 +51,13 @@ const Menu = (props) => {
|
||||||
})
|
})
|
||||||
setSocialLink(list)
|
setSocialLink(list)
|
||||||
}
|
}
|
||||||
|
const getDoc = async () => {
|
||||||
|
const result = await getProjectDoc()
|
||||||
|
console.log(result)
|
||||||
|
const { data } = result.data
|
||||||
|
setDocumentAddress(data)
|
||||||
|
console.log(data)
|
||||||
|
}
|
||||||
// 钱包登录后
|
// 钱包登录后
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (unActiveAccount && library.provider && hasWalletLogin) {
|
if (unActiveAccount && library.provider && hasWalletLogin) {
|
||||||
|
|
@ -59,6 +67,7 @@ const Menu = (props) => {
|
||||||
}, [unActiveAccount, hasWalletLogin, library])
|
}, [unActiveAccount, hasWalletLogin, library])
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getDetails()
|
getDetails()
|
||||||
|
getDoc()
|
||||||
}, [])
|
}, [])
|
||||||
return (
|
return (
|
||||||
<UikitMenu
|
<UikitMenu
|
||||||
|
|
@ -74,6 +83,7 @@ const Menu = (props) => {
|
||||||
cakePriceUsd={hccPriceUsdt}
|
cakePriceUsd={hccPriceUsdt}
|
||||||
links={config(t)}
|
links={config(t)}
|
||||||
socialLink={socialLink}
|
socialLink={socialLink}
|
||||||
|
documentAddress={documentAddress}
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import request from 'utils/request'
|
||||||
|
|
||||||
export const getBaseConfig = () => {
|
export const getBaseConfig = () => {
|
||||||
return request.request({
|
return request.request({
|
||||||
url: '/high_city/app/api/base/config',
|
url: '/high_city/app/api/base/config/bod/lock/time',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,4 +19,11 @@ export const indexInfo = () => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const getProjectDoc = () => {
|
||||||
|
return request.request({
|
||||||
|
url: '/high_city/app/api/base/config/project/doc',
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export default queryUserInfo
|
export default queryUserInfo
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ const DetailDiv = styled.div`
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
margin-top: 30px;
|
||||||
padding: 40px 30px;
|
padding: 40px 30px;
|
||||||
`
|
`
|
||||||
const HeaderFlex = styled(Flex)`
|
const HeaderFlex = styled(Flex)`
|
||||||
|
|
@ -40,7 +41,8 @@ const TextTime = styled(Text)`
|
||||||
padding: 30px 0 20px 0;
|
padding: 30px 0 20px 0;
|
||||||
border-bottom: 1px solid #e3e3e3;
|
border-bottom: 1px solid #e3e3e3;
|
||||||
`
|
`
|
||||||
const TextInfo = styled.div`
|
const TextInfo = styled.span`
|
||||||
|
display: block;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
|
|
@ -63,7 +65,12 @@ const Detail: React.FC<ListProps> = ({ title, publishTime, content, close }) =>
|
||||||
</HeaderFlex>
|
</HeaderFlex>
|
||||||
<HeadingText scale="xl">{title}</HeadingText>
|
<HeadingText scale="xl">{title}</HeadingText>
|
||||||
<TextTime>{dayjs(publishTime).format('YYYY-MM-DD HH:mm')}</TextTime>
|
<TextTime>{dayjs(publishTime).format('YYYY-MM-DD HH:mm')}</TextTime>
|
||||||
<TextInfo>{content}</TextInfo>
|
{/* <TextInfo dangerouslySetInnerHTML={content} /> */}
|
||||||
|
<TextInfo
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: content,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</DetailDiv>
|
</DetailDiv>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ const MainDiv = styled.div`
|
||||||
padding: 20px 0;
|
padding: 20px 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: calc(100vh - 64px);
|
min-height: calc(100vh - 64px);
|
||||||
box-sizing: border-box;
|
/* box-sizing: border-box; */
|
||||||
`
|
`
|
||||||
const TableDiv = styled.div`
|
const TableDiv = styled.div`
|
||||||
width: 80%;
|
width: 80%;
|
||||||
|
|
@ -180,7 +180,7 @@ const Announcement: React.FC = () => {
|
||||||
<div>
|
<div>
|
||||||
{list.map((item) => (
|
{list.map((item) => (
|
||||||
<Text key={item.id} onClick={() => lookDetail(item.id)}>
|
<Text key={item.id} onClick={() => lookDetail(item.id)}>
|
||||||
<ListItem title={item.title} publishTime={item.publishTime} content={item.content} top={item.top} />
|
<ListItem title={item.title} publishTime={item.publishTime} content={item.overview} top={item.top} />
|
||||||
</Text>
|
</Text>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -213,13 +213,6 @@ const Announcement: React.FC = () => {
|
||||||
<ListMain>
|
<ListMain>
|
||||||
{renderContent()}
|
{renderContent()}
|
||||||
{totalVisible ? <TextAll>{t('Loaded all')}</TextAll> : ''}
|
{totalVisible ? <TextAll>{t('Loaded all')}</TextAll> : ''}
|
||||||
|
|
||||||
{/* <div ref={loadMoreRef} /> */}
|
|
||||||
{/* {list.map((item) => (
|
|
||||||
<Text key={item.id} onClick={() => lookDetail(item.id)}>
|
|
||||||
<ListItem title={item.title} publishTime={item.publishTime} content={item.content} />
|
|
||||||
</Text>
|
|
||||||
))} */}
|
|
||||||
</ListMain>
|
</ListMain>
|
||||||
</TableDiv>
|
</TableDiv>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,14 @@ import useRefresh from 'hooks/useRefresh'
|
||||||
import { UnOpenModel } from 'components/Modal'
|
import { UnOpenModel } from 'components/Modal'
|
||||||
|
|
||||||
const PageContent = styled.div`
|
const PageContent = styled.div`
|
||||||
/* background: rgba(255, 255, 255, 0.39); */
|
height: calc(100vh - 64px);
|
||||||
|
/* background-image: url('/images/home/bg.svg');
|
||||||
|
background-size: cover;
|
||||||
|
background-repeat: no-repeat; */
|
||||||
background-image: url('/images/page/bazaar.jpg');
|
background-image: url('/images/page/bazaar.jpg');
|
||||||
background-position: 50%;
|
background-position: 50%;
|
||||||
background-size: 50% 90%;
|
background-size: 50% 90%;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
min-height: calc(100vh - 64px);
|
|
||||||
`
|
`
|
||||||
|
|
||||||
const Bazaar: React.FC = () => {
|
const Bazaar: React.FC = () => {
|
||||||
|
|
|
||||||
|
|
@ -139,7 +139,7 @@ const Boards: React.FC = () => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PageContent>
|
<PageContent>
|
||||||
{/* <UnOpenModel /> */}
|
<UnOpenModel />
|
||||||
<Page>
|
<Page>
|
||||||
<Header>
|
<Header>
|
||||||
<HeadingText>{t('Total capital pool')}</HeadingText>
|
<HeadingText>{t('Total capital pool')}</HeadingText>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue