Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
2f68d237711133ea6d2feeb6fff8c294031b2d1b
1 parent
7c38d9fe
cart-page-point
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletions
static/js/cart/cart.js
static/js/cart/cart.js
View file @
2f68d23
...
...
@@ -27,6 +27,8 @@ var isRefreshByDelete = window.cookie('_yoho-cart-refreshByDelete') === 'true' ?
var
lowStockCount
=
0
;
var
C_ID
=
window
.
_ChannelVary
[
window
.
cookie
(
'_Channel'
)]
||
1
;
loading
.
showLoadingMask
();
function
needLoadRecommandForYou
()
{
...
...
@@ -193,6 +195,20 @@ $('.btn-balance').on('touchend', function() {
lowStockCount
=
0
;
if
(
window
.
_yas
&&
window
.
_yas
.
sendCustomInfo
)
{
var
productId
=
''
;
$
(
'.shopping-cart-good'
).
each
(
function
()
{
productId
=
$
(
this
).
data
(
'id'
)
+
','
;
});
window
.
_yas
.
sendCustomInfo
({
op
:
'YB_SC_TOBUY_CLICK'
,
param
:
JSON
.
stringify
({
C_ID
:
C_ID
,
PRD_ID
:
productId
,
})
},
true
);
}
if
(
shouldLowStocks
())
{
tip
.
show
(
'所选商品中有'
+
lowStockCount
+
'种库存不足的商品'
);
return
false
;
...
...
@@ -239,4 +255,13 @@ $(window).scrollTop(1).scrollTop(0);
if
(
$
(
'.invalid-goods'
).
find
(
'.shopping-cart-good'
).
length
===
0
)
{
$
(
'#failure-goods'
).
removeClass
(
'invalid-goods'
);
}
\ No newline at end of file
}
$
(
function
()
{
if
(
window
.
_yas
&&
window
.
_yas
.
sendCustomInfo
)
{
window
.
_yas
.
sendCustomInfo
({
op
:
'YB_SC'
,
param
:
JSON
.
stringify
({
C_ID
:
C_ID
})
},
true
);
}
});
\ No newline at end of file
...
...
Please
register
or
login
to post a comment