wesmiler 6 år sedan
förälder
incheckning
712f14e22b
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      public/static/weixin/js/photo.js

+ 3 - 3
public/static/weixin/js/photo.js

@@ -114,12 +114,12 @@ var app = new Vue({
                 var id = $(this).attr('data-id');
                 var opts = {
                     scale: 12, // 添加的scale 参数
-                    // width: 119,
-                    // height: 169,
+                    width: 119,
+                    height: 169,
                     background: '#fff',
                 };
 
-
+                console.log($("#pic_preview_" + k).html());
                 html2canvas($previewImg, opts).then(function (canvas) {
                         const context = canvas.getContext('2d');
                         context.translate(0.5, 0.5);