瀏覽代碼

去掉上传素材测试

zhuxinbo 5 年之前
父節點
當前提交
bfb6f934c9

+ 2 - 1
src/views/modules/Statistics/dataDisplayStatistics.vue

@@ -583,7 +583,7 @@ export default {
                 : item.activationPrice
                 ? (item.activationPrice / this.discount).toFixed(2)
                 : 0,
-              date: this.statHour ? this.getDate() + '  ' + this.statHour : this.getDate(),
+              date: this.statHour ? res.statDate + '  ' + this.statHour : res.statDate,
               formCount: item.formCount > 0 ? item.formCount : item.activationCount
             }
           })
@@ -668,6 +668,7 @@ export default {
             this.data.push(allNow)
             this.data.push(allYesterday)
             this.data.push(chainRatio)
+          } else {
           }
 
           length = this.data.length

+ 18 - 0
src/views/modules/achievements/design.vue

@@ -204,6 +204,24 @@ const columns = [
     align: 'center'
   },
   {
+    title: '投放平台',
+    dataIndex: 'reviewDetail',
+    key: 'reviewDetail',
+    align: 'center'
+  },
+  {
+    title: '投放账户',
+    dataIndex: 'reviewDetail',
+    key: 'reviewDetail',
+    align: 'center'
+  },
+  {
+    title: '封面点击数',
+    dataIndex: 'reviewDetail',
+    key: 'reviewDetail',
+    align: 'center'
+  },
+  {
     title: '广告语',
     dataIndex: 'description',
     key: 'description',

+ 0 - 38
src/views/modules/kuaishouapp/creativeCreate.vue

@@ -642,47 +642,9 @@ export default {
       console.log(file)
       var bmf = new BMF()
       var that = this
-      return new Promise(function(resolve, reject) {
-        bmf.md5(file[0], (err, md5) => {
-          console.log(md5, 123123123)
-          that.md5 = md5
-          fileCheck({ code: md5 }).then(res => {
-            console.log(res)
-            if (res.code == 0) {
-              if (file[0].type == 'image/jpeg' || file[0].type == 'jpg' || file[0].type == 'image/png') {
-                if (that.tiepianImageLocalUpload) {
-                  that.tiepianImageLocalUploadList.push(res.url)
-                } else if (that.showImageUpload) {
-                  that.localImageUrl.push(res.url)
-                } else if (that.showLocalImageUpload) {
-                  that.imageUrl.push(res.url)
-                }
-              } else {
-                if (that.localUpload) {
-                  that.localUrl = res.url
-                } else if (that.tiepianVideoLocalUpload) {
-                  that.tiepianVideoLocalUploadList.push(res.url)
-                }
-              }
-              reject()
-            } else {
-              resolve()
-            }
-          })
-        })
-      })
     },
     overUpload(url) {
       console.log(url, this.md5)
-      if (url == Array) {
-        fileInsert({ code: this.md5, url: url[0] }).then(res => {
-          console.log(res)
-        })
-      } else {
-        fileInsert({ code: this.md5, url: url }).then(res => {
-          console.log(res)
-        })
-      }
     },
     handleOk(e) {
       console.log(e)

+ 3 - 22
src/views/modules/kuaishouapp/uploadVideo.vue

@@ -211,31 +211,12 @@ export default {
       console.log(file)
       var bmf = new BMF()
       var that = this
-      return new Promise(function(resolve, reject) {
-        bmf.md5(file[0], (err, md5) => {
-          console.log(md5, 123123123)
-          that.md5 = md5
-          fileCheck({ code: md5 }).then(res => {
-            console.log(res)
-            if (res.code == 0) {
-              if (file[0].type == 'image/jpeg' || file[0].type == 'jpg' || file[0].type == 'image/png') {
-                that.localImageUrl.push(res.url)
-              } else {
-                that.localUrl.push(res.url)
-              }
-              reject()
-            } else {
-              resolve()
-            }
-          })
-        })
-      })
     },
     overUpload(url) {
       // console.log(url,this.md5)
-      fileInsert({ code: this.md5, url: url[0] }).then(res => {
-        console.log(res)
-      })
+    //   fileInsert({ code: this.md5, url: url[0] }).then(res => {
+    //     console.log(res)
+    //   })
     }
   },
   created: function() {