Authored by 李奇

品牌指令兼容修改

@@ -69,7 +69,9 @@ function BrandHrefBinding(el, binding) { @@ -69,7 +69,9 @@ function BrandHrefBinding(el, binding) {
69 el.href = href + `?brandId=${binding.value.brandId}`; 69 el.href = href + `?brandId=${binding.value.brandId}`;
70 } 70 }
71 } else { 71 } else {
72 - el.href = `/product/shop/${binding.value}?brandId=${binding.value.brandId}`; 72 + if (binding.value) {
  73 + el.href = `/product/shop/${binding.value.brand_domain}?brandId=${binding.value.brand_id}`;
  74 + }
73 } 75 }
74 } 76 }
75 function GoodHrefBinding(el, binding) { 77 function GoodHrefBinding(el, binding) {
@@ -44,6 +44,7 @@ @@ -44,6 +44,7 @@
44 PRD_SKN: this.productSkn // 商品SKN (可选) 44 PRD_SKN: this.productSkn // 商品SKN (可选)
45 }; 45 };
46 46
  47 + console.log('push', this.index);
47 this.waitingReport.push(param); 48 this.waitingReport.push(param);
48 } 49 }
49 this.isVisiable = visible; 50 this.isVisiable = visible;
@@ -57,7 +57,7 @@ @@ -57,7 +57,7 @@
57 mounted() { 57 mounted() {
58 let timer = setInterval(() => { 58 let timer = setInterval(() => {
59 this.$scrollEl = window; 59 this.$scrollEl = window;
60 - this.scrollEvent = util.throttle(500, this.checkReport); 60 + this.scrollEvent = util.throttle(50, this.checkReport);
61 if (this.$scrollEl) { 61 if (this.$scrollEl) {
62 this.$scrollEl.addEventListener('scroll', this.scrollEvent); 62 this.$scrollEl.addEventListener('scroll', this.scrollEvent);
63 } 63 }
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 @click="showDelBtn(item.fav_id)"> 14 @click="showDelBtn(item.fav_id)">
15 <span class="fav-del-span"><span class="icon icon-edit-del"></span></span> 15 <span class="fav-del-span"><span class="icon icon-edit-del"></span></span>
16 </div> 16 </div>
17 - <a v-brand-href="item.brand_domain"> 17 + <a v-brand-href="item">
18 <div class="fav-img-box"> 18 <div class="fav-img-box">
19 <img v-img-src="{src: item.imgUrl, width: 160, height: 125}" alt=""/> 19 <img v-img-src="{src: item.imgUrl, width: 160, height: 125}" alt=""/>
20 </div> 20 </div>
@@ -122,6 +122,7 @@ @@ -122,6 +122,7 @@
122 imgUrl: o.brand_ico, 122 imgUrl: o.brand_ico,
123 brandName: o.brand_name, 123 brandName: o.brand_name,
124 brand_domain: o.brand_domain, 124 brand_domain: o.brand_domain,
  125 + brand_id: o.brand_id,
125 down: o.status === 0 126 down: o.status === 0
126 }); 127 });
127 } 128 }
1 <template> 1 <template>
2 <div> 2 <div>
3 <ul class="item-action"> 3 <ul class="item-action">
4 - <li><a v-brand-href="brand && brand.brand_domain"><i class="icon icon-store"></i><span 4 + <li><a v-brand-href="brand"><i class="icon icon-store"></i><span
5 class="action-text">{{brand && brand.brand_name 5 class="action-text">{{brand && brand.brand_name
6 }}</span></a></li> 6 }}</span></a></li>
7 <li><i class="icon" 7 <li><i class="icon"