Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
xianyu-ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
邱骏
5 years ago
Commit
6a17a5f55e5c0aff7145d1fc8f1c7151d0facf71
1 parent
6004013d
修改图片展示(正方形满格)
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
apps/pages/product/components/grass-artilces.vue
apps/store/product/actions.js
apps/pages/product/components/grass-artilces.vue
View file @
6a17a5f
...
...
@@ -128,7 +128,7 @@ export default {
overflow: hidden;
img {
height
: 100%;
width
: 100%;
float: left;
margin: 0 auto;
}
...
...
apps/store/product/actions.js
View file @
6a17a5f
...
...
@@ -189,7 +189,7 @@ export default {
imageList
.
push
(
listItem
);
newImages
.
push
(
listItem
.
contentData
);
});
articleItem
.
coverImage
=
articleItem
.
coverImage
.
replace
(
/{mode}/
,
2
).
replace
(
/{width}/
,
200
).
replace
(
/{height}/
,
200
)
articleItem
.
coverImage
=
articleItem
.
coverImage
.
split
(
'?'
)[
0
]
+
'?imageMogr2/thumbnail/200x/gravity/Center/crop/200x200/quality/60'
;
articleItem
.
imageList
=
imageList
;
}
else
{
// 没找到对应id的图片列表则把自己的图插入
...
...
@@ -201,7 +201,7 @@ export default {
];
articleItem
.
imageList
=
imageList
;
articleItem
.
coverImage
=
articleItem
.
coverImage
.
replace
(
/{mode}/
,
2
).
replace
(
/{width}/
,
200
).
replace
(
/{height}/
,
200
)
;
articleItem
.
coverImage
=
articleItem
.
coverImage
.
split
(
'?'
)[
0
]
+
'?imageMogr2/thumbnail/200x/gravity/Center/crop/200x200/quality/60'
;
imageIndex
+=
1
;
newImages
=
newImages
.
push
(
imageList
.
contentData
);
}
...
...
Please
register
or
login
to post a comment