|
|
@@ -469,11 +469,11 @@ var app = new Vue({
|
|
|
|
|
|
_this.cropParams.id = id;
|
|
|
_this.cropParams.cropData = {
|
|
|
- width: data.width*20,
|
|
|
+ /*width: data.width*20,
|
|
|
// width: imgWidth*20,
|
|
|
height: data.height*20,
|
|
|
// height: imgHeight*20,
|
|
|
- rotate: data.rotate,
|
|
|
+ rotate: data.rotate,*/
|
|
|
imageSmoothingQuality: 'high',
|
|
|
fillColor: '#fff',
|
|
|
};
|
|
|
@@ -527,7 +527,7 @@ var app = new Vue({
|
|
|
$.showLoading('图片处理中...');
|
|
|
$image = $("#cropImg");
|
|
|
var id = _this.cropParams.id;
|
|
|
- var canvas = $image.cropper('getCroppedCanvas', _this.cropParams.cropData);
|
|
|
+ var canvas = $image.cropper('getCroppedCanvas', );
|
|
|
var url = canvas.toBlob(function(e){
|
|
|
//console.log(e); //生成Blob的图片格式
|
|
|
var timestamp = Date.parse(new Date());
|