白承飞 5 年 前
コミット
87bae35bb7

+ 13 - 17
src/dashoo.cn/frontend_web/src/components/oilsupplier/goodsinfo.vue

@@ -1209,26 +1209,22 @@ export default {
     manufacturerdialog () {
       this.$refs['manufacturerList'].showDialog()
     },
-
-
-    imgFormat(val,index){
-        if(val !=null && val != undefined && val !=''){
-          let fileurlall = val.split('$')[index]
-          let fileurl = fileurlall.split('|')
-          if(fileurl[1] != null && fileurl[1] !='' && fileurl[1] != undefined){
-            let Format  = fileurl[1].split(".")
-            if(Format[1]!=null && Format[1] !='' && Format[1] != undefined){
-               let pictureFormat = Format[1];
-              if("jpg"== pictureFormat || "bmp" ==pictureFormat || "png" ==pictureFormat || "gif" ==pictureFormat|| "jpeg" ==pictureFormat){
-                return false;
-              }
+    imgFormat (val, index) {
+      if (val != null && val != undefined && val != '') {
+        let fileurlall = val.split('$')[index]
+        let fileurl = fileurlall.split('|')
+        if (fileurl[1] != null && fileurl[1] != '' && fileurl[1] != undefined) {
+          let Format = fileurl[1].split('.')
+          if (Format[1] != null && Format[1] !='' && Format[1] != undefined) {
+            let pictureFormat = Format[1]
+            if (pictureFormat == 'jpg' || pictureFormat == 'bmp' || pictureFormat == 'png' || pictureFormat == 'gif' || pictureFormat == 'jpeg') {
+              return false
             }
           }
-          return true;
         }
-      },
-
-
+        return true
+      }
+    },
     fileurlcut (val, index) {
       let fileurlall = val.split('$')[index]
       let fileurl = fileurlall.split('|')