Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
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
biao
9 years ago
Commit
d85bf89785abc5cb1afa88ef65ceb0ebb1f8c4bd
1 parent
f60fcea1
增加限购商品购买可行性判断
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
static/js/cart/chose-panel.js
static/js/cart/chose-panel.js
View file @
d85bf89
...
...
@@ -477,8 +477,17 @@ $yohoPage.on('touchstart', '.btn-minus', function() {
url
=
$
(
'#limitProductPay'
).
val
()
+
'?limitproductcode='
+
limitProductCode
+
'&sku='
+
productSku
+
'&skn='
+
skn
+
'&buy_number='
+
buyNumber
;
//打开结算页面,结束函数执行。
window
.
location
.
href
=
url
;
// 调用接口判断商品是否可以购买
$
.
ajax
({
url
:
url
}).
then
(
function
(
res
)
{
// 如果有错,则商品不可购买,执行页面刷新,否则跳到结算页面
res
.
error
?
window
.
location
.
reload
()
:
window
.
location
.
href
=
url
;
}).
fail
(
function
()
{
window
.
location
.
reload
();
});
return
false
;
}
else
{
...
...
Please
register
or
login
to post a comment