huangmp 2 лет назад
Родитель
Сommit
df64832fcc
1 измененных файлов с 10 добавлено и 5 удалено
  1. 10 5
      src/components/order-card-item/index.vue

+ 10 - 5
src/components/order-card-item/index.vue

@@ -161,15 +161,18 @@
           }else if(prodName.indexOf("手幅") !== -1){
             width = 1252;
             height = 3614;
-          }else if(prodName.indexOf("方形贴纸") !== -1){
-            width = 662;
-            height = 662;
           }else if(prodName.indexOf("4寸典藏级花式拍立得") !== -1){
             width = 921;
             height = 1087;
           }else if(prodName.indexOf("5寸典藏级花式拍立得") !== -1){
             width = 1346;
             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 img = new Image();
@@ -301,10 +304,12 @@
           this.prodType = '手幅';
         }else if(prodName.indexOf('毛绒徽章') != -1){
           this.prodType = '毛绒徽章';
-        }else if(prodName.indexOf('方形贴纸') != -1){
-          this.prodType = '方形贴纸';
         }else if(prodName.indexOf('三宫格') != -1){
           this.prodType = '三宫格';
+        }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)