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
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
d7eafc9f94abeef94b72d1a2697e49e6f27ea8aa
2 parents
49cc5d6e
d85bf897
Merge branch 'develop/wap' into beta/wap
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
static/js/cart/chose-panel.js
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
static/js/cart/chose-panel.js
View file @
d7eafc9
...
...
@@ -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
{
...
...
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
d7eafc9
...
...
@@ -307,7 +307,12 @@ class IndexController extends AbstractAction
$this
->
go
(
$order
[
'cartUrl'
]);
}
if
(
isset
(
$order
[
'error'
]))
{
// 限购商品支付接口返回为空或错误时
$this
->
error
();
if
(
$this
->
isAjax
())
{
$this
->
echoJson
(
$order
);
return
;
}
else
{
$this
->
error
();
}
}
$data
=
array
(
...
...
Please
register
or
login
to post a comment