Browse Source

1、优化产品

huangmp 2 years ago
parent
commit
7dd748c02e
1 changed files with 7 additions and 2 deletions
  1. 7 2
      src/components/order-card-item/index.vue

+ 7 - 2
src/components/order-card-item/index.vue

@@ -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)