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 | 32 | <div style={style}></div> |
| 33 | 33 | ] |
| 34 | 34 | }, |
| 35 | - getCoverBg (img) { | |
| 35 | + getCoverBg (img, isQrcode = false) { | |
| 36 | 36 | const style = { |
| 37 | 37 | ...getDefaultStyle(img), |
| 38 | - filter: 'blur(10px)' | |
| 38 | + filter: !isQrcode && 'blur(10px)' | |
| 39 | 39 | } |
| 40 | 40 | return [ |
| 41 | 41 | <div style={style}></div> |
| ... | ... | @@ -47,7 +47,7 @@ export default { |
| 47 | 47 | const coverImg = this.coverImageUrl |
| 48 | 48 | |
| 49 | 49 | if (this.qrcodeUrl) { |
| 50 | - covers = this.getCover(this.qrcodeUrl) | |
| 50 | + covers = this.getCoverBg(this.qrcodeUrl, true) | |
| 51 | 51 | } else if (coverImg) { |
| 52 | 52 | covers = [this.getCover(coverImg), this.getCoverBg(coverImg)] |
| 53 | 53 | } | ... | ... |