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
毕凯
9 years ago
Commit
59b1064bdd1251d35899910832e33108c59f8545
1 parent
d5eb2144
订单管理优化 code review by chenglong.wang
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
static/js/me/dialog.js
static/js/me/order.js
static/js/me/dialog.js
View file @
59b1064
...
...
@@ -81,4 +81,4 @@ exports.showDialog = function(data, callback) {
exports
.
hideDialog
=
function
()
{
$dialogWrapper
.
fadeOut
();
};
\ No newline at end of file
};
...
...
static/js/me/order.js
View file @
59b1064
...
...
@@ -127,10 +127,22 @@ orderHammer.on('tap', function(e) {
},
success
:
function
(
data
)
{
if
(
data
.
code
===
200
)
{
dialog
.
showDialog
({
dialogText
:
'删除订单成功'
,
autoHide
:
true
,
fast
:
true
});
//删除订单页面刷新
history
.
go
(
0
);
}
},
error
:
function
()
{
dialog
.
showDialog
({
dialogText
:
'删除订单失败'
,
autoHide
:
true
,
fast
:
true
});
}
});
});
...
...
@@ -152,10 +164,22 @@ orderHammer.on('tap', function(e) {
},
success
:
function
(
data
)
{
if
(
data
.
code
===
200
)
{
dialog
.
showDialog
({
dialogText
:
'取消订单成功'
,
autoHide
:
true
,
fast
:
true
});
//取消订单页面刷新
history
.
go
(
0
);
}
},
error
:
function
()
{
dialog
.
showDialog
({
dialogText
:
'取消订单失败'
,
autoHide
:
true
,
fast
:
true
});
}
});
});
...
...
@@ -184,4 +208,4 @@ $(window).scroll(function() {
});
//初始化请求第一页数据
getOrders
();
\ No newline at end of file
getOrders
();
...
...
Please
register
or
login
to post a comment