...
|
...
|
@@ -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(); |
...
|
...
|
|