Browse Source

上传头像修改

liuzhen 6 years ago
parent
commit
191a4e2624
1 changed files with 3 additions and 1 deletions
  1. 3 1
      WebUI/CallCenterWeb.UI/js/index.js

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

@@ -708,7 +708,8 @@ $(document).ready(function () {
708 708
         });
709 709
         $("#setDrag").click(function () {
710 710
             o.cropper("setDragMode", "crop");
711
-            var img = o.cropper("getDataURL");
711
+//          var img = o.cropper("getDataURL");
712
+            var img = o.cropper("getCroppedCanvas").toDataURL('image/png');
712 713
             $.post(huayi.config.callcenter_url + "Index/UploadTX64", {
713 714
                 dataurl: encodeURIComponent(img),
714 715
                 "token": $.cookie("token")
@@ -1940,5 +1941,6 @@ function Read(signid, e) {
1940 1941
 			}
1941 1942
 		});
1942 1943
 }
1944
+
1943 1945
 //获取知识库消息
1944 1946
 setInterval(getnew,15000)