zhuxinbo 5 tahun lalu
induk
melakukan
fbb9e4dde9

+ 6 - 4
src/views/modules/kuaishouapp/account/advertisingGroup.vue

@@ -96,7 +96,7 @@
               <span slot="speed" slot-scope="text">{{ text | speed }}</span>
               <span slot="sceneId" slot-scope="text"><span v-for="item of text"
                   :key="item">{{ item | sceneId }}</span></span>
-              <span slot="showModel" slot-scope="text">{{ text | showModel }}</span>
+              <span slot="showMode" slot-scope="text">{{ text | showModel }}</span>
               <span slot="unitType" slot-scope="text">{{ text == 4 ? '自定义' : '' }}</span>
               <span slot="urlType" slot-scope="text">{{ text | urlType }}</span>
 
@@ -452,7 +452,7 @@
       dataIndex: 'showMode',
 
       scopedSlots: {
-        customRender: 'showModel'
+        customRender: 'showMode'
       }
     },
     {
@@ -620,9 +620,11 @@
       },
       sceneId(sta) {
         var data = {
+          0: '未知',
           1: '优选广告位',
-          2: '信息流广告',
-          3: '视频后贴片广告'
+          3: '视频播放页广告-便利贴广告',
+          6: '上下滑大屏广告',
+          7: '信息流广告'
         }
         return data[sta]
       },

+ 11 - 12
src/views/modules/kuaishouapp/account/editGroup.vue

@@ -83,13 +83,7 @@
        <a-form-item label=" " :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
         :wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }" class="else-label" v-if="campaignType == '2'&&(getPlatForm(getData('appId'))=='1'||getPlatForm(getData('appId'))=='2')">
 
-        <a-checkbox v-decorator="[
-          'useAppMarket',
-          {
-            valuePropName: 'checked',
-            initialValue: false,
-          },
-        ]">
+        <a-checkbox  @change="onChange" :checked="allForm.useAppMarket">
           优先从系统应用商店下载
         </a-checkbox>
       </a-form-item>
@@ -467,7 +461,8 @@ export default {
         groupTypeData: null,
         fail: [],
         success: [],
-        sceneId:[7]
+        sceneId:[7],
+        useAppMarket:false
       },
       typeCopy:"edit",
       dataList: [],
@@ -674,9 +669,10 @@ export default {
       getAction('/kuaishou/batch/getUnitDetail', params).then(res => {
         if (res.success) {
           var dataJson = { ...res.result.baseInfo, ...res.result.appInfo, ...res.result.target }
-          dataJson.useAppMarket = dataJson.useAppMarket==0?false:true
+        //   dataJson.useAppMarket = dataJson.useAppMarket==0?false:true
           dataJson.dayBudget = dataJson.dayBudget / 1000
           dataJson.sceneId = JSON.parse( dataJson.sceneId )[0] == '1'? '1':'2'
+          this.allForm.useAppMarket= dataJson.useAppMarket==0?false:true
           this.allForm.sceneId = JSON.parse( dataJson.sceneId )[0] == '1'? [7]:JSON.parse( res.result.baseInfo.sceneId )
           console.log(this.allForm.sceneId)
           this.allForm.dayBudget = dataJson.dayBudget == 0 ? '0' : '1'
@@ -777,7 +773,9 @@ export default {
             endTime: this.allForm.time == '2' ? moment(this.timeRange[1]).format('YYYY-MM-DD') : '',
             scheduleTime: this.allForm.scheduleTimeData
           }
-
+          if (this.allForm.useAppMarket == true || this.allForm.useAppMarket == false) {
+            params.useAppMarket = this.allForm.useAppMarket ? 1 : 0
+          }
           if (this.checkedTrue) {
             var data = this.populationData
             postAction('/kuaishou/batch/addDirectionalTemplate', {
@@ -821,8 +819,9 @@ export default {
         }
       })
     },
-    onChange(value) {
-      console.log(value)
+    onChange(e) {
+        this.allForm.useAppMarket =e.target.checked
+    //   console.log(value)
     },
     handleChange(value) {
       //   this.$refs.population.getAppList(value)