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
e0456a33
Commit
e0456a33
authored
Jan 07, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:处理新增商品描述区域视频大小显示问题
parent
a1cb76ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
productDescFormDefault.tsx
...odity/products/addProductsItem/productDescFormDefault.tsx
+6
-7
No files found.
src/pages/commodity/products/addProductsItem/productDescFormDefault.tsx
View file @
e0456a33
...
@@ -10,7 +10,7 @@ import ImgCrop from 'antd-img-crop';
...
@@ -10,7 +10,7 @@ import ImgCrop from 'antd-img-crop';
import
{
inject
,
observer
}
from
'mobx-react'
import
{
inject
,
observer
}
from
'mobx-react'
import
{
store
}
from
'@/store'
import
{
store
}
from
'@/store'
const
ProductDescFormDefualt
:
React
.
FC
<
{}
>
=
(
props
)
=>
{
const
ProductDescFormDefualt
:
React
.
FC
<
{}
>
=
(
props
)
=>
{
const
[
fileImageList
,
setFileImageList
]
=
useState
<
any
>
([])
const
[
fileImageList
,
setFileImageList
]
=
useState
<
any
>
([])
const
[
videoList
,
setVideoList
]
=
useState
<
any
>
([])
const
[
videoList
,
setVideoList
]
=
useState
<
any
>
([])
const
flagRef
=
useRef
<
boolean
>
(
false
)
const
flagRef
=
useRef
<
boolean
>
(
false
)
...
@@ -40,7 +40,7 @@ const ProductDescFormDefualt: React.FC<{}> = (props) => {
...
@@ -40,7 +40,7 @@ const ProductDescFormDefualt: React.FC<{}> = (props) => {
setFileImageList
([])
setFileImageList
([])
setVideoList
([])
setVideoList
([])
}
}
},
[
selectCategoryId
])
},
[
selectCategoryId
])
useEffect
(()
=>
{
useEffect
(()
=>
{
...
@@ -117,11 +117,11 @@ const ProductDescFormDefualt: React.FC<{}> = (props) => {
...
@@ -117,11 +117,11 @@ const ProductDescFormDefualt: React.FC<{}> = (props) => {
return
(<
div
>
return
(<
div
>
<
Spin
spinning=
{
isLoading
}
>
<
Spin
spinning=
{
isLoading
}
>
{
{
videoList
?.
length
>
0
videoList
?.
length
>
0
?
?
videoList
.
map
((
item
,
index
)
=>
<
div
key=
{
index
}
className=
{
cx
(
styles
.
descriptBox
,
styles
.
mediaContentBox
)
}
>
videoList
.
map
((
item
,
index
)
=>
<
div
key=
{
index
}
className=
{
cx
(
styles
.
descriptBox
,
styles
.
mediaContentBox
)
}
>
<
div
className=
{
styles
.
divVideo
}
>
<
div
className=
{
styles
.
divVideo
}
>
<
video
src=
{
item
}
controls=
{
true
}
>
<
video
src=
{
item
}
controls=
{
true
}
width=
{
320
}
height=
{
240
}
>
您的浏览器不支持视频标签,请及时升级。
您的浏览器不支持视频标签,请及时升级。
</
video
>
</
video
>
</
div
>
</
div
>
...
@@ -183,4 +183,4 @@ const ProductDescFormDefualt: React.FC<{}> = (props) => {
...
@@ -183,4 +183,4 @@ const ProductDescFormDefualt: React.FC<{}> = (props) => {
</
div
>)
</
div
>)
}
}
export
default
observer
(
ProductDescFormDefualt
)
export
default
observer
(
ProductDescFormDefualt
)
\ No newline at end of file
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