|
@@ -512,7 +512,7 @@ var app = new Vue({
|
|
|
minCanvasHeight: iHeight,*/
|
|
minCanvasHeight: iHeight,*/
|
|
|
viewMode: 1,
|
|
viewMode: 1,
|
|
|
ready: function(data){
|
|
ready: function(data){
|
|
|
- _this.cropParams.data = data;
|
|
|
|
|
|
|
+ // _this.cropParams.data = data;
|
|
|
// $image.cropper('setCropBoxData',{width: iWidth, height: iHeight});
|
|
// $image.cropper('setCropBoxData',{width: iWidth, height: iHeight});
|
|
|
consoel.log(data);
|
|
consoel.log(data);
|
|
|
},
|
|
},
|
|
@@ -607,10 +607,10 @@ var app = new Vue({
|
|
|
cropSize: function(){
|
|
cropSize: function(){
|
|
|
var _this = this;
|
|
var _this = this;
|
|
|
var data = _this.cropParams.data;
|
|
var data = _this.cropParams.data;
|
|
|
- var image = new Image();
|
|
|
|
|
|
|
+ /*var image = new Image();
|
|
|
image.src = _this.cropParams.url;
|
|
image.src = _this.cropParams.url;
|
|
|
var width = image.width;
|
|
var width = image.width;
|
|
|
- var height = image.height;
|
|
|
|
|
|
|
+ var height = image.height;*/
|
|
|
console.log(image);
|
|
console.log(image);
|
|
|
if(data.height<data.width){
|
|
if(data.height<data.width){
|
|
|
$("#cropImg").cropper("rotate", 90);
|
|
$("#cropImg").cropper("rotate", 90);
|