zhuxinbo 5 éve
szülő
commit
1184107d1d

+ 1 - 1
src/views/modules/Statistics/dataDisplayStatistics.vue

@@ -627,7 +627,7 @@ export default {
                   : 0,
                 date: this.statHour ? res.result.statDate + '  ' + this.statHour : res.result.statDate,
                 formCount: item.formCount > 0 ? item.formCount : item.activationCount,
-                eventRegister: item.eventRegister.toFixed(2),
+                eventRegister: item.eventRegister,
                 eventRegisterCost: item.eventRegisterCost.toFixed(2)
               }
             })

+ 1 - 1
src/views/modules/kuaishouapp/account/advertisingGroup.vue

@@ -286,7 +286,7 @@ export default {
             if (localStorage.getItem('originality')) {
               var dataElse = JSON.parse(localStorage.getItem('originality'))
               for (let i = 0; i < dataElse.length; i++) {
-                if (dataElse[i].key == record.key) {
+                if (dataElse[i].key == record.unitId) {
                   this.$router.replace({ path: '/account/originality' })
                   return
                 }

+ 1 - 0
src/views/modules/kuaishouapp/account/originality.vue

@@ -170,6 +170,7 @@ export default {
             return item.key == this.titleKey
           })
         )
+        console.log(this.title,this.titleKey)
         localStorage.setItem('pans', dataJson)
         this.$router.replace({ path: '/account/stepForm' })
       }

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

@@ -295,7 +295,7 @@
       >
         <!-- v-decorator="['speed', { initialValue: '1' }]" -->
         <a-radio-group buttonStyle="solid" v-decorator="['scene_id', { initialValue: '2' }]">
-          <a-radio-button value="2">按场景选择广告位-信息流广告</a-radio-button>
+          <a-radio-button value="2">信息流广告</a-radio-button>
           <a-radio-button value="1">优选广告位</a-radio-button>
         </a-radio-group>
       </a-form-item>

+ 33 - 8
src/views/modules/kuaishouapp/account/stepForm/Step3.vue

@@ -87,6 +87,17 @@
               </a-select-option>
             </a-select>
           </a-form-item>
+          <a-form-item
+            label="检测链接"
+            :labelCol="{ lg: { span: 2 }, sm: { span: 2 } }"
+            :wrapperCol="{ lg: { span: 18 }, sm: { span: 18 } }"
+          >
+            <a-input
+              v-decorator="['click_track_url', { rules: [{ required: true, message: '请输入第三方检测链接' },{ validator: handleConfirmValue }] }]"
+              placeholder="请输入第三方检测链接"
+            >
+            </a-input>
+          </a-form-item>
         </a-form>
       </a-tab-pane>
     </a-tabs>
@@ -124,6 +135,13 @@ export default {
     }
   },
   methods: {
+    handleConfirmValue(rule, value, callback) {
+      if (/(http|https):\/\/([\w.]+\/?)\S*/.test(value) && value.length < 10000) {
+        callback()
+      } else {
+        callback('链接不能为空且开头为http://或https://,并且长度小于10000')
+      }
+    },
     showData(item, type) {
       this.list[item.key].imageList = []
       if (type == 'video') {
@@ -164,16 +182,23 @@ export default {
       //   e.preventDefault()
       //   this.nextStep()
 
-      var dataJson = this.list.map(item => {
-        return {
-          description: item.description,
-          imageList: item.imageList.map((ele, index) => {
-            return { image: ele.imageToken, name: index + 1 + '-' + item.name }
-          }),
-          videoList: item.videoList.photoId
+      e.preventDefault()
+      this.form.validateFields((err, values) => {
+        if (!err) {
+          var dataJson = this.list.map(item => {
+            return {
+              description: item.description,
+              image_tokens: item.imageList.map((ele, index) => {
+                return { image: ele.imageToken, name: index + 1 + '-' + item.name }
+              }),
+              photo_id: item.videoList.photoId
+            }
+          })
+
+          var params = { ...dataJson, ...values }
+          console.log(params)
         }
       })
-      console.log(dataJson)
     },
     nextStep() {
       var that = this