Browse Source

快手-广告组创建表单转化

yumeng 5 years ago
parent
commit
2fea4f8027
1 changed files with 15 additions and 7 deletions
  1. 15 7
      src/views/modules/kuaishouapp/groupCreate.vue

+ 15 - 7
src/views/modules/kuaishouapp/groupCreate.vue

@@ -192,7 +192,8 @@
         :wrapperCol="{lg: {span: 10}, sm: {span: 17} }">
         <a-radio-group v-model="ocpxActionType" @change="showBidType">
           <a-radio-button value="2">行为数</a-radio-button>
-          <a-radio-button value="180" :disabled="isDisabled">激活数</a-radio-button>
+          <a-radio-button value="180" :disabled="activationDisabled">激活</a-radio-button>
+          <a-radio-button value="53" :disabled="isFormDisabled">表单转化</a-radio-button>
         </a-radio-group>
       </a-form-item>
 
@@ -279,7 +280,8 @@
         cpaBid: 0,// bid_type 是 OCPC 时该字段必填
         page: 2,// 资源位置
         unitName: "_" + moment().format('YYYY-MM-DD_HH:mm'),//广告组名称
-        isDisabled: true,
+        activationDisabled: true,
+        isFormDisabled: true,
 
 
         form: this.$form.createForm(this),
@@ -302,14 +304,20 @@
           params.accountId = this.accountId;
           getAction(this.url.getDeepConversionUrl, params).then((res) => {
             if (res.success) {
-
-              if (res.result) {
-                this.isDisabled = false;
+              if (res.result.isActivate == 1) {
+                this.activationDisabled = false;
               } else {
-                this.isDisabled = true;
+                this.activationDisabled = true;
+              }
+              if (res.result.isFormSubmit == 1) {
+                this.isFormDisabled = false;
+              } else {
+                this.isFormDisabled = true;
               }
-
               console.log(res.result)
+            } else {
+              this.activationDisabled = true;
+              this.isFormDisabled = true;
             }
           });