Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
baoss
5 years ago
Commit
77e02caa623252b7b7187c0262f1a14b73c56847
1 parent
5b8ecdc4
修复拼团埋点问题、优化图标 review by bevishuang
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
16 deletions
public/hbs/activity/group/group-list-product.hbs
public/js/activity/feature/resource-show-yas-rpter.js
public/js/activity/group.page.js
public/scss/activity/group/new-filter-list.scss
public/hbs/activity/group/group-list-product.hbs
View file @
77e02ca
...
...
@@ -5,8 +5,8 @@
<span class="new-group-product-left-icon-number"></span>
</div>
{{/ifcond}} --}}
{{#if
cover_info
}}
<img
src=
"
{{
cover_info
.
list_bg_img
}}
"
class=
"list-bg-icon"
alt=
"list_icon"
>
{{#if
icon
}}
<img
src=
"
{{
icon
}}
"
class=
"list-bg-icon"
alt=
"list_icon"
>
{{/if}}
{{#if
@root
.
lazyLoad
}}
<img
class=
"lazy new-group-product-image"
data-original=
"
{{
image2
default_images
w
=
400
h
=
390
q
=
60
mode
=
3
}}
"
/>
...
...
public/js/activity/feature/resource-show-yas-rpter.js
View file @
77e02ca
...
...
@@ -70,7 +70,7 @@ class ResourceShowYasRpter {
let
tabParams
=
{};
tabParams
.
TAB_NAME
=
$
(
'.guess-like-tab-active'
).
parent
().
data
(
'tab-name'
);
tabParams
.
TAB_ID
=
$
(
'.guess-like-tab-active'
).
parent
().
data
(
'i
ndex
-idx'
)
+
1
;
tabParams
.
TAB_ID
=
$
(
'.guess-like-tab-active'
).
parent
().
data
(
'i
tem
-idx'
)
+
1
;
tabParams
.
P_PARAM
=
$
(
'.guess-like-tab-active'
).
parent
().
data
(
'code'
);
$
(
'.templates'
).
each
((
floorIndex
,
theFloor
)
=>
{
...
...
@@ -163,7 +163,6 @@ class ResourceShowYasRpter {
}
this
.
reportParams
.
DATA
.
push
(
newParams
);
}
console
.
log
(
this
.
reportParams
.
DATA
);
}
});
...
...
@@ -220,7 +219,6 @@ class ResourceShowYasRpter {
cacheTheShowSkns
.
push
(
goodsRawObj
.
PRD_SKN
);
}
console
.
log
(
this
.
reportParams
.
DATA
);
}
});
...
...
@@ -229,7 +227,6 @@ class ResourceShowYasRpter {
setTimeout
(()
=>
{
if
(
typeof
window
.
_yas
!==
'undefined'
&&
window
.
_yas
.
sendCustomInfo
&&
this
.
reportParams
.
DATA
&&
this
.
reportParams
.
DATA
.
length
)
{
console
.
log
(
'this.reportParams'
,
this
.
reportParams
);
window
.
_yas
.
sendCustomInfo
({
op
:
'YB_SHOW_EVENT'
,
appop
:
'YB_SHOW_EVENT'
,
...
...
public/js/activity/group.page.js
View file @
77e02ca
...
...
@@ -245,8 +245,6 @@ class Group extends Page {
});
}
console
.
log
(
this
.
indexIdx
);
if
(
isApp
)
{
let
param
=
{
action
:
'go.productDetail'
,
...
...
@@ -268,8 +266,6 @@ class Group extends Page {
}
async
guessLikeTabChange
(
e
)
{
console
.
log
(
'this'
,
this
);
let
that
=
this
;
let
$this
=
$
(
e
.
currentTarget
);
let
query
=
$this
.
data
(
'query'
);
...
...
@@ -311,7 +307,8 @@ class Group extends Page {
let
lastDom
=
document
.
getElementById
(
`
tab
-
$
{
index
-
2
}
`
);
$
(
'.wapper'
).
animate
({
scrollLeft
:
lastDom
&&
lastDom
.
offsetLeft
||
0
});
this
.
scrollSmoothTo
(
document
.
getElementById
(
'resources'
).
offsetTop
);
// this.scrollSmoothTo(document.getElementById('resources').offsetTop);
// if (document.getElementById('fixedTab').offsetTop) {
// this.scrollSmoothTo(document.getElementById('fixedTab').offsetTop);
...
...
@@ -328,9 +325,11 @@ class Group extends Page {
code
:
code
}).
then
(
res
=>
{
that
.
renderFloor
(
res
);
this
.
scrollSmoothTo
(
document
.
getElementById
(
'resources'
).
offsetTop
);
// 保证新资源位渲染再滚动,防止上报数据错误
});
}
else
{
$
(
'.floors'
).
html
(
''
);
this
.
scrollSmoothTo
(
document
.
getElementById
(
'resources'
).
offsetTop
);
}
this
.
fetchGoodsList
(
queryObject
).
then
(
data
=>
{
...
...
@@ -387,7 +386,6 @@ class Group extends Page {
...
custom_params
};
console
.
log
(
params
);
window
.
_yas
&&
window
.
_yas
.
sendCustomInfo
&&
window
.
_yas
.
sendCustomInfo
({
op
:
'YB_GROUP_TAB_C'
,
appop
:
'YB_GROUP_TAB_C'
,
...
...
@@ -415,8 +413,6 @@ class Group extends Page {
...
custom_params
};
console
.
log
(
'--------------------'
);
console
.
log
(
params
);
window
.
_yas
&&
window
.
_yas
.
sendCustomInfo
&&
window
.
_yas
.
sendCustomInfo
({
op
:
'YB_GROUP_FLR_C'
,
appop
:
'YB_GROUP_FLR_C'
,
...
...
public/scss/activity/group/new-filter-list.scss
View file @
77e02ca
...
...
@@ -189,8 +189,9 @@
.list-bg-icon
{
position
:
absolute
;
top
:
4
0px
;
top
:
2
0px
;
left
:
30px
;
height
:
26px
;
height
:
60px
;
width
:
60px
;
}
}
...
...
Please
register
or
login
to post a comment