Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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-admin
Commits
ab1e3c4d
Commit
ab1e3c4d
authored
Jun 16, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 商品详情显示SEo
parent
c5d3b9a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
2 deletions
+36
-2
viewProducts.tsx
src/pages/commodity/products/viewProducts.tsx
+36
-2
No files found.
src/pages/commodity/products/viewProducts.tsx
View file @
ab1e3c4d
import
React
,
{
useState
,
useRef
,
ReactNode
,
useEffect
}
from
'react'
import
React
,
{
useState
,
useRef
,
ReactNode
,
useEffect
}
from
'react'
import
{
history
}
from
'umi'
import
{
history
}
from
'umi'
import
{
Button
,
Steps
,
Card
,
Space
,
Radio
,
Row
,
Col
,
Descriptions
,
Table
,
Tabs
,
Tag
,
Divider
,
Image
}
from
'antd'
import
{
Button
,
Steps
,
Card
,
Space
,
Radio
,
Row
,
Col
,
Descriptions
,
Table
,
Tabs
,
Tag
,
Divider
,
Image
,
Tooltip
}
from
'antd'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
{
ColumnType
}
from
'antd/lib/table/interface'
import
{
ColumnType
}
from
'antd/lib/table/interface'
import
cx
from
'classnames'
import
cx
from
'classnames'
...
@@ -12,7 +12,7 @@ import {
...
@@ -12,7 +12,7 @@ import {
GetProductCommodityGetCommodityCheckRecordResponse
,
GetProductCommodityGetCommodityCheckRecordResponse
,
}
from
'@/services'
}
from
'@/services'
import
moment
from
'moment'
import
moment
from
'moment'
import
{
CaretDownOutlined
,
CaretUpOutlined
}
from
'@ant-design/icons'
import
{
CaretDownOutlined
,
CaretUpOutlined
,
QuestionCircleOutlined
}
from
'@ant-design/icons'
interface
IAttributeByValue
{
interface
IAttributeByValue
{
groupName
?:
string
;
groupName
?:
string
;
...
@@ -735,6 +735,40 @@ const viewProducts: React.FC<{}> = () => {
...
@@ -735,6 +735,40 @@ const viewProducts: React.FC<{}> = () => {
</
Card
>
</
Card
>
</
Space
>
</
Space
>
<
Space
direction=
"vertical"
style=
{
{
width
:
'100%'
}
}
>
<
Space
direction=
"vertical"
style=
{
{
width
:
'100%'
}
}
>
<
Card
headStyle=
{
{
borderBottom
:
'none'
}
}
title=
"SEO优化"
>
<
Row
>
<
Col
span=
{
3
}
>
<
p
>
Title:
<
Tooltip
title=
"用于显示在页面title标签的内容,便于搜索引擎抓取"
>
<
QuestionCircleOutlined
/>
</
Tooltip
></
p
>
</
Col
>
<
Col
span=
{
21
}
>
<
p
>
{
productDetail
?.
title
}
</
p
>
</
Col
>
</
Row
>
<
Row
>
<
Col
span=
{
3
}
>
<
p
>
Description:
<
Tooltip
title=
"用于显示在页面Description标签的内容,便于搜索引擎抓取"
>
<
QuestionCircleOutlined
/>
</
Tooltip
></
p
>
</
Col
>
<
Col
span=
{
21
}
>
<
p
>
{
productDetail
?.
description
}
</
p
>
</
Col
>
</
Row
>
<
Row
>
<
Col
span=
{
3
}
>
<
p
>
Keywords:
<
Tooltip
title=
"用于显示在页面Keywords标签的内容,便于搜索引擎通过关键词搜索时抓取页面,多个关键词用豆号分隔"
>
<
QuestionCircleOutlined
/>
</
Tooltip
></
p
>
</
Col
>
<
Col
span=
{
21
}
>
<
p
>
{
productDetail
?.
keywords
}
</
p
>
</
Col
>
</
Row
>
</
Card
>
</
Space
>
<
Space
direction=
"vertical"
style=
{
{
width
:
'100%'
}
}
>
<
Card
headStyle=
{
{
borderBottom
:
'none'
}
}
title=
"审核历史"
>
<
Card
headStyle=
{
{
borderBottom
:
'none'
}
}
title=
"审核历史"
>
<
Table
dataSource=
{
checkRecord
}
columns=
{
columns
}
pagination=
{
false
}
/>
<
Table
dataSource=
{
checkRecord
}
columns=
{
columns
}
pagination=
{
false
}
/>
</
Card
>
</
Card
>
...
...
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