Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
max_android_panel
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhang Xin
max_android_panel
Commits
7c1590fe
Commit
7c1590fe
authored
Nov 08, 2018
by
wujiabao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改图片
parent
800f80dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
client/components/BreakageComponent/BreakageProductDetail/BreakageProductDetail.jsx
+1
-1
client/util/image.js
+2
-2
No files found.
client/components/BreakageComponent/BreakageProductDetail/BreakageProductDetail.jsx
View file @
7c1590fe
...
@@ -38,7 +38,7 @@ class BreakageProductDetail extends React.Component{
...
@@ -38,7 +38,7 @@ class BreakageProductDetail extends React.Component{
<
div
className=
{
'breakProduct'
}
>
<
div
className=
{
'breakProduct'
}
>
<
div
className=
{
'breakProductInfo'
}
>
<
div
className=
{
'breakProductInfo'
}
>
<
div
className=
{
'breakProductImg'
}
>
<
div
className=
{
'breakProductImg'
}
>
<
img
src=
{
breakageProductInfo
.
product
&&
UTILPATH
.
get
NewFormatPath
(
breakageProductInfo
.
product
.
skuImage
,
'middle'
)
}
alt=
""
/>
<
img
src=
{
breakageProductInfo
.
product
&&
UTILPATH
.
get
Pic
(
breakageProductInfo
.
product
.
skuImage
,
'middle'
)
}
alt=
""
/>
</
div
>
</
div
>
<
div
style=
{
{
textAlign
:
'left'
,
marginLeft
:
UTILPATH
.
getRemByPx
(
10
)}
}
>
<
div
style=
{
{
textAlign
:
'left'
,
marginLeft
:
UTILPATH
.
getRemByPx
(
10
)}
}
>
<
h2
className=
{
'col333 font40'
}
style=
{
<
h2
className=
{
'col333 font40'
}
style=
{
...
...
client/util/image.js
View file @
7c1590fe
...
@@ -32,8 +32,8 @@ const getNewPath = (path,host)=>{
...
@@ -32,8 +32,8 @@ const getNewPath = (path,host)=>{
*/
*/
const
getNewFormatPath
=
(
path
,
format
)
=>
{
const
getNewFormatPath
=
(
path
,
format
)
=>
{
let
particial
=
path
.
split
(
'.'
);
let
particial
=
path
.
split
(
'.'
);
if
(
particial
.
length
===
2
){
if
(
particial
.
length
===
4
){
particial
[
0
]
=
particial
[
0
]
+
'_'
+
format
;
particial
[
2
]
=
particial
[
2
]
+
'_'
+
format
;
return
particial
.
join
(
'.'
)
return
particial
.
join
(
'.'
)
}
else
{
}
else
{
return
path
;
return
path
;
...
...
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