mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 07:36:44 +08:00
Merge branch 'FCRS-743-【需求】关于金掌桂开发机构实时出单功能和动态贺报生成的请示' into dev-new
This commit is contained in:
@@ -53,18 +53,19 @@ export default {
|
|||||||
width: this.$refs.generateImg.offsetWidth,
|
width: this.$refs.generateImg.offsetWidth,
|
||||||
height: this.$refs.generateImg.offsetHeight,
|
height: this.$refs.generateImg.offsetHeight,
|
||||||
backgroundColor: '#fff',
|
backgroundColor: '#fff',
|
||||||
scale: 2,
|
scale: 1,
|
||||||
dpi: 300
|
dpi: 300
|
||||||
}).then((canvas) => {
|
}).then((canvas) => {
|
||||||
// 将 canvas 转换为 Blob
|
// 将 canvas 转换为 Blob
|
||||||
canvas.toBlob((blob) => {
|
canvas.toBlob((blob) => {
|
||||||
this.blobToBase64(blob).then((base64String) => {
|
this.blobToBase64(blob).then((base64String) => {
|
||||||
let base64Manane = base64String.split(',')[1]
|
// let base64Manane = base64String.split(',')[1]
|
||||||
|
console.log(base64String)
|
||||||
EWebBridge.webCallAppInJs('bridge', {
|
EWebBridge.webCallAppInJs('bridge', {
|
||||||
flag: 'share',
|
flag: 'share',
|
||||||
extra: {
|
extra: {
|
||||||
shareType: '1',
|
shareType: '1',
|
||||||
img: base64Manane
|
img: base64String
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user