소스 검색

1、长形贴纸修改

huangmp 2 년 전
부모
커밋
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)