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
郝肖肖
8 years ago
Commit
7579df694722a2ac40070bbd09fe0b5ec9c79104
1 parent
0c0361c9
潮流优选,商品列表顺序调整
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
apps/guang/models/plusstar.js
public/js/guang/plusstar-index.page.js
apps/guang/models/plusstar.js
View file @
7579df6
...
...
@@ -178,7 +178,7 @@ const getResourcesData = (params, options) => {
let
preferSkns
=
result
[
1
]
&&
result
[
1
].
data
||
[];
if
(
result
[
0
]
&&
result
[
0
].
goods
&&
result
[
0
].
goods
.
productSkns
)
{
result
[
0
].
goods
.
productSkns
=
_
.
uniq
(
Object
.
assign
(
preferSkns
,
s
kns
));
result
[
0
].
goods
.
productSkns
=
_
.
uniq
(
Object
.
assign
(
skns
,
preferS
kns
));
}
return
result
[
0
];
...
...
public/js/guang/plusstar-index.page.js
View file @
7579df6
...
...
@@ -58,12 +58,20 @@ plusstar = {
// 点击潮流优选上方的TAB按钮时
if
(
window
.
_yas
&&
window
.
_yas
.
sendCustomInfo
)
{
window
.
_yas
.
sendCustomInfo
({
op
:
'YB_FASHION_
HOME_L
'
,
op
:
'YB_FASHION_
TAB_C
'
,
param
:
JSON
.
stringify
({
C_ID
:
CID
,
TAB_ID
:
$liDom
.
index
()
+
1
})
},
true
);
window
.
_yas
.
sendCustomInfo
({
op
:
'YB_FASHION_HOME_L'
,
param
:
JSON
.
stringify
({
C_ID
:
CID
,
TAB_ID
:
that
.
ParentLiDom
.
index
()
+
1
})
},
true
);
}
});
...
...
@@ -101,7 +109,7 @@ plusstar = {
index
=
$dom
.
index
()
+
1
;
window
.
givePoint
({
REC_POSE
:
RECPOSE
,
PRD_ID
:
$dom
.
data
(
'id'
),
PRD_ID
:
$dom
.
data
(
'
good-
id'
),
ORDER_CODE
:
''
,
PRD_NUM
:
index
%
that
.
common
.
pagesize
===
0
?
that
.
common
.
pagesize
:
index
%
that
.
common
.
pagesize
,
ACTION_ID
:
1
,
...
...
@@ -151,7 +159,6 @@ plusstar = {
TAB_ID
:
that
.
ParentLiDom
.
index
()
+
1
})
},
true
);
},
tabNav
:
function
(
code
)
{
var
that
=
this
;
...
...
@@ -256,7 +263,7 @@ plusstar = {
}
$
.
each
(
$
(
data
).
siblings
(
'.good-info'
),
function
()
{
skn
.
push
(
$
(
this
).
data
(
'id'
));
skn
.
push
(
$
(
this
).
data
(
'
good-
id'
));
});
window
.
givePoint
({
...
...
@@ -271,6 +278,8 @@ plusstar = {
$
(
'.plusstar-resources .goods'
).
append
(
data
);
lazyLoad
(
$
(
'.plusstar-resources .goods'
).
find
(
'img.lazy:not([src])'
));
$
(
'.resources .goods .page-total'
).
remove
();
},
error
:
function
()
{
tip
.
show
(
'网络断开连接了~'
);
...
...
Please
register
or
login
to post a comment