朱鑫波 4 vuotta sitten
vanhempi
commit
a2c600b787
2 muutettua tiedostoa jossa 28 lisäystä ja 28 poistoa
  1. 1 1
      src/main.js
  2. 27 27
      src/views/modules/kuaishouapp/account/stepForm/Step2.vue

+ 1 - 1
src/main.js

@@ -93,7 +93,7 @@ Vue.use(preview)
 Vue.use(vueBus);
 Vue.use(JeecgComponents);
 Vue.use(VuePreview);
-Vue.prototype.doMian = "/jeecg-boot/";
+Vue.prototype.doMian = "/jeecg-boot";
 Vue.prototype.postFormAction = postFormAction;
 Vue.prototype.postDataAction = postAction;
 Vue.prototype.getAction = getAction;

+ 27 - 27
src/views/modules/kuaishouapp/account/stepForm/Step2.vue

@@ -223,7 +223,7 @@
         </span>
       </a-form-item>
       <a-form-item label="场景广告位" :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
-        :wrapperCol="{ lg: { span: 17 }, sm: { span: 17 } }">
+        :wrapperCol="{ lg: { span: 17 }, sm: { span: 17 } }" v-if="allForm.allianceAccount == '1'">
         <!-- v-decorator="['speed', { initialValue: '1' }]" -->
         <a-radio-group buttonStyle="solid" v-decorator="['sceneId', { initialValue: '1' }]">
           <a-radio-button value="1">优选广告位</a-radio-button>
@@ -546,7 +546,7 @@
           success: [],
           sceneId: [7],
           appStore: ['huawei', 'oppo', 'vivo', 'xiaomi', 'meizu', 'smartisan'],
-          allianceAccount:false
+          allianceAccount:"1"
         },
         convertType: '1',
         dataList: []
@@ -850,7 +850,7 @@
             var json = {
               ...values,
               convertId: this.convertId ? this.convertId.key : null,
-              sceneId: values.sceneId == 1 ? [values.sceneId] : this.allForm.sceneId,
+              sceneId: this.allForm.allianceAccount=='1'?values.sceneId == 1 ? [values.sceneId] : this.allForm.sceneId:[5],
               dayBudget: values.dayBudget * 1000
             }
             var params = {
@@ -881,30 +881,30 @@
                 templateContent: JSON.stringify(this.populationData)
               }).then(res => {})
             }
-            postAction('/kuaishou/batch/createUnit', params).then(res => {
-              if (res.success) {
-                this.visible = true
-                this.allForm.fail = res.result.fail
-                this.allForm.success = res.result.success
-                this.loading = false
-                if (res.result.success.length > 0) {
-                  var dataJson = JSON.stringify(
-                    res.result.success.map(item => {
-                      return {
-                        tab: item.unitName,
-                        key: item.unitId,
-                        bidType: item.ocpxActionType
-                      }
-                    })
-                  )
-                  localStorage.setItem('pans', dataJson)
-                  localStorage.setItem('appId', this.getData('appId'))
-                }
-              } else {
-                this.loading = false
-                this.$message.error(res.message)
-              }
-            })
+            // postAction('/kuaishou/batch/createUnit', params).then(res => {
+            //   if (res.success) {
+            //     this.visible = true
+            //     this.allForm.fail = res.result.fail
+            //     this.allForm.success = res.result.success
+            //     this.loading = false
+            //     if (res.result.success.length > 0) {
+            //       var dataJson = JSON.stringify(
+            //         res.result.success.map(item => {
+            //           return {
+            //             tab: item.unitName,
+            //             key: item.unitId,
+            //             bidType: item.ocpxActionType
+            //           }
+            //         })
+            //       )
+            //       localStorage.setItem('pans', dataJson)
+            //       localStorage.setItem('appId', this.getData('appId'))
+            //     }
+            //   } else {
+            //     this.loading = false
+            //     this.$message.error(res.message)
+            //   }
+            // })
           }
         })
       },