Authored by ccbikai

Merge branch 'develop' into release/1.0

@@ -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
1 <template> 1 <template>
2 - <div class="goods-box" v-infinite-scroll="fetch()" infinite-scroll-disable="disableFetch"> 2 + <div class="goods-box" v-infinite-scroll="fetch()" infinite-scroll-disable="disableFetch" infinite-scroll-distance="1200">
3 <ul class="cardlist card-large clearfix"> 3 <ul class="cardlist card-large clearfix">
4 <li class="card" v-for="item in data"> 4 <li class="card" v-for="item in data">
5 <div class="card-pic"> 5 <div class="card-pic">
@@ -100,7 +100,6 @@ @@ -100,7 +100,6 @@
100 padding-top: 26px; 100 padding-top: 26px;
101 text-align: center; 101 text-align: center;
102 font-size: 0; 102 font-size: 0;
103 -  
104 } 103 }
105 104
106 .card-label { 105 .card-label {
@@ -116,18 +115,20 @@ @@ -116,18 +115,20 @@
116 color: #b0b0b0; 115 color: #b0b0b0;
117 margin-right: 14px; 116 margin-right: 14px;
118 font-size: 24px; 117 font-size: 24px;
  118 +
119 &:last-of-type { 119 &:last-of-type {
120 margin-right: 0; 120 margin-right: 0;
121 } 121 }
  122 +
122 &.old-price { 123 &.old-price {
123 text-decoration: line-through; 124 text-decoration: line-through;
124 } 125 }
  126 +
125 &.sale-price { 127 &.sale-price {
126 color: #d0021b; 128 color: #d0021b;
127 } 129 }
128 } 130 }
129 131
130 -  
131 .empty-tip { 132 .empty-tip {
132 margin-top: 380px; 133 margin-top: 380px;
133 color: #b0b0b0; 134 color: #b0b0b0;
@@ -3,8 +3,7 @@ @@ -3,8 +3,7 @@
3 <navbar> 3 <navbar>
4 <template slot="right"> 4 <template slot="right">
5 <a class="right-button no-intercept" href="javascript:void(0);" @click="like()"> 5 <a class="right-button no-intercept" href="javascript:void(0);" @click="like()">
6 - <span class="icon icon-like" :class=""></span>  
7 - {{likeCount ? likeCount : ''}} 6 + <span class="icon icon-like" :class=""><span class="count">{{likeCount ? likeCount : ''}}</span></span>
8 </a> 7 </a>
9 <!--暂时隐藏收藏入口,下个版本使用--> 8 <!--暂时隐藏收藏入口,下个版本使用-->
10 <!--<a class="right-button no-intercept" href="javascript:void(0);" @click="favorite()">--> 9 <!--<a class="right-button no-intercept" href="javascript:void(0);" @click="favorite()">-->
@@ -21,7 +20,7 @@ @@ -21,7 +20,7 @@
21 <style> 20 <style>
22 .top-nav { 21 .top-nav {
23 .right-button { 22 .right-button {
24 - /*margin-left: 30px;*/ 23 + margin-left: 30px;
25 } 24 }
26 } 25 }
27 </style> 26 </style>
@@ -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>