Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
李奇
7 years ago
Commit
246b40008ed450bc41c52a59acbabbae679a9866
1 parent
d93d7089
品牌指令兼容修改
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
9 deletions
public/js/common/vue-directive.js
public/vue/component/exposure/exposure-item.vue
public/vue/component/exposure/exposure.vue
public/vue/me/fav-brand-list.vue
public/vue/product/detail/operation-bar.vue
public/js/common/vue-directive.js
View file @
246b400
...
...
@@ -69,7 +69,9 @@ function BrandHrefBinding(el, binding) {
el
.
href
=
href
+
`
?
brandId
=
$
{
binding
.
value
.
brandId
}
`
;
}
}
else
{
el
.
href
=
`
/
product
/
shop
/
$
{
binding
.
value
}?
brandId
=
$
{
binding
.
value
.
brandId
}
`
;
if
(
binding
.
value
)
{
el
.
href
=
`
/
product
/
shop
/
$
{
binding
.
value
.
brand_domain
}?
brandId
=
$
{
binding
.
value
.
brand_id
}
`
;
}
}
}
function
GoodHrefBinding
(
el
,
binding
)
{
...
...
public/vue/component/exposure/exposure-item.vue
View file @
246b400
...
...
@@ -44,6 +44,7 @@
PRD_SKN: this.productSkn // 商品SKN (可选)
};
console.log('push', this.index);
this.waitingReport.push(param);
}
this.isVisiable = visible;
...
...
public/vue/component/exposure/exposure.vue
View file @
246b400
...
...
@@ -57,7 +57,7 @@
mounted() {
let timer = setInterval(() => {
this.$scrollEl = window;
this.scrollEvent = util.throttle(50
0
, this.checkReport);
this.scrollEvent = util.throttle(50, this.checkReport);
if (this.$scrollEl) {
this.$scrollEl.addEventListener('scroll', this.scrollEvent);
}
...
...
public/vue/me/fav-brand-list.vue
View file @
246b400
...
...
@@ -2,19 +2,19 @@
<div class="fav-type" v-infinite-scroll="loadMore" infinite-scroll-disabled="busy" infinite-scroll-distance="10">
<ul class="fav-brand-list">
<v-touch
v-for="(item, index) in brandData"
v-for="(item, index) in brandData"
tag="li"
:key="item.fav_id"
:id="'li-' + item.fav_id"
:pan-options="{ direction: 'horizontal', threshold: 100}"
:key="item.fav_id"
:id="'li-' + item.fav_id"
:pan-options="{ direction: 'horizontal', threshold: 100}"
@panstart="(evt) => {panstart(item.fav_id, evt)}"
@panmove="(evt) => {panmove(item.fav_id, evt)}"
@panmove="(evt) => {panmove(item.fav_id, evt)}"
@panend="(evt) => {panend(item.fav_id, evt)}">
<div :class="'fav-del-left ' + (editmodel ? 'delshow': '')"
@click="showDelBtn(item.fav_id)">
<span class="fav-del-span"><span class="icon icon-edit-del"></span></span>
</div>
<a v-brand-href="item
.brand_domain
">
<a v-brand-href="item">
<div class="fav-img-box">
<img v-img-src="{src: item.imgUrl, width: 160, height: 125}" alt=""/>
</div>
...
...
@@ -122,6 +122,7 @@
imgUrl: o.brand_ico,
brandName: o.brand_name,
brand_domain: o.brand_domain,
brand_id: o.brand_id,
down: o.status === 0
});
}
...
...
public/vue/product/detail/operation-bar.vue
View file @
246b400
<template>
<div>
<ul class="item-action">
<li><a v-brand-href="brand
&& brand.brand_domain
"><i class="icon icon-store"></i><span
<li><a v-brand-href="brand"><i class="icon icon-store"></i><span
class="action-text">{{brand && brand.brand_name
}}</span></a></li>
<li><i class="icon"
...
...
Please
register
or
login
to post a comment