Commit b70ec62f75771914ca91ed11421b9fbacc8ddb7e
1 parent
33db8e9f
fix: qrcode style
Showing
1 changed file
with
3 additions
and
3 deletions
front-end/h5/src/components/common/work/card-cover.js
| @@ -32,10 +32,10 @@ export default { | @@ -32,10 +32,10 @@ export default { | ||
| 32 | <div style={style}></div> | 32 | <div style={style}></div> |
| 33 | ] | 33 | ] |
| 34 | }, | 34 | }, |
| 35 | - getCoverBg (img) { | 35 | + getCoverBg (img, isQrcode = false) { |
| 36 | const style = { | 36 | const style = { |
| 37 | ...getDefaultStyle(img), | 37 | ...getDefaultStyle(img), |
| 38 | - filter: 'blur(10px)' | 38 | + filter: !isQrcode && 'blur(10px)' |
| 39 | } | 39 | } |
| 40 | return [ | 40 | return [ |
| 41 | <div style={style}></div> | 41 | <div style={style}></div> |
| @@ -47,7 +47,7 @@ export default { | @@ -47,7 +47,7 @@ export default { | ||
| 47 | const coverImg = this.coverImageUrl | 47 | const coverImg = this.coverImageUrl |
| 48 | 48 | ||
| 49 | if (this.qrcodeUrl) { | 49 | if (this.qrcodeUrl) { |
| 50 | - covers = this.getCover(this.qrcodeUrl) | 50 | + covers = this.getCoverBg(this.qrcodeUrl, true) |
| 51 | } else if (coverImg) { | 51 | } else if (coverImg) { |
| 52 | covers = [this.getCover(coverImg), this.getCoverBg(coverImg)] | 52 | covers = [this.getCover(coverImg), this.getCoverBg(coverImg)] |
| 53 | } | 53 | } |