Browse Source

移除多余代码

xiaohaizhao 1 year ago
parent
commit
18cf64ca7a
2 changed files with 0 additions and 3 deletions
  1. 0 2
      select/product/index.js
  2. 0 1
      utils/FormatTheAttachment.js

+ 0 - 2
select/product/index.js

@@ -91,10 +91,8 @@ Page({
                     let image = value.attinfos.find(v => v.fileType == "image");
                     value.cover = image ? image.cover : "";
                 }
-
                 if (newPrice) value.newPrice = CNY(value[newPrice] || 0);
                 if (oldPrice) value.oldPrice = CNY(value[oldPrice] || 0);
-
                 value.brandName = value.brand.map(name => name.brandname)
                 value.tradefields = value.tradefield.map(name => name.tradefield)
                 return value;

+ 0 - 1
utils/FormatTheAttachment.js

@@ -14,7 +14,6 @@ function fileList(list) {
         typeList = [];
     for (let key in suffixList) typeList.push(key);
     for (let i = 0; i < list.length; i++) {
-        console.log(list[i])
         list[i].fileType = 'unknown';
         list[i].cover = `/static/image/file/unknown.png`
         const suffix = list[i].postfix.toLowerCase();