|
@@ -161,15 +161,18 @@
|
|
|
}else if(prodName.indexOf("手幅") !== -1){
|
|
}else if(prodName.indexOf("手幅") !== -1){
|
|
|
width = 1252;
|
|
width = 1252;
|
|
|
height = 3614;
|
|
height = 3614;
|
|
|
- }else if(prodName.indexOf("方形贴纸") !== -1){
|
|
|
|
|
- width = 662;
|
|
|
|
|
- height = 662;
|
|
|
|
|
}else if(prodName.indexOf("4寸典藏级花式拍立得") !== -1){
|
|
}else if(prodName.indexOf("4寸典藏级花式拍立得") !== -1){
|
|
|
width = 921;
|
|
width = 921;
|
|
|
height = 1087;
|
|
height = 1087;
|
|
|
}else if(prodName.indexOf("5寸典藏级花式拍立得") !== -1){
|
|
}else if(prodName.indexOf("5寸典藏级花式拍立得") !== -1){
|
|
|
width = 1346;
|
|
width = 1346;
|
|
|
height = 1087;
|
|
height = 1087;
|
|
|
|
|
+ }else if(prodName.indexOf("长方形贴纸") !== -1){
|
|
|
|
|
+ width = 780;
|
|
|
|
|
+ height = 1134;
|
|
|
|
|
+ }else if(prodName.indexOf("方形贴纸") !== -1){
|
|
|
|
|
+ width = 662;
|
|
|
|
|
+ height = 662;
|
|
|
}
|
|
}
|
|
|
let _URL = window.URL || window.webkitURL;
|
|
let _URL = window.URL || window.webkitURL;
|
|
|
let img = new Image();
|
|
let img = new Image();
|
|
@@ -301,10 +304,12 @@
|
|
|
this.prodType = '手幅';
|
|
this.prodType = '手幅';
|
|
|
}else if(prodName.indexOf('毛绒徽章') != -1){
|
|
}else if(prodName.indexOf('毛绒徽章') != -1){
|
|
|
this.prodType = '毛绒徽章';
|
|
this.prodType = '毛绒徽章';
|
|
|
- }else if(prodName.indexOf('方形贴纸') != -1){
|
|
|
|
|
- this.prodType = '方形贴纸';
|
|
|
|
|
}else if(prodName.indexOf('三宫格') != -1){
|
|
}else if(prodName.indexOf('三宫格') != -1){
|
|
|
this.prodType = '三宫格';
|
|
this.prodType = '三宫格';
|
|
|
|
|
+ }else if(prodName.indexOf('长方形贴纸') != -1){
|
|
|
|
|
+ this.prodType = '长方形贴纸';
|
|
|
|
|
+ }else if(prodName.indexOf('方形贴纸') != -1){
|
|
|
|
|
+ this.prodType = '方形贴纸';
|
|
|
}
|
|
}
|
|
|
this.$nextTick(() =>{
|
|
this.$nextTick(() =>{
|
|
|
this.$refs.canvasPreviewRef.init(cardItem, this.resourcesUrl + picUrl, this.prodType, side)
|
|
this.$refs.canvasPreviewRef.init(cardItem, this.resourcesUrl + picUrl, this.prodType, side)
|