|
|
@@ -146,9 +146,12 @@
|
|
|
}else if(prodName.indexOf("方卡") !== -1){
|
|
|
width = 1217;
|
|
|
height = 1217;
|
|
|
- }else if(templateUsage.indexOf("手幅") !== -1){
|
|
|
+ }else if(prodName.indexOf("手幅") !== -1){
|
|
|
width = 1252;
|
|
|
height = 3614;
|
|
|
+ }else if(prodName.indexOf("毛绒徽章") !== -1){
|
|
|
+ width = 827;
|
|
|
+ height = 827;
|
|
|
}
|
|
|
let _URL = window.URL || window.webkitURL;
|
|
|
let img = new Image();
|
|
|
@@ -272,8 +275,10 @@
|
|
|
this.prodType = '书签';
|
|
|
}else if(prodName.indexOf('徽章') != -1){
|
|
|
this.prodType = '徽章';
|
|
|
- } else if(prodName.indexOf('手幅') != -1){
|
|
|
+ }else if(prodName.indexOf('手幅') != -1){
|
|
|
this.prodType = '手幅';
|
|
|
+ }else if(prodName.indexOf('毛绒徽章') != -1){
|
|
|
+ this.prodType = '毛绒徽章';
|
|
|
}
|
|
|
this.$nextTick(() =>{
|
|
|
this.$refs.canvasPreviewRef.init(cardItem, this.resourcesUrl + picUrl, this.prodType, side)
|