mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 23:46:44 +08:00
优化贺报下载
This commit is contained in:
@@ -14,8 +14,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex justify-content-s bottom-btn border-color">
|
<div class="flex justify-content-s bottom-btn border-color">
|
||||||
<van-button square type="default" :disabled="shareJin" size="large" @click="shareImg" v-no-more-click="1000"> 分享 </van-button>
|
<!-- <van-button square type="default" :disabled="shareJin" size="large" @click="shareImg" v-no-more-click="1000"> 分享 </van-button> -->
|
||||||
<van-button square type="danger" :disabled="downLoadJin" size="large" @click="downLoadImagesFunc" v-no-more-click="1000"> 下载 </van-button>
|
<!-- <van-button square type="danger" :disabled="downLoadJin" size="large" @click="downLoadImagesFunc" v-no-more-click="1000"> 下载 </van-button> -->
|
||||||
|
<button class="shareImg" @click="shareImg"> 分享 </button>
|
||||||
|
<button class="downLoad" @click="downLoadImagesFunc"> 下载 </button>
|
||||||
</div>
|
</div>
|
||||||
<div class="close" @click="close()">
|
<div class="close" @click="close()">
|
||||||
<van-icon name="cross" size="38" color="#fff" />
|
<van-icon name="cross" size="38" color="#fff" />
|
||||||
@@ -116,8 +118,10 @@ export default {
|
|||||||
// callback(newimg)
|
// callback(newimg)
|
||||||
// }
|
// }
|
||||||
this.blobToBase64(blob).then((base64String) => {
|
this.blobToBase64(blob).then((base64String) => {
|
||||||
|
console.log('xing');
|
||||||
base64Excel({ base64Img: base64String }).then(res => {
|
base64Excel({ base64Img: base64String }).then(res => {
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
|
console.log('xingxing');
|
||||||
EWebBridge.webCallAppInJs('download', {
|
EWebBridge.webCallAppInJs('download', {
|
||||||
name: '业绩贺报.png',
|
name: '业绩贺报.png',
|
||||||
url: res.path
|
url: res.path
|
||||||
@@ -244,13 +248,19 @@ img {
|
|||||||
border: 2px solid;
|
border: 2px solid;
|
||||||
border-image: radial-gradient(circle, rgba(255, 233, 124, 1), rgba(222, 144, 34, 1)) 2 2;
|
border-image: radial-gradient(circle, rgba(255, 233, 124, 1), rgba(222, 144, 34, 1)) 2 2;
|
||||||
}
|
}
|
||||||
/deep/ .van-button {
|
.shareImg {
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
width: 42%;
|
width: 42%;
|
||||||
|
height: 50px;
|
||||||
|
border: none !important;
|
||||||
}
|
}
|
||||||
/deep/ .van-button--danger {
|
.downLoad {
|
||||||
|
border-radius: 12px;
|
||||||
|
width: 42%;
|
||||||
|
height: 53px;
|
||||||
background: linear-gradient(to right, #f26e43, #ac0209) !important;
|
background: linear-gradient(to right, #f26e43, #ac0209) !important;
|
||||||
/*设置按钮为渐变颜色*/
|
/*设置按钮为渐变颜色*/
|
||||||
|
color: #fff;
|
||||||
border: none !important;
|
border: none !important;
|
||||||
}
|
}
|
||||||
.close {
|
.close {
|
||||||
|
|||||||
Reference in New Issue
Block a user