Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-community-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
杨延青
6 years ago
Commit
6bdd45f355dc650e70df4df8e41223a2e9e22066
2 parents
ff9c3631
24376dd8
Merge branch 'feature/0430' into 'release/6.9.2'
fix slid img See merge request
!73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
apps/pages/article/components/article/article-item-slide-image.vue
apps/pages/article/components/article/article-item-slide-image.vue
View file @
6bdd45f
...
...
@@ -17,20 +17,17 @@ export default {
computed: {
...mapState(['yoho']),
image() {
const fixedWidth = 1000;
let {contentData, width, height} = this.data;
const scale = width / height
;
let fixedWidth = 1000
;
let mode = 1;
const scale = width / height;
if (width >= fixedWidth || scale > 1) {
width = fixedWidth;
height = Math.floor(fixedWidth / scale);
} else {
mode = 5;
width = Math.floor(fixedWidth / scale);
height = fixedWidth;
if (fixedWidth > width) {
fixedWidth = width;
}
height = Math.floor(fixedWidth / scale);
if (this.share) {
contentData += `${contentData.indexOf('?') ? '|' : '?'}watermark/1/image/aHR0cHM6Ly9jZG4ueW9oby5jbi93YXRlcm1hcmsvZ3Jhc3MucG5n/gravity/South`
}
...
...
Please
register
or
login
to post a comment