Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-portal-fe
·
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
Plain Diff
Browse Files
Authored by
姜敏
9 years ago
Commit
0e0b5c6190616710a57d103377b48d5d776f0545
2 parents
f1c542e2
92cea544
Merge branch 'release/1.6' of
http://git.dev.yoho.cn/platform/yohobuy-portal-fe
into release/1.6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
client/js/guang/contentEdit.js
client/js/guang/contentEdit.js
View file @
0e0b5c6
...
...
@@ -412,7 +412,11 @@ var goodsgird = new common.grid({
if
(
common
.
util
.
__input
(
'endPrice'
))
{
endPrice
=
common
.
util
.
__input
(
'endPrice'
)
}
return
{
return
{
//status=1&sales=Y&stocknumber=1&attribute_not=2
status
:
1
,
sales
:
"Y"
,
stocknumber
:
"1"
,
attribute_not
:
"2"
,
query
:
common
.
util
.
__input
(
'skns'
),
price
:
beginPrice
+
","
+
endPrice
};
...
...
@@ -656,6 +660,19 @@ $(document).on("change", "#maxSortId", function () {
});
});
var
Unique
=
function
(
Array
)
{
var
res
=
[],
hash
=
{};
for
(
var
i
=
0
,
elem
;
(
elem
=
Array
[
i
])
!=
null
;
i
++
)
{
if
(
!
hash
[
elem
.
id
])
{
res
.
push
(
elem
);
hash
[
elem
.
id
]
=
true
;
}
}
return
res
;
}
$
(
document
).
on
(
"click"
,
"#brandAutoBtn"
,
function
()
{
var
product_skc
=
[];
Bll
.
contentDatas
.
forEach
(
function
(
item
,
index
)
{
...
...
@@ -700,7 +717,9 @@ $(document).on("click", "#brandAutoBtn", function () {
b
.
push
(
map
[
item
]);
}
});
Bll
.
Brdata
=
(
ViewModel
.
brandList
||
[]).
concat
(
b
);
Bll
.
Brdata
=
(
Bll
.
Brdata
||
ViewModel
.
brandList
||
[]).
concat
(
b
);
Bll
.
Brdata
=
Unique
(
Bll
.
Brdata
);
// Bll.Brdata=Bll.Brdata.unique5()
// var map2={};
// Bll.Brdata.forEach(function(item){
// map2[item.id]=item;
...
...
Please
register
or
login
to post a comment