Merge branch 'FCRS-743-【需求】关于金掌桂开发机构实时出单功能和动态贺报生成的请示' into dev-new

This commit is contained in:
dong.ai
2024-10-24 11:31:50 +08:00

View File

@@ -53,18 +53,19 @@ export default {
width: this.$refs.generateImg.offsetWidth,
height: this.$refs.generateImg.offsetHeight,
backgroundColor: '#fff',
scale: 2,
scale: 1,
dpi: 300
}).then((canvas) => {
// 将 canvas 转换为 Blob
canvas.toBlob((blob) => {
this.blobToBase64(blob).then((base64String) => {
let base64Manane = base64String.split(',')[1]
// let base64Manane = base64String.split(',')[1]
console.log(base64String)
EWebBridge.webCallAppInJs('bridge', {
flag: 'share',
extra: {
shareType: '1',
img: base64Manane
img: base64String
}
})
})