소스 검색

修改批量2.0

朱鑫波 3 년 전
부모
커밋
823c52c464

+ 10 - 1
src/views/modules/kuaishouapp/batchCreation/creat/creatCampaign.vue

@@ -16,6 +16,7 @@
           <a-radio-button value="3">获取电商下单</a-radio-button>
           <a-radio-button value="4">推广品牌活动</a-radio-button>
           <a-radio-button value="5">收集销售线索</a-radio-button>
+          <a-radio-button value="7">提高应用活跃</a-radio-button>
         </a-radio-group>
       </a-form-item>
 
@@ -135,10 +136,11 @@ export default {
               localStorage.setItem('campaignList', res.result)
               localStorage.setItem('campaignType', this.type)
               this.loading = false
-              this.$bus.$emit('remove', '/creat/creatCampaign')
               this.$router.push({
                 path: '/creat/creatUnit',
               })
+              this.$bus.$emit('remove', '/creat/creatCampaign')
+              
             } else {
               this.$message.error(res.message)
               this.loading = false
@@ -188,6 +190,13 @@ export default {
         this.showUrlType = false
         this.showChannelType = true
       }
+      if (this.type == 7) {
+        this.promotionName = '提高应用活跃'
+        this.showApp = false
+        this.showRedirect = true
+        this.showUrlType = false
+        this.showChannelType = true
+      }
       this.campaignName = this.promotionName + '_' + moment(new Date())
     },
     handleChange(value) {

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

@@ -45,7 +45,7 @@
         label="目标应用"
         :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
         :wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }"
-        v-if="campaignType == '2'"
+        v-if="campaignType == '2'||campaignType == '7'"
       >
         <a-select
           v-decorator="['appId', { rules: [{ required: true, message: '请选择目标应用' }] }]"
@@ -73,7 +73,7 @@
         label="调起链接"
         :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
         :wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }"
-        v-if="campaignType == '2'"
+        v-if="campaignType == '2'||campaignType == '7'"
       >
         <a-switch default-checked v-model="uriCheck"/>
         <span style="color:red"> 需加白使用</span>
@@ -98,7 +98,7 @@
         </a-radio-group>
       </a-form-item>
       <a-form-item
-        :label="campaignType == 3 ? ' ' : '链接'"
+        :label="campaignType == 3 ? ' ' : campaignType == '7'?'H5链接':'链接'"
         :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
         :wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }"
         v-if="campaignType == 3||campaignType == 4||campaignType == 5||campaignType == 6||campaignType == 7"