|
|
@@ -465,11 +465,9 @@ var app = new Vue({
|
|
|
width: Math.round(data.width),
|
|
|
rotate: Math.round(data.rotate),
|
|
|
};
|
|
|
- console.log(cropData);
|
|
|
-
|
|
|
var canvas = $image.cropper('getCroppedCanvas', {width: imgWidth*20, height: imgHeight*20, rotate: data.rotate, imageSmoothingQuality: 'high'});
|
|
|
var url = canvas.toBlob(function(e){
|
|
|
- console.log(e); //生成Blob的图片格式
|
|
|
+ //console.log(e); //生成Blob的图片格式
|
|
|
var timestamp = Date.parse(new Date());
|
|
|
e.name=timestamp+".png";
|
|
|
url = URL.createObjectURL(e);
|
|
|
@@ -531,6 +529,7 @@ var app = new Vue({
|
|
|
if (this.jc != null) {
|
|
|
$.showLoading('图片处理中...');
|
|
|
setTimeout(function(){
|
|
|
+ $.hideLoading();
|
|
|
$("#cropImg").cropper('destroy');
|
|
|
_this.jc = null;
|
|
|
$("#cropImg").remove();
|