Authored by 沈志敏

fix bug

@@ -54,7 +54,7 @@ @@ -54,7 +54,7 @@
54 } 54 }
55 55
56 .blk-header-title { 56 .blk-header-title {
57 - opacity: 0.3; 57 + opacity: 0.4;
58 } 58 }
59 } 59 }
60 60
@@ -97,6 +97,10 @@ @@ -97,6 +97,10 @@
97 this.$parent.$refs.filter.isVisible = !this.$parent.$refs.filter.isVisible; 97 this.$parent.$refs.filter.isVisible = !this.$parent.$refs.filter.isVisible;
98 }, 98 },
99 changeTopStatus() { 99 changeTopStatus() {
  100 + if (!this.shareData.isBlkShop) {
  101 + return;
  102 + }
  103 +
100 let ghost = true; 104 let ghost = true;
101 let ghost2 = false; 105 let ghost2 = false;
102 let ghost3 = false; 106 let ghost3 = false;
@@ -118,18 +122,14 @@ @@ -118,18 +122,14 @@
118 this.$refs.header.$el.classList.toggle('ghost-3', ghost3); 122 this.$refs.header.$el.classList.toggle('ghost-3', ghost3);
119 } 123 }
120 }, 124 },
121 - created() {  
122 - this.domain = this.shareData.domain; 125 + ready() {
  126 + window.addEventListener('touchmove', () => {
  127 + this.changeTopStatus();
  128 + });
123 129
124 - if (this.shareData.isBlkShop) {  
125 - window.addEventListener('touchmove', () => {  
126 - this.changeTopStatus();  
127 - });  
128 -  
129 - window.addEventListener('scroll', () => {  
130 - this.changeTopStatus();  
131 - });  
132 - } 130 + window.addEventListener('scroll', () => {
  131 + this.changeTopStatus();
  132 + });
133 } 133 }
134 }; 134 };
135 </script> 135 </script>