优化贺报下载与分享

This commit is contained in:
xuxingjun
2024-12-18 15:32:45 +08:00
parent 373cefdfda
commit 001541e38e

View File

@@ -144,12 +144,14 @@ export default {
}) })
}, },
downLoadImagesFunc() { downLoadImagesFunc() {
this.downLoadJin = true if(this.downLoadJin == false) {
console.log('66666666666666'); this.domToImage(this.$refs.generateImg)
this.downLoadJin = true
}
setTimeout(() => { setTimeout(() => {
this.downLoadJin = false this.downLoadJin = false
}, 5000); }, 5000);
this.domToImage(this.$refs.generateImg)
}, },
close() { close() {
this.$emit('child-colse', '1') this.$emit('child-colse', '1')
@@ -250,14 +252,14 @@ img {
} }
.shareImg { .shareImg {
border-radius: 12px; border-radius: 12px;
width: 42%; width: 35%;
height: 50px; height: 50px;
border: none !important; border: none !important;
} }
.downLoad { .downLoad {
border-radius: 12px; border-radius: 12px;
width: 42%; width: 35%;
height: 53px; height: 49px;
background: linear-gradient(to right, #f26e43, #ac0209) !important; background: linear-gradient(to right, #f26e43, #ac0209) !important;
/*设置按钮为渐变颜色*/ /*设置按钮为渐变颜色*/
color: #fff; color: #fff;