Browse Source

解决无模板回显时全局广告报错的bug

解决无模板回显时全局广告报错的bug
dangyunlong 1 ngày trước cách đây
mục cha
commit
d29f7959f8
2 tập tin đã thay đổi với 422 bổ sung483 xóa
  1. 409 473
      src/store/modules/template.js
  2. 13 10
      src/views/template/public/editWindow.vue

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 409 - 473
src/store/modules/template.js


+ 13 - 10
src/views/template/public/editWindow.vue

@@ -203,8 +203,8 @@ export default {
     watch: {
         getPid:{
             handler(newVal, oldVal) {
-                console.log("导航池改变了!")
-                console.log(newVal, oldVal)
+                //console.log("导航池改变了!")
+                //console.log(newVal, oldVal)
                 // 回显导航池 判断一下是单导航还是多导航
                 this.form.type1data.pid_arr = newVal;
             },
@@ -212,32 +212,32 @@ export default {
         },
         getadName:{
             handler(newVal, oldVal) {
-                console.log("广告文字改变了!")
-                console.log(newVal, oldVal)
+                //console.log("广告文字改变了!")
+                //console.log(newVal, oldVal)
                 this.form.type3data.adName = newVal;
             },
             immediate:true,
         },
         getadIntroduce:{
             handler(newVal, oldVal) {
-                console.log("广告介绍改变了!")
-                console.log(newVal, oldVal)
+                //console.log("广告介绍改变了!")
+                //console.log(newVal, oldVal)
                 this.form.type3data.introduce = newVal;
             },
             immediate:true,
         },
         getadPrice:{
             handler(newVal, oldVal) {
-                console.log("广告价格改变了!")
-                console.log(newVal, oldVal)
-            this.form.type3data.price = newVal;
+                //console.log("广告价格改变了!")
+                //console.log(newVal, oldVal)
+                this.form.type3data.price = newVal;
             },
             immediate:true,
         },
         getKey:{
             handler(newVal, oldVal) {
                 //console.log("级联选择器key改变了!")
-                console.log("数据更新!")
+                //console.log("数据更新!")
                 //console.log(newVal, oldVal)
                 //更新级联选择器
                 this.form.type1data.pid_arr = this.$store.state.template.componentViewData.pid_arr;
@@ -253,6 +253,9 @@ export default {
                 if(this.$store.state.template.editComponentType == 3){
                     this.form.type2data.adName = this.$store.state.template.webSiteData.ad.top.name;
                     this.form.type2data.price = this.$store.state.template.webSiteData.ad.top.price;
+                    if(this.$store.state.template.webSiteData.ad.top.price == 0){
+                        this.form.type2data.price = "";
+                    }
                 }
             },
             immediate:true,

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác