Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
8 years ago
Commit
06cd591a864c311025f6dcaeb7d9a895739e8cbf
1 parent
2a9b426a
gulp ge
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
6 deletions
web-static/dist/yohobuy/5.2.0/index-debug.js
web-static/dist/yohobuy/5.2.0/index.css
web-static/dist/yohobuy/5.2.0/index.js
web-static/dist/yohobuy/5.2.0/index-debug.js
View file @
06cd591
...
...
@@ -11664,7 +11664,6 @@ $('#me-checkall').click(function() {
//删除收藏
$
(
'.del-favorite'
).
click
(
function
(
e
)
{
var
id
=
$
(
this
).
closest
(
'.fav-row'
).
data
(
'id'
),
shopid
=
$
(
this
).
closest
(
'.fav-row'
).
data
(
'shopid'
),
brandorshoptype
=
$
(
this
).
closest
(
'.fav-row'
).
data
(
'brandorshoptype'
);
e
.
preventDefault
();
...
...
@@ -11674,9 +11673,7 @@ $('.del-favorite').click(function(e) {
url
:
'/home/favorite/cancel'
,
data
:
{
id
:
id
,
shopid
:
shopid
,
brandorshoptype
:
brandorshoptype
,
type
:
favType
type
:
brandorshoptype
||
favType
}
}).
then
(
function
(
data
)
{
if
(
data
.
code
===
200
)
{
...
...
@@ -11689,16 +11686,27 @@ $('.del-favorite').click(function(e) {
$
(
'#me-del-checked'
).
click
(
function
()
{
var
ids
=
[],
name
=
'商品'
;
var
optType
,
group
=
{};
if
(
favType
===
'brand'
)
{
name
=
'品牌'
;
name
=
'品牌
店铺
'
;
}
else
if
(
favType
===
'article'
)
{
name
=
'文章'
;
}
if
(
confirm
(
'您确定要删除您收藏的'
+
name
+
'吗?'
))
{
$
(
'.checkbox input[type="checkbox"]:checked'
).
each
(
function
()
{
ids
.
push
(
$
(
this
).
closest
(
'.fav-row'
).
data
(
'id'
));
var
$favRow
=
$
(
this
).
closest
(
'.fav-row'
),
rdata
=
$favRow
.
data
();
ids
.
push
(
rdata
.
id
);
if
(
rdata
.
brandorshoptype
)
{
if
(
!
group
[
rdata
.
brandorshoptype
])
{
group
[
rdata
.
brandorshoptype
]
=
[];
}
group
[
rdata
.
brandorshoptype
].
push
(
rdata
.
id
);
}
});
if
(
ids
.
length
===
0
)
{
...
...
@@ -11711,6 +11719,10 @@ $('#me-del-checked').click(function() {
url
:
'/home/favorite/cancel'
,
data
:
{
id
:
ids
.
join
(
','
),
group
:
{
bid
:
group
.
brand
?
group
.
brand
.
join
(
','
)
:
''
,
sid
:
group
.
shop
?
group
.
shop
.
join
(
','
)
:
''
},
type
:
favType
}
}).
then
(
function
(
data
)
{
...
...
web-static/dist/yohobuy/5.2.0/index.css
View file @
06cd591
This diff could not be displayed because it is too large.
web-static/dist/yohobuy/5.2.0/index.js
View file @
06cd591
This diff could not be displayed because it is too large.
Please
register
or
login
to post a comment