Skip to content

Commit

Permalink
fix: qrcode style
Browse files Browse the repository at this point in the history
  • Loading branch information
ly525 committed Oct 10, 2019
1 parent 33db8e9 commit b70ec62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions front-end/h5/src/components/common/work/card-cover.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ export default {
<div style={style}></div>
]
},
getCoverBg (img) {
getCoverBg (img, isQrcode = false) {
const style = {
...getDefaultStyle(img),
filter: 'blur(10px)'
filter: !isQrcode && 'blur(10px)'
}
return [
<div style={style}></div>
Expand All @@ -47,7 +47,7 @@ export default {
const coverImg = this.coverImageUrl

if (this.qrcodeUrl) {
covers = this.getCover(this.qrcodeUrl)
covers = this.getCoverBg(this.qrcodeUrl, true)
} else if (coverImg) {
covers = [this.getCover(coverImg), this.getCoverBg(coverImg)]
}
Expand Down

0 comments on commit b70ec62

Please sign in to comment.