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
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
4a6280a0de987bd9dbadb7e1e41e69344350c23d
2 parents
a4adbef0
48017d04
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
static/js/shopping-cart/order-ensure.js
static/js/shopping-cart/order-ensure.js
View file @
4a6280a
...
...
@@ -9,6 +9,7 @@ var $ = require('jquery'),
Hammer
=
require
(
'yoho.hammer'
),
Handlebars
=
require
(
'yoho.handlebars'
),
tip
=
require
(
'../plugin/tip'
),
loading
=
require
(
'../plugin/loading'
),
orderInfo
=
require
(
'./order-info'
).
orderInfo
;
var
dispatchModeHammer
,
...
...
@@ -94,6 +95,7 @@ function orderCompute() {
}
function
submitOrder
()
{
loading
.
showLoadingMask
();
$
.
ajax
({
method
:
'POST'
,
url
:
'/shoppingCart/orderSub'
,
...
...
@@ -114,6 +116,7 @@ function submitOrder() {
var
url
;
if
(
!
res
)
{
loading
.
hideLoadingMask
();
tip
.
show
(
'网络出错'
);
return
;
}
...
...
@@ -125,11 +128,14 @@ function submitOrder() {
}
else
{
url
=
'/home/pay?order_code='
+
res
.
data
.
order_code
;
}
window
.
setCookie
(
'order-info'
,
''
);
window
.
location
.
href
=
url
;
}
else
{
loading
.
hideLoadingMask
();
tip
.
show
(
res
.
messege
||
'网络出错'
);
}
}).
fail
(
function
()
{
loading
.
hideLoadingMask
();
tip
.
show
(
'网络出错'
);
});
}
...
...
Please
register
or
login
to post a comment