Преглед изворни кода

修改自动投放配置页加白

朱鑫波 пре 4 година
родитељ
комит
10c3d87877

+ 6 - 6
src/views/modules/autoLaunch/configLaunchInfo.vue

@@ -912,7 +912,7 @@
                         </a-form-item>
                         </div>
                     </div>
-                    <div class="row-item" v-if="getFormData('generalTrack')==1">
+                    <div class="row-item" v-if="whiteList.actionbar_click_url_switch==1&&getFormData('generalTrack')==1">
                         <div class="hint-item"></div>
                         <div class="label-item">
                         <div class="text-item">点击按钮监测链接</div>
@@ -2320,12 +2320,12 @@ export default {
                     })
 
                     let fngetWhite=new Promise((resolve,reject)=>{
-                        getAction('/kuaishou/batch/getIsActivate', {
-                            accountId: this.accountId
-                        }).then(res => {
+                        getAction('/kuaishou/batch/getWhiteList', {
+                            accountId: this.accountId,
+                        }).then((res) => {
                             if (res.success) {
-                                this.groupTypeData = res.result
-                                resolve()
+                                    this.whiteList=res.result
+                                    resolve()
                             }
                         })
                     })

+ 1 - 1
src/views/modules/autoLaunch/newAppId.vue

@@ -34,7 +34,7 @@
                 <div class="input-item">
                     <a-form-item>
                           <a-radio-group  v-model="platform" >
-                            <a-radio-button :value="1">Android应用下载</a-radio-button>
+                            <a-radio-button :value="1">Android应用下载</a-radio-button>
                             <a-radio-button :value="3">IOS应用下载</a-radio-button>
                         </a-radio-group>
                     </a-form-item>

+ 15 - 3
src/views/modules/kuaishouapp/batchCreation/creat/creatUnit.vue

@@ -111,7 +111,7 @@
       <a-modal v-model="convert" title="选择转化目标">
         <template slot="footer">
           <a-button key="back" @click="convert = false">取消</a-button>
-          <a-button key="submit" type="primary" @click="convert = false"> 确定 </a-button>
+          <a-button key="submit" type="primary" @click="convertOk"> 确定 </a-button>
         </template>
         <a-form-item
           label="追踪方式"
@@ -1197,7 +1197,7 @@ export default {
       checkVideo: [],
       checkVideoAll: [],
       checkVideoWai: [],
-      checkVideoWhole:[],
+      checkVideoWhole: [],
       dataSource: [],
       active: 0,
       time: [],
@@ -1274,6 +1274,7 @@ export default {
         description: '',
       },
       convertType: '1',
+      convertAllList: [],
       dataList: [],
       clickTrackUrlShow: false,
       clickTrackUrlShowType: '1',
@@ -1896,6 +1897,16 @@ export default {
         }
       })
     },
+    convertOk() {
+      var dataLink = []
+      dataLink = this.convertAllList.filter((item) => {
+        return item.convert_id == this.convertId.key
+      })
+      if (dataLink.length > 0) {
+        this.form.setFieldsValue({ clickTrackUrl: dataLink[0].click_url })
+        this.convert = false
+      }
+    },
     showConvert() {
       this.convertChange()
       if (this.campaignType == 2) {
@@ -1930,6 +1941,7 @@ export default {
               convert_id: item.convert_id + '',
             }
           })
+          this.convertAllList.push(...this.convertList)
         }
       })
     },
@@ -1947,7 +1959,7 @@ export default {
         unitNameCheck: false,
         deepConversionType: '',
         deepConversionBid: '',
-        ocpxActionType:  this.allForm.groupTypeData.isActivate == '1' ? 180 : 2,
+        ocpxActionType: this.allForm.groupTypeData.isActivate == '1' ? 180 : 2,
       })
     },
     resData(index) {