Przeglądaj źródła

上传头像修改

liuzhen 6 lat temu
rodzic
commit
ff4acf1a2d
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      WebUI/CallCenterWeb.UI/js/index.js

+ 2 - 1
WebUI/CallCenterWeb.UI/js/index.js

@@ -652,7 +652,8 @@ $(document).ready(function () {
652 652
         });
653 653
         $("#setDrag").click(function () {
654 654
             o.cropper("setDragMode", "crop");
655
-            var img = o.cropper("getDataURL");
655
+            var img = o.cropper("getCroppedCanvas").toDataURL('image/png');
656
+//          var img = o.cropper("getDataURL");
656 657
             $.post(huayi.config.callcenter_url + "Index/UploadTX64", {
657 658
                 dataurl: encodeURIComponent(img),
658 659
                 "token": $.cookie("token")