Sfoglia il codice sorgente

修改创意创建

zhuxinbo 5 anni fa
parent
commit
155fd395d0

+ 1 - 0
debug.log

@@ -5,3 +5,4 @@
 [0701/153438.192:ERROR:file_io.cc(89)] ReadExactly: expected 36, observed 0
 [0708/055752.148:ERROR:process_info.cc(375)] NtQuerySystemInformation SystemExtendedHandleInformation: {没有足够配额} 没有足够的虚拟内存或分页文件配额以完成指定的操作。 (0xc0000017)
 [0708/055807.088:ERROR:process_info.cc(359)] UncheckedAllocate
+[0713/163350.208:ERROR:file_io.cc(89)] ReadExactly: expected 36, observed 0

+ 3 - 0
src/components/layouts/TabLayout.vue

@@ -85,6 +85,7 @@
           localStorage.removeItem("step")
           localStorage.removeItem("campaignId")
           localStorage.removeItem("pans")
+          localStorage.removeItem("pansKey")
           localStorage.removeItem("appId")
       }
       if(!this.linkList.includes("/account/advertisingGroup")){
@@ -110,6 +111,7 @@
           localStorage.removeItem("step")
           localStorage.removeItem("campaignId")
           localStorage.removeItem("pans")
+          localStorage.removeItem("pansKey")
           localStorage.removeItem("appId")
         }
         if(!this.linkList.includes("/account/advertisingGroup")){
@@ -156,6 +158,7 @@
         if(key == "/account/stepForm"){
             localStorage.removeItem("step")
             localStorage.removeItem("pans")
+            localStorage.removeItem("pansKey")
         }
         if(key == "/account/originality"){
             localStorage.removeItem("originality")

+ 0 - 1
src/views/modules/advertiser/ProjectList.vue

@@ -192,7 +192,6 @@
     },
     mounted() {
       getAction('/sys/user/getAllUserList', '').then(res => {
-        console.log(res)
         if (res.success) {
           this.options = res.result
         }

+ 0 - 10
src/views/modules/advertiser/ProjectMemberList.vue

@@ -422,7 +422,6 @@
         params.projectId = item.id
         params.status = 0
         getAction('/ctop/transferAccount/list', params).then(res => {
-          console.log(res)
           if (res.success) {
             this.projectVisible = true
             this.dataProject = res.result.map((item, index) => {
@@ -441,7 +440,6 @@
         params.status = status
         params.auditor = this.userInfo().id
         putAction('/ctop/transferAccount/edit', params).then(res => {
-          console.log(res)
           if (res.success) {
             this.projectVisible = false
             this.getResponsibleList()
@@ -475,7 +473,6 @@
         })
       },
       onTabChange(key, type) {
-        console.log(key, type)
         this[type] = key
         this.keyWord = ''
         if (key == 'myProject') {
@@ -551,7 +548,6 @@
         if (this.noTitleKey == 'myProject') {
           this.visibleAdd = true
           this.itemJson = item
-          console.log(this.itemJson)
           getAction('/sys/user/getAllUserList', '').then(res => {
             if (res.success) {
               this.list = res.result
@@ -577,7 +573,6 @@
       handleAdd() {},
       handleEdit(item) {
         if (this.noTitleKey == 'myProject') {
-          console.log(item)
           this.title = item.projectName
           this.projectId = item.id
           this.getMemberList(item.id)
@@ -590,7 +585,6 @@
       },
       handleDelete(id) {},
       onChageLogin(e) {
-        console.log(this.mode)
         if (this.mode == 'login') {
           this.loginType = 'pangolin'
         } else {
@@ -661,17 +655,14 @@
         })
       },
       handleChange(value, options) {
-        console.log(value, options)
         //   this.appId = value
       },
       getElseData(value) {
         this.getStatistics()
       },
       handleBlur() {
-        console.log('blur')
       },
       handleFocus() {
-        console.log('focus')
         if (this.appId.length > 0) {
           this.options = []
           for (let i = 0; i < this.list.length; i++) {
@@ -693,7 +684,6 @@
             return data.toLowerCase().indexOf(value.toLowerCase()) > -1
           })
           this.options = [...this.options]
-          console.log(this.options)
         } else {
           if (this.appId.length > 0) {
             this.options = []

+ 0 - 5
src/views/modules/advertiser/UserAllocationList.vue

@@ -261,7 +261,6 @@
     mounted() {
       this.getParticipateList()
       getAction('/sys/user/getAllUserList', '').then(res => {
-        console.log(res)
         if (res.success) {
           this.optionsAll = res.result
         }
@@ -270,7 +269,6 @@
     methods: {
       moment,
       onChangeSwitch(item) {
-        console.log(item)
         var params = {}
         params.id = item.id
         params.accountStatus = item.accountStatus == 0 ? 1 : 0
@@ -304,7 +302,6 @@
         })
       },
       project(item) {
-        console.log(item)
         this.visibleAdd = true
         this.accountId = item.accountId
         this.projectId = item.projectId
@@ -333,9 +330,7 @@
             params.projectId = this.projectId
             params.accountId = this.accountId
             params.status = 0
-            console.log(params)
             postAction('/ctop/transferAccount/add', params).then(res => {
-              console.log(res)
               if (res.success) {
                 this.confirmLoading = false
                 this.visibleAdd = false

+ 1 - 1
src/views/modules/kuaishouapp/account/editGroup.vue

@@ -249,7 +249,7 @@
                           ? '不得低于1元,不得高于项目最高出价' + maxBid + '元'
                           : '不得低于1元,不得高于项目最高出价' + maxBid + '元'
                       }}</span>
-                       <span style="color:red;font-weight:700" v-else-if="item.bidType!=180&&item.cpaBid&&item.cpaBid>1">
+                       <span style="color:red;font-weight:700" v-else-if="item.bidType==2&&item.cpaBid&&item.cpaBid>1">
                           行为出价大于1元,请注意!!!
                       </span>
                     </a-form-item>

+ 1 - 1
src/views/modules/kuaishouapp/account/editGroupNew.vue

@@ -249,7 +249,7 @@
                           ? '不得低于1元,不得高于项目最高出价' + maxBid + '元'
                           : '不得低于1元,不得高于项目最高出价' + maxBid + '元'
                       }}</span>
-                      <span style="color:red;font-weight:700" v-else-if="item.bidType!=180&&item.cpaBid&&item.cpaBid>1">
+                      <span style="color:red;font-weight:700" v-else-if="item.bidType==2&&item.cpaBid&&item.cpaBid>1">
                         行为出价大于1元,请注意!!!
                       </span>
                     </a-form-item>

+ 1 - 0
src/views/modules/kuaishouapp/account/originality.vue

@@ -504,6 +504,7 @@
           var dataJson = JSON.stringify(this.title)
           console.log(this.title, this.titleKey)
           localStorage.setItem('pans', dataJson)
+          localStorage.setItem('pansKey', this.titleKey)
           this.$router.replace({
             path: '/account/stepForm'
           })

+ 1 - 1
src/views/modules/kuaishouapp/account/stepForm/Step2.vue

@@ -278,7 +278,7 @@
                           ? '不得低于1元,不得高于项目最高出价' + maxBid + '元'
                           : '不得低于1元,不得高于项目最高出价' + maxBid + '元'
                       }}</span>
-                      <span style="color:red;font-weight:700" v-else-if="item.bidType!=180&&item.cpaBid&&item.cpaBid>1">
+                      <span style="color:red;font-weight:700" v-else-if="item.bidType==2&&item.cpaBid&&item.cpaBid>1">
                           行为出价大于1元,请注意!!!     
                       </span>
                     </a-form-item>

+ 59 - 49
src/views/modules/kuaishouapp/account/stepForm/Step3.vue

@@ -800,6 +800,13 @@
           this.$bus.$emit('remove', '/account/stepForm')
         } else {
           this.addCreative(0)
+          getAction('/kuaishou/batch/checkCreativeCount', {
+            unitId: this.pansKey,
+            accountId: localStorage.getItem('accountId')
+          }).then(res => {
+            console.log(res)
+            this.content = res.result
+          })
         }
       },
       handleOk() {
@@ -824,6 +831,7 @@
         this.visible = false
         this.remove(this.pansKey)
       },
+
       handleSubmit(e) {
         e.preventDefault()
         var index = this.pans.findIndex(item => item.key === this.pansKey)
@@ -872,7 +880,7 @@
               ...values,
               unitId: this.pansKey,
               accountId: localStorage.getItem('accountId'),
-              content: this.content 
+              content: this.content
             }
             postAction('/kuaishou/batch/createCreative', params).then(res => {
               if (res.success) {
@@ -1403,64 +1411,66 @@
       }
     },
     mounted: function () {
-      if (localStorage.getItem('pans')) {
-        this.pans = JSON.parse(localStorage.getItem('pans')).map(item => {
-          return {
-            ...item,
-            list: []
-          }
-        })
-
-        this.pansKey = this.pans[0].key
-        this.$nextTick(() => {
-          this.addCreative(0)
-        })
-        getAction('/kuaishou/batch/checkCreativeCount', {
-          unitId: this.pansKey,
-          accountId: localStorage.getItem('accountId')
-        }).then(res => {
-          console.log(res)
-          this.content = res.result
-        })
-        getAction('/kuaishou/batch/getActionBarText', {
-          campaignId: localStorage.getItem('campaignId') ? localStorage.getItem('campaignId') : localStorage
-            .getItem('advertisingGroupKey')
-        }).then(res => {
-          if (res.success) {
-            this.appList = res.result
-          }
-        })
+      this.$nextTick(() => {
+        if (localStorage.getItem('pans')) {
+          this.pans = JSON.parse(localStorage.getItem('pans')).map(item => {
+            return {
+              ...item,
+              list: []
+            }
+          })
 
-        if (localStorage.getItem('appId')) {
-          this.showSite = true
-          this.getAppList(localStorage.getItem('appId'))
-        } else {
+          this.pansKey = this.pans[0].key
 
-          getAction('/kuaishou/batch/getAppId', {
-            accountId: localStorage.getItem('accountId'),
-            unitId: this.pansKey
+          this.addCreative(0)
+          getAction('/kuaishou/batch/checkCreativeCount', {
+            unitId: this.pansKey,
+            accountId: localStorage.getItem('accountId')
+          }).then(res => {
+            console.log(res)
+            this.content = res.result
+          })
+          getAction('/kuaishou/batch/getActionBarText', {
+            campaignId: localStorage.getItem('campaignId') ? localStorage.getItem('campaignId') : localStorage
+              .getItem('advertisingGroupKey')
           }).then(res => {
             if (res.success) {
-              if (res.result) {
-                this.showSite = true
-                this.getAppList(res.result)
-              } else {
-                this.showSite = false
-              }
-
+              this.appList = res.result
             }
           })
-        }
+
+          if (localStorage.getItem('appId')) {
+            this.showSite = true
+            this.getAppList(localStorage.getItem('appId'))
+          } else {
+
+            getAction('/kuaishou/batch/getAppId', {
+              accountId: localStorage.getItem('accountId'),
+              unitId: this.pansKey
+            }).then(res => {
+              if (res.success) {
+                if (res.result) {
+                  this.showSite = true
+                  this.getAppList(res.result)
+                } else {
+                  this.showSite = false
+                }
+
+              }
+            })
+          }
 
 
-      }
-      getAction('/kuaishou/batch/creativeWord', {
-        accountId: localStorage.getItem('accountId')
-      }).then(res => {
-        if (res.success) {
-          this.tags = res.result
         }
+        getAction('/kuaishou/batch/creativeWord', {
+          accountId: localStorage.getItem('accountId')
+        }).then(res => {
+          if (res.success) {
+            this.tags = res.result
+          }
+        })
       })
+
     }
   }
 </script>