huangmp 2 anni fa
parent
commit
b01556fd31
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      src/components/order-card-item/index.vue

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

@@ -189,6 +189,9 @@
           }else if(prodName.indexOf("方形贴纸") !== -1){
             width = 662;
             height = 662;
+          }else if(prodName.indexOf("撕拉") !== -1){
+            width = 768;
+            height = 768;
           }
           let _URL = window.URL || window.webkitURL;
           let img = new Image();
@@ -330,6 +333,8 @@
           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)