朱鑫波 4 năm trước cách đây
mục cha
commit
5246b409ee

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

@@ -111,7 +111,7 @@
               <span slot="actionTwo" slot-scope="text, record">
                 <a @click="editDetail(record)">编辑</a>
                 <a-divider type="vertical" />
-                <a @click="copyDetail(record)">复制</a>
+                <a @click="copyDetail(record)" :disabled="record.unitType+'' == '7'||record.unitType+'' == '5'">复制</a>
               </span>
               <span slot="status" slot-scope="text">{{ text | status }}</span>
               <span slot="putStatus" slot-scope="text">{{ text | putStatus }}</span>

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

@@ -647,7 +647,7 @@
             }
             //   dataJson.useAppMarket = dataJson.useAppMarket==0?false:true
 
-            this.allForm.sceneIdAll = JSON.parse(dataJson.sceneId).filter(item => item == 1).length > 0 ? 1 : JSON.parse(dataJson.sceneId)[0]
+            this.allForm.sceneIdAll = JSON.parse(dataJson.sceneId).filter(item => item == 1).length > 0 ? 1 : JSON.parse(dataJson.sceneId)[0] ==5 ? 5 : 2
             this.allForm.allianceAccount = this.allForm.sceneIdAll==5?'2':'1'
             this.allForm.useAppMarket = dataJson.useAppMarket ? (dataJson.useAppMarket == 0 ? false : true) : false
             this.allForm.appStore = this.allForm.useAppMarket ? JSON.parse(dataJson.appStore) : ['huawei', 'oppo',

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

@@ -661,7 +661,7 @@
             }
             //   dataJson.useAppMarket = dataJson.useAppMarket==0?false:true
             dataJson.dayBudget = dataJson.dayBudget / 1000
-            this.allForm.sceneIdAll = JSON.parse(dataJson.sceneId).filter(item => item == 1).length > 0 ? 1 : JSON.parse(dataJson.sceneId)[0]
+            this.allForm.sceneIdAll = JSON.parse(dataJson.sceneId).filter(item => item == 1).length > 0 ? 1 : JSON.parse(dataJson.sceneId)[0] ==5 ? 5 : 2
             this.allForm.allianceAccount = this.allForm.sceneIdAll==5?'2':'1'
             this.allForm.useAppMarket = dataJson.useAppMarket ? (dataJson.useAppMarket == 0 ? false : true) : false
             this.allForm.appStore = this.allForm.useAppMarket ? JSON.parse(dataJson.appStore) : ['huawei', 'oppo',

+ 35 - 15
src/views/modules/kuaishouapp/account/stepForm/Step3.vue

@@ -240,14 +240,14 @@
                           </ul>
                         </div>
                         <a-form-item label="">
-                          <a @click="getVideoList('image', index, item, bestIndex)">选择封面</a>
+                          <a @click="getVideoList('image', index, item, bestIndex,'postAdList')">选择封面</a>
                           <a @click="uploadImages(index,bestIndex,item,'postAdList')" style="margin-left:10px">上传封面</a>
                           <a @click="showImages(index,bestIndex)" v-if="item.chouzhenShow"
                             style="margin-left:10px">推荐封面</a>
                           <br />
                           <span v-for="(item,deleteIndex) of item.imageList" style="position:relative;">
                             <img :src="item.url" style="width:18%;margin:1%;" :key="item.url" />
-                            <a-icon type="close-circle" @click="deleteData(index,bestIndex,deleteIndex)"
+                            <a-icon type="close-circle" @click="deleteData(index,bestIndex,deleteIndex,'postAdList')"
                               style="position: absolute;right: 0px;" />
                           </span>
 
@@ -1063,17 +1063,30 @@
           })
         } else {
           //   this.pans[index].list[item.key].imageList.push(...item.image)
-
-          if (item.image.length + this.contentAll > 15) {
-            this.$message.error('当前选择封面' + item.image.length + '张,最多可选择' + (15 - this.contentAll) + '张')
-            return
-          } else {
-            this.pans[index].list[item.key].imageList.push(...item.image)
-            this.chouzhen = false
-            this.chouzhenList = []
-            this.checkList = []
-            this.checkAll = false
+          if(this.creativeMaterialType == '4'){
+            if (item.image.length + this.contentAll > 15) {
+              this.$message.error('当前选择封面' + item.image.length + '张,最多可选择' + (15 - this.contentAll) + '张')
+              return
+            } else {
+              this.pans[index].postAdList[item.key].imageList.push(...item.image)
+              this.chouzhen = false
+              this.chouzhenList = []
+              this.checkList = []
+              this.checkAll = false
+            }
+          }else{
+            if (item.image.length + this.contentAll > 15) {
+              this.$message.error('当前选择封面' + item.image.length + '张,最多可选择' + (15 - this.contentAll) + '张')
+              return
+            } else {
+              this.pans[index].list[item.key].imageList.push(...item.image)
+              this.chouzhen = false
+              this.chouzhenList = []
+              this.checkList = []
+              this.checkAll = false
+            }
           }
+         
         }
       },
       getData(className) {
@@ -1145,6 +1158,7 @@
           //   params.params.channelType = 0 = 0
           //   this.showVideoList('/kuaishou/batch/getVideoList', params)
         } else {
+          this.creativeMaterialType = item.creativeMaterialType
           this.$refs.check.showCheck(
             item.creativeMaterialType,
             '/kuaishou/batch/getImageList',
@@ -1463,7 +1477,8 @@
         this.loadingImage = true
         var params = {
           accountId: localStorage.getItem('accountId'),
-          uploadImageArr: this.imageArrList
+          uploadImageArr: this.imageArrList,
+          creativeMaterialType:this.creativeMaterialType
         }
         postAction("/kusiShouUpload/image", params).then(res => {
           if (res.success) {
@@ -1690,8 +1705,13 @@
 
 
       },
-      deleteData(index, bestIndex, deleteIndex) {
-        this.pans[index].list[bestIndex].imageList.splice(deleteIndex, 1)
+      deleteData(index, bestIndex, deleteIndex,type) {
+        if(type){
+          this.pans[index].postAdList[bestIndex].imageList.splice(deleteIndex, 1)
+        }else{
+          this.pans[index].list[bestIndex].imageList.splice(deleteIndex, 1)
+        }
+       
       },
       handleOkShow(e) {
         //