|
@@ -539,7 +539,7 @@ var app = new Vue({
|
|
|
_this.cropParams.cropData = {
|
|
_this.cropParams.cropData = {
|
|
|
width: iWidth*10,
|
|
width: iWidth*10,
|
|
|
height: iHeight*10,
|
|
height: iHeight*10,
|
|
|
- rotate: data.rotate,
|
|
|
|
|
|
|
+ // rotate: data.rotate,
|
|
|
// imageSmoothingQuality: 'high',
|
|
// imageSmoothingQuality: 'high',
|
|
|
fillColor: '#fff',
|
|
fillColor: '#fff',
|
|
|
};
|
|
};
|
|
@@ -672,7 +672,7 @@ var app = new Vue({
|
|
|
var url = canvas.toDataURL('image/jpeg');
|
|
var url = canvas.toDataURL('image/jpeg');
|
|
|
var timestamp = Date.parse(new Date());
|
|
var timestamp = Date.parse(new Date());
|
|
|
var name = timestamp + ".jpg";
|
|
var name = timestamp + ".jpg";
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if(_this.cropParams.type>0 && id>=0){
|
|
if(_this.cropParams.type>0 && id>=0){
|
|
|
alert(34)
|
|
alert(34)
|
|
|
_this.picList[id] = _this.cropParams;
|
|
_this.picList[id] = _this.cropParams;
|