朱鑫波 4 年之前
父节点
当前提交
390f4a024f
共有 1 个文件被更改,包括 60 次插入8 次删除
  1. 60 8
      src/views/modules/kuaishouapp/newBatch/index.vue

+ 60 - 8
src/views/modules/kuaishouapp/newBatch/index.vue

@@ -184,7 +184,7 @@ li.chouzhen.first:before {
                     </a-form-item>
                   </a-col>
                 </a-row>
-                <a-row v-show="getData('campaignType','form') == 2">
+                <a-row v-show="getData('campaignType', 'form') == 2">
                   <a-col :xl="14" :md="24">
                     <a-form-item label="推广平台">
                       <a-radio-group
@@ -342,7 +342,7 @@ li.chouzhen.first:before {
                       <div v-if="groupTemplateId == null">无</div>
 
                       <div v-else>
-                        {{ unitInfo.deepConversionType }}
+                        {{ setDeepConversionType(unitInfo.deepConversionType) }}
                       </div>
                     </a-form-item>
                   </a-col>
@@ -358,7 +358,7 @@ li.chouzhen.first:before {
                       <div v-if="groupTemplateId == null">无</div>
 
                       <div v-else>
-                        {{ unitInfo.deepConversionBid / 1000 }}
+                        {{ unitInfo.deepConversionBid }}
                       </div>
                     </a-form-item>
                   </a-col>
@@ -1036,7 +1036,7 @@ li.chouzhen.first:before {
               v-if="
                 groupTypeData &&
                 (unitInfo.ocpxActionType == 180 || unitInfo.ocpxActionType == 53) &&
-                groupTypeData.deepConversionTypes.length > 0 
+                groupTypeData.deepConversionTypes.length > 0
               "
             >
               <a-col :span="16">
@@ -1090,6 +1090,36 @@ li.chouzhen.first:before {
                 </a-form-model-item>
               </a-col>
             </a-row>
+            <a-row
+              :gutter="16"
+              v-if="
+                groupTypeData &&
+                (unitInfo.ocpxActionType == 180 || unitInfo.ocpxActionType == 53) &&
+                groupTypeData.deepConversionTypes.length > 0
+              "
+            >
+              <a-col :span="16">
+                <a-form-model-item label="深度转化出价">
+                  <a-input-number
+                    v-model="unitInfo.deepConversionBid"
+                    style="width: 90%"
+                    :min="unitInfo.bidMin ? unitInfo.bidMin : 0"
+                    :precision="2"
+                  />元
+                  <br />
+                  <span
+                    v-if="
+                      unitInfo.deepConversionBid &&
+                      (unitInfo.bidMin || unitInfo.bidMin > 0) &&
+                      (unitInfo.bidMax || unitInfo.bidMax > 0)
+                    "
+                    >按照两个出价得到的期望目标深度转化率为{{
+                      (unitInfo.bidMin / unitInfo.deepConversionBid).toFixed(2) * 100
+                    }}%~{{ (unitInfo.bidMax / unitInfo.deepConversionBid).toFixed(2) * 100 }}%</span
+                  >
+                </a-form-model-item>
+              </a-col>
+            </a-row>
           </div>
         </div>
 
@@ -2535,6 +2565,13 @@ export default {
               this.createOptions = res.result
             }
           })
+          this.getAction('/kuaishou/batch/getIsActivate', {
+            accountId: n,
+          }).then((res) => {
+            if (res.success) {
+              this.groupTypeData = res.result
+            }
+          })
           this.getAction('/kuaishou/batch/getCreativeWordStyles', {
             accountId: n,
           }).then((res) => {
@@ -2643,6 +2680,13 @@ export default {
           this.createOptions = res.result
         }
       })
+      this.getAction('/kuaishou/batch/getIsActivate', {
+        accountId: this.$route.query.accountId,
+      }).then((res) => {
+        if (res.success) {
+          this.groupTypeData = res.result
+        }
+      })
       this.getAction('/kuaishou/batch/getCreativeWordStyles', {
         accountId: this.$route.query.accountId,
       }).then((res) => {
@@ -2867,6 +2911,13 @@ export default {
     })
   },
   methods: {
+    setDeepConversionType(typeChange) {
+      // groupTypeData.deepConversionTypes
+      var data = this.groupTypeData.deepConversionTypes.filter((item) => {
+        return item.deepConversionType == typeChange
+      })
+      return data[0].desc
+    },
     checkVideoFun() {
       this.ipagination.current = 1
       this.checkMatemalVisible = true
@@ -3649,11 +3700,11 @@ export default {
       this.templateList = []
       var params = {}
       params.accountId = this.accountId
-      if(this.getData('campaignType','form') == 2){
-        params.platformOs =  this.getData('systemType', 'form') == 'Android' ? 1 : 2
+      if (this.getData('campaignType', 'form') == 2) {
+        params.platformOs = this.getData('systemType', 'form') == 'Android' ? 1 : 2
       }
 
-      this.getAction('/batch/kuaishouTemplate/list',params).then((res) => {
+      this.getAction('/batch/kuaishouTemplate/list', params).then((res) => {
         this.loading = false
         if (res.success) {
           this.templateList = res.result
@@ -3911,6 +3962,7 @@ export default {
               bid: this.unitInfo.bid ? this.unitInfo.bid * 1000 : null,
               bidMax: this.unitInfo.bidMax ? this.unitInfo.bidMax * 1000 : null,
               bidMin: this.unitInfo.bidMin ? this.unitInfo.bidMin * 1000 : null,
+              bidMin: this.unitInfo.deepConversionBid ? this.unitInfo.deepConversionBid * 1000 : null,
             }
           } else {
             this.$message.error('请填写组内容')
@@ -4264,7 +4316,7 @@ export default {
           params.bid = this.unitInfo.bid ? this.unitInfo.bid * 1000 : 0
           params.bidMax = this.unitInfo.bidMax ? this.unitInfo.bidMax * 1000 : 0
           params.bidMin = this.unitInfo.bidMin ? this.unitInfo.bidMin * 1000 : 0
-
+          params.deepConversionBid = this.unitInfo.deepConversionBid ? this.unitInfo.deepConversionBid * 1000 : 0
           //      allianceAccount: '1',
           // dayBudgetType: '1',
           // unitTime: '1',