Showing
5 changed files
with
13 additions
and
9 deletions
@@ -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 | } |
@@ -2,19 +2,19 @@ | @@ -2,19 +2,19 @@ | ||
2 | <div class="fav-type" v-infinite-scroll="loadMore" infinite-scroll-disabled="busy" infinite-scroll-distance="10"> | 2 | <div class="fav-type" v-infinite-scroll="loadMore" infinite-scroll-disabled="busy" infinite-scroll-distance="10"> |
3 | <ul class="fav-brand-list"> | 3 | <ul class="fav-brand-list"> |
4 | <v-touch | 4 | <v-touch |
5 | - v-for="(item, index) in brandData" | 5 | + v-for="(item, index) in brandData" |
6 | tag="li" | 6 | tag="li" |
7 | - :key="item.fav_id" | ||
8 | - :id="'li-' + item.fav_id" | ||
9 | - :pan-options="{ direction: 'horizontal', threshold: 100}" | 7 | + :key="item.fav_id" |
8 | + :id="'li-' + item.fav_id" | ||
9 | + :pan-options="{ direction: 'horizontal', threshold: 100}" | ||
10 | @panstart="(evt) => {panstart(item.fav_id, evt)}" | 10 | @panstart="(evt) => {panstart(item.fav_id, evt)}" |
11 | - @panmove="(evt) => {panmove(item.fav_id, evt)}" | 11 | + @panmove="(evt) => {panmove(item.fav_id, evt)}" |
12 | @panend="(evt) => {panend(item.fav_id, evt)}"> | 12 | @panend="(evt) => {panend(item.fav_id, evt)}"> |
13 | <div :class="'fav-del-left ' + (editmodel ? 'delshow': '')" | 13 | <div :class="'fav-del-left ' + (editmodel ? 'delshow': '')" |
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" |
-
Please register or login to post a comment