Commit f258f0583b9c86caed6caa8a36f447c6f152d71e

Authored by zhiyangdu
1 parent df3d9c04

保存证书到相册

Showing 1 changed file with 2 additions and 2 deletions
src/pages/test.vue
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 dataURL:'', 21 dataURL:'',
22 firstFlag:true, 22 firstFlag:true,
23 imgUrl:"https://wjjtest.ys2.cnliveimg.com/shop/img/2019/12/31/5e0b06db22be5.jpg", 23 imgUrl:"https://wjjtest.ys2.cnliveimg.com/shop/img/2019/12/31/5e0b06db22be5.jpg",
24 - textInfo:'杜致阳签名' 24 + textInfo: new Date().getTime()
25 }; 25 };
26 }, 26 },
27 27
@@ -46,7 +46,7 @@ @@ -46,7 +46,7 @@
46 } 46 }
47 }, 47 },
48 savecanvas(){ 48 savecanvas(){
49 - let canvas = document.querySelector('.canvas'); 49 + let canvas = document.querySelector('#captureId');
50 let that = this; 50 let that = this;
51 html2canvas(canvas,{scale:2,logging:false,useCORS:true}).then(function(canvas) { 51 html2canvas(canvas,{scale:2,logging:false,useCORS:true}).then(function(canvas) {
52 let type = 'png'; 52 let type = 'png';