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

注释头条的深度出价和通投智选

liubei@c-top.com.cn пре 3 година
родитељ
комит
d8bcc5d6ad

+ 40 - 47
src/views/modules/account-config/components/configuration-modal.vue

@@ -292,7 +292,7 @@
                             <a-radio-button value="a">系统优选广告位</a-radio-button>
                             <a-radio-button value="b">首选媒体</a-radio-button>
                             <!-- <a-radio-button value="c">按场景指定位置</a-radio-button> -->
-                            <a-radio-button value="d">通投智选</a-radio-button>
+                            <!-- <a-radio-button value="d">通投智选</a-radio-button> -->
                         </a-radio-group>
                     </a-form-model-item>
                     <div class="adver-position-radio">
@@ -800,7 +800,7 @@
                             <span>元</span>
                         </a-form-model-item>
                     </div>
-                    <div v-if="deepExternalShow">
+                    <!-- <div v-if="deepExternalShow">
                         <a-form-model-item label="深度优化方式" prop="deepExternal">
                             <a-radio-group @change="adDeepBidTypeChange" v-model="configForm.adDeepBidType" button-style="solid">
                                 <a-radio-button value="DEEP_BID_MIN" >自定义双出价</a-radio-button>
@@ -816,16 +816,9 @@
                             :step="0.01"
                             placeholder="请输入"
                         /> 元
-                            <!-- <a-input-number
-                                class="common-input"
-                                v-model="configForm.adDeepCpabid"
-                                :min="0.1"
-                                :max="10000"
-                                :step="0.01"
-                                placeholder="请输入"
-                            /> 元 -->
+                            
                         </a-form-model-item>
-                    </div>
+                    </div> -->
                 </div>
                 <!-- <div class="separate-module-con">
                     <p class="rock-title">第三方检测链接</p>
@@ -1157,7 +1150,7 @@
                         </a-form-model-item>
                     </div>
                     <div v-else>
-                        <a-form-model-item label="创意内容" v-if="creativeImageShow">
+                        <a-form-model-item label="创意内容">
                             <a-radio-group v-model="configForm.creativeImageMode" button-style="solid"  @change="handleChangeCreativeType">
                                 <a-radio-button value="CREATIVE_IMAGE_MODE_VIDEO_VERTICAL">竖版视频</a-radio-button>
                                 <a-radio-button value="CREATIVE_IMAGE_MODE_VIDEO" :disabled="pictureStatus">横版视频</a-radio-button>
@@ -1166,9 +1159,9 @@
                                 <a-radio-button value="CREATIVE_IMAGE_MODE_LARGE_VERTICAL" :disabled="pictureStatus">大图竖图</a-radio-button>
                             </a-radio-group>
                         </a-form-model-item>
-                        <a-form-model-item label="创意内容" v-else="creativeImageShow">      
+                        <!-- <a-form-model-item label="创意内容" v-else="creativeImageShow">      
                                 <radio-check v-model="configForm.creativeImageMode" :options="creativeImageModeArr"></radio-check>
-                        </a-form-model-item>
+                        </a-form-model-item> -->
                         <a-form-model-item label="创意组件" prop="componentId" key="componentIdkey" 
                         v-if="configForm.creativeImageMode!='CREATIVE_IMAGE_MODE_LARGE'&&configForm.creativeImageMode!='CREATIVE_IMAGE_MODE_LARGE_VERTICAL'&&configForm.adverPosition != 'a'">
                             <a-input
@@ -2790,9 +2783,9 @@ export default {
                 this.isTAwemeStatus = true;
                 this.originalityStatus = true;
                 this.pictureStatus = false;
-                this.creativeImageShow = false;
-                this.configForm.creativeImageMode = [];
-                this.configForm.creativeImageMode.push('CREATIVE_IMAGE_MODE_VIDEO_VERTICAL');
+                // this.creativeImageShow = false;
+                // this.configForm.creativeImageMode = [];
+                // this.configForm.creativeImageMode.push('CREATIVE_IMAGE_MODE_VIDEO_VERTICAL');
                 // this.configForm.creativeImageMode = this.configForm.creativeImageMode.toString();
             }
             this.configForm.adUnionVideoType = '';
@@ -2976,24 +2969,24 @@ export default {
                                             }
                                             this.configForm.adConvertType = updateResult[0].convert_type;
                                             this.optimizationOption = updateResult[0].external_actions;
-                                            this.optimizationOption.forEach(element => {
-                                                    if (element.convert_id == detailData.adConvertId) {
-                                                    if ("deep_external_actions" in element) {
-                                                        this.deepExternalShow = true;
+                                            // this.optimizationOption.forEach(element => {
+                                            //         if (element.convert_id == detailData.adConvertId) {
+                                            //         if ("deep_external_actions" in element) {
+                                            //             this.deepExternalShow = true;
                                                         
-                                                    }else{
-                                                        this.deepExternalShow = false;
-                                                    }
-                                                    }
-                                                });
-                                                if (detailData.adDeepBidType == 'AUTO_MIN_SECOND_STAGE') {
-                                                        this.adDeepCpabidShow = false;
-                                                        this.configForm.adDeepCpabid = 0
-                                                    }else{
-                                                        this.adDeepCpabidShow = true;
-                                                    }
-                                                this.configForm.adDeepBidType = detailData.adDeepBidType;
-                                                this.configForm.adDeepCpabid = detailData.adDeepCpabid;
+                                            //         }else{
+                                            //             this.deepExternalShow = false;
+                                            //         }
+                                            //         }
+                                            //     });
+                                                // if (detailData.adDeepBidType == 'AUTO_MIN_SECOND_STAGE') {
+                                                //         this.adDeepCpabidShow = false;
+                                                //         this.configForm.adDeepCpabid = 0
+                                                //     }else{
+                                                //         this.adDeepCpabidShow = true;
+                                                //     }
+                                                // this.configForm.adDeepBidType = detailData.adDeepBidType;
+                                                // this.configForm.adDeepCpabid = detailData.adDeepCpabid;
                                         
                                         })
                                     
@@ -3242,16 +3235,16 @@ export default {
                                 this.creativeTag = detailData.adKeywords;
                             })
                         }
-                        this.$nextTick(()=>{
-                            // this.configForm.creativeImageMode = detailData.creativeImageMode
-                            if (detailData.inventoryCatalog == 'UNIVERSAL') {
-                                this.creativeImageShow = false;
-                                this.configForm.creativeImageMode = detailData.creativeImageMode.split(',')
-                            }else{
-                                this.creativeImageShow = true
-                                this.configForm.creativeImageMode = detailData.creativeImageMode
-                            }
-                        })
+                        // this.$nextTick(()=>{
+                        //     // this.configForm.creativeImageMode = detailData.creativeImageMode
+                        //     if (detailData.inventoryCatalog == 'UNIVERSAL') {
+                        //         this.creativeImageShow = false;
+                        //         this.configForm.creativeImageMode = detailData.creativeImageMode.split(',')
+                        //     }else{
+                        //         this.creativeImageShow = true
+                        //         this.configForm.creativeImageMode = detailData.creativeImageMode
+                        //     }
+                        // })
                         this.configForm.adInterestActionMode = detailData.adInterestActionMode;
                         this.configForm.creativeDisplayMode = detailData.creativeDisplayMode;
                         this.configForm.creativeIsPresentedVideo = detailData.creativeIsPresentedVideo;
@@ -3735,9 +3728,9 @@ export default {
             paramsFormData.copywritingNumber = paramsFormData.copywritingNumber?paramsFormData.copywritingNumber:0
             paramsFormData.userId = this.userInfo().id;
             console.log(paramsFormData.creativeImageMode);
-            if (typeof paramsFormData.creativeImageMode == 'object'){
-                paramsFormData.creativeImageMode = paramsFormData.creativeImageMode.toString()
-            }
+            // if (typeof paramsFormData.creativeImageMode == 'object'){
+            //     paramsFormData.creativeImageMode = paramsFormData.creativeImageMode.toString()
+            // }
             console.log(paramsFormData);
             
             this.$refs.ruleForm.validate(valid => {

+ 15 - 4
src/views/modules/advertiser/modules/projectListModal.vue

@@ -463,11 +463,11 @@
           });
 
           this.showDian = true
-          this.maxBidShow = false;
+         
         } else {
           var { ocpxActionType, bidType, ...params } = record
           this.showDian = false
-          this.maxBidShow = true;
+          
         }
         this.form.resetFields()
         this.model = Object.assign({}, params)
@@ -579,13 +579,24 @@
               let formData = Object.assign(this.model, values)
               console.log(formData);
               //   if(this.model.mediaId)
-              if (this.maxBidShow) {
+              if (this.model.mediaId == 2 || this.model.mediaId == 4) {
+                if (this.maxBidShow) {
                 if (formData.maxBid) {
                 formData.maxBid = formData.maxBid * 1000
-              }
+                }
               }else{
                 formData.maxBid = 0
               }
+              }else{
+                formData.maxBid = formData.maxBid * 1000
+              }
+              // if (this.maxBidShow) {
+              //   if (formData.maxBid) {
+              //   formData.maxBid = formData.maxBid * 1000
+              // }
+              // }else{
+              //   formData.maxBid = 0
+              // }
              
               if (formData.maxDeepCpaBid) {
                 formData.maxDeepCpaBid = formData.maxDeepCpaBid * 1000