Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
b8d71fcd
Commit
b8d71fcd
authored
Dec 09, 2021
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: app下载页国际化
parent
5c380b0b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
35 deletions
+66
-35
components.ts
src/locales/zh-CN/components.ts
+30
-0
index.tsx
src/pages/appDownload/index.tsx
+5
-5
index.tsx
src/pages/appIntroduce/Footer/index.tsx
+28
-27
index.tsx
src/pages/appIntroduce/index.tsx
+3
-3
No files found.
src/locales/zh-CN/components.ts
View file @
b8d71fcd
...
...
@@ -239,4 +239,34 @@ export default {
'components.daoruwanchengqingdianjidao'
:
'导入完成请点击导入完成'
,
'components.daorujiancha'
:
'导入检查'
,
'components.shujudaoru'
:
'数据导入'
,
'components.shangyeshuzihuayoulingxi'
:
'商业数字化有瓴犀'
,
'components.dianjixiazaishoujikehu'
:
'点击下载手机客户端'
,
'components.dianjiyoushangjiaoxuanzeliu'
:
'点击右上角选择浏览器打开'
,
'components.lingxishangchengAPP'
:
'瓴犀商城APP'
,
'components.CopyRightguangzhoushishushangyun'
:
'Copy Right©广州市数商云网络科技有限公司 粤ICP备13044797号-5'
,
'components.mianzhaishengming'
:
'免责声明'
,
'components.fuwutiaokuan'
:
'服务条款'
,
'components.lianxiwomen'
:
'联系我们'
,
'components.pingtaijieshao'
:
'平台介绍'
,
'components.guanyuwomen'
:
'关于我们'
,
'components.pingjiaguize'
:
'评价规则'
,
'components.tousujubao'
:
'投诉举报'
,
'components.zhakanpingjia'
:
'查看评价'
,
'components.fabupingjia'
:
'发布评价'
,
'components.xinyongpingjia'
:
'信用评价'
,
'components.mimafuwu'
:
'密码服务'
,
'components.anquanzhongxin'
:
'安全中心'
,
'components.zhanghuguanli'
:
'账户管理'
,
'components.zhanghuchaxun'
:
'账户查询'
,
'components.zhanghuanquan'
:
'账户&安全'
,
'components.xunjiabaojia'
:
'询价报价'
,
'components.goumaixianhuo'
:
'购买现货'
,
'components.fabuxuqiu'
:
'发布需求'
,
'components.fabugongying'
:
'发布供应'
,
'components.caigougongying'
:
'采购&供应'
,
'components.wangjimima'
:
'忘记密码'
,
'components.huiyuanfuwu'
:
'会员服务'
,
'components.huiyuandenglu'
:
'会员登录'
,
'components.huiyuanzhuce'
:
'会员注册'
,
'components.huiyuanfuwu'
:
'会员服务'
,
}
src/pages/appDownload/index.tsx
View file @
b8d71fcd
import
React
,
{
useEffect
,
useState
}
from
'react'
import
{
Button
}
from
'antd'
import
{
Helmet
}
from
'umi'
import
{
getIntl
,
Helmet
}
from
'umi'
import
{
GlobalConfig
}
from
'@/global/config'
import
styles
from
'./styles.less'
import
{
getManageAppDownloadLinkFind
}
from
'@/services/ManageV2Api'
const
intl
=
getIntl
();
const
AppDownload
=
()
=>
{
const
shopInfo
=
GlobalConfig
.
web
.
shopInfo
.
filter
((
item
)
=>
item
.
type
===
1
&&
item
.
environment
===
4
)
...
...
@@ -79,14 +79,14 @@ const AppDownload = () => {
<
img
className=
{
styles
.
appLogo
}
src=
{
appInfo
.
logoUrl
}
/>
</
div
>
<
div
className=
{
styles
.
appName
}
>
{
appInfo
.
name
}
</
div
>
<
div
className=
{
styles
.
descrip
}
>
商业数字化有瓴犀
</
div
>
<
Button
className=
{
styles
.
downloadBtn
}
type=
"primary"
onClick=
{
()
=>
handleDownload
()
}
>
点击下载手机客户端
</
Button
>
<
div
className=
{
styles
.
descrip
}
>
{
intl
.
formatMessage
({
id
:
'components.shangyeshuzihuayoulingxi'
})
}
</
div
>
<
Button
className=
{
styles
.
downloadBtn
}
type=
"primary"
onClick=
{
()
=>
handleDownload
()
}
>
{
intl
.
formatMessage
({
id
:
'components.dianjixiazaishoujikehu'
})
}
</
Button
>
</
div
>
{
maskVisble
&&
(
<
div
className=
{
styles
.
mask
}
>
<
div
className=
{
styles
.
maskBody
}
>
<
span
>
点击右上角选择浏览器打开
</
span
>
<
span
>
{
intl
.
formatMessage
({
id
:
'components.dianjiyoushangjiaoxuanzeliu'
})
}
</
span
>
</
div
>
</
div
>
)
...
...
src/pages/appIntroduce/Footer/index.tsx
View file @
b8d71fcd
import
React
from
'react'
import
{
getIntl
}
from
'umi'
;
import
'./index.less'
const
intl
=
getIntl
();
const
Footer
:
React
.
FC
=
()
=>
{
const
baseUrl
=
'https://www.yuque.com/xsnnko/kh076h'
const
footerNavList
=
[
{
title
:
'会员服务'
,
title
:
intl
.
formatMessage
({
id
:
'components.huiyuanfuwu'
})
,
children
:
[
{
path
:
`
${
baseUrl
}
/bzci9x`
,
title
:
'会员注册'
title
:
intl
.
formatMessage
({
id
:
'components.huiyuanzhuce'
})
},
{
path
:
`
${
baseUrl
}
/pz44gw`
,
title
:
'会员登录'
title
:
intl
.
formatMessage
({
id
:
'components.huiyuandenglu'
})
},
{
path
:
`
${
baseUrl
}
/ia27ef`
,
title
:
'会员服务'
title
:
intl
.
formatMessage
({
id
:
'components.huiyuanfuwu'
})
},
{
path
:
`
${
baseUrl
}
/xupg3d`
,
title
:
'忘记密码'
title
:
intl
.
formatMessage
({
id
:
'components.wangjimima'
})
}
]
},
{
title
:
'采购&供应'
,
title
:
intl
.
formatMessage
({
id
:
'components.caigougongying'
})
,
children
:
[
{
path
:
`
${
baseUrl
}
/il6eqw`
,
title
:
'发布供应'
title
:
intl
.
formatMessage
({
id
:
'components.fabugongying'
})
},
{
path
:
`
${
baseUrl
}
/aeob5u`
,
title
:
'发布需求'
title
:
intl
.
formatMessage
({
id
:
'components.fabuxuqiu'
})
},
{
path
:
`
${
baseUrl
}
/eh909i`
,
title
:
'购买现货'
title
:
intl
.
formatMessage
({
id
:
'components.goumaixianhuo'
})
},
{
path
:
`
${
baseUrl
}
/yks6bd`
,
title
:
'询价报价'
title
:
intl
.
formatMessage
({
id
:
'components.xunjiabaojia'
})
}
]
},
{
title
:
'账户&安全'
,
title
:
intl
.
formatMessage
({
id
:
'components.zhanghuanquan'
})
,
children
:
[
{
path
:
`
${
baseUrl
}
/gxx84r`
,
title
:
'账户查询'
title
:
intl
.
formatMessage
({
id
:
'components.zhanghuchaxun'
})
},
{
path
:
`
${
baseUrl
}
/bufen8`
,
title
:
'账户管理'
title
:
intl
.
formatMessage
({
id
:
'components.zhanghuguanli'
})
},
{
path
:
`
${
baseUrl
}
/qsmohg`
,
title
:
'安全中心'
title
:
intl
.
formatMessage
({
id
:
'components.anquanzhongxin'
})
},
{
path
:
`
${
baseUrl
}
/arsh01`
,
title
:
'密码服务'
title
:
intl
.
formatMessage
({
id
:
'components.mimafuwu'
})
}
]
},
{
title
:
'信用评价'
,
title
:
intl
.
formatMessage
({
id
:
'components.xinyongpingjia'
})
,
children
:
[
{
path
:
`
${
baseUrl
}
/klpeox`
,
title
:
'发布评价'
title
:
intl
.
formatMessage
({
id
:
'components.fabupingjia'
})
},
{
path
:
`
${
baseUrl
}
/tkp309`
,
title
:
'查看评价'
title
:
intl
.
formatMessage
({
id
:
'components.zhakanpingjia'
})
},
{
path
:
`
${
baseUrl
}
/svdz9o`
,
title
:
'投诉举报'
title
:
intl
.
formatMessage
({
id
:
'components.tousujubao'
})
},
{
path
:
`
${
baseUrl
}
/ngkh0k`
,
title
:
'评价规则'
title
:
intl
.
formatMessage
({
id
:
'components.pingjiaguize'
})
}
]
},
{
title
:
'关于我们'
,
title
:
intl
.
formatMessage
({
id
:
'components.guanyuwomen'
})
,
children
:
[
{
path
:
`
${
baseUrl
}
/eoegc4`
,
title
:
'平台介绍'
title
:
intl
.
formatMessage
({
id
:
'components.pingtaijieshao'
})
},
{
path
:
`
${
baseUrl
}
/yttpx7`
,
title
:
'联系我们'
title
:
intl
.
formatMessage
({
id
:
'components.lianxiwomen'
})
},
{
path
:
`
${
baseUrl
}
/cyd7rb`
,
title
:
'服务条款'
title
:
intl
.
formatMessage
({
id
:
'components.fuwutiaokuan'
})
},
{
path
:
`
${
baseUrl
}
/uht4qm`
,
title
:
'免责声明'
title
:
intl
.
formatMessage
({
id
:
'components.mianzhaishengming'
})
}
]
}
...
...
@@ -129,7 +130,7 @@ const Footer: React.FC = () => {
}
</
div
>
<
div
className=
"copyright"
>
Copy Right©广州市数商云网络科技有限公司 粤ICP备13044797号-5
{
intl
.
formatMessage
({
id
:
'components.CopyRightguangzhoushishushangyun'
})
}
</
div
>
</
div
>
)
...
...
src/pages/appIntroduce/index.tsx
View file @
b8d71fcd
import
React
from
'react'
import
{
Helmet
}
from
'umi'
import
{
getIntl
,
Helmet
}
from
'umi'
import
Footer
from
'./Footer'
import
styles
from
'./index.less'
const
intl
=
getIntl
();
const
AppIntroduct
=
()
=>
{
return
(
<>
<
Helmet
>
<
title
>
瓴犀商城APP
</
title
>
<
title
>
{
intl
.
formatMessage
({
id
:
'components.lingxishangchengAPP'
})
}
</
title
>
</
Helmet
>
<
div
className=
{
styles
.
container
}
>
<
img
src=
"https://shushangyun-lingxi.oss-cn-shenzhen.aliyuncs.com/5d3d8a435c374bde94f8f5ae7f06a43b1617092303577.jpg"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment