Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
毕凯
9 years ago
Commit
1ed20d72497713d35d34c9cae44615a3a81bad4c
1 parent
f94bbd32
获取图片之前,先把获取上一张图片的ajax请求取消
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
web-static/js/product/product.js
web-static/js/product/product.js
View file @
1ed20d7
...
...
@@ -14,7 +14,8 @@ var $goodsContainer = $('.goods-container'),
$goodInfoMain
=
$goodsContainer
.
find
(
'.good-info-main'
),
$goodSelectColor
=
$goodsContainer
.
find
(
'.good-select-color'
),
$productListNav
=
$
(
'.product-list-nav'
),
productList
;
productList
,
getProductAjax
;
lazyLoad
(
$
(
'img.lazy'
));
...
...
@@ -95,7 +96,12 @@ exports.init = function(num) {
wrapperPt
,
//鼠标移入时弹层的上内边距
containerPt
;
//商品列表容器的上内边距
$
.
ajax
({
// 获取图片之前,先把获取上一张图片的ajax请求取消。 网络差的时候会出现错误
if
(
getProductAjax
)
{
getProductAjax
.
abort
();
}
getProductAjax
=
$
.
ajax
({
type
:
'POST'
,
url
:
'/product/list/getProductPic'
,
dataType
:
'json'
,
...
...
Please
register
or
login
to post a comment