|
@@ -233,7 +233,7 @@ export default {
|
|
|
Api.detail({"order":app.order}).then((res)=>{
|
|
Api.detail({"order":app.order}).then((res)=>{
|
|
|
app.loading = false;
|
|
app.loading = false;
|
|
|
if (res.code && res.code !== 1) {
|
|
if (res.code && res.code !== 1) {
|
|
|
- app.$dialog.showSuccess(res.msg,function(){
|
|
|
|
|
|
|
+ app.$dialog.showSuccess(res.msg,"none",function(){
|
|
|
uni.navigateBack()
|
|
uni.navigateBack()
|
|
|
});
|
|
});
|
|
|
return ;
|
|
return ;
|
|
@@ -284,7 +284,7 @@ export default {
|
|
|
app.$dialog.showError("确定要取消该订单吗?",function(res){
|
|
app.$dialog.showError("确定要取消该订单吗?",function(res){
|
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
Api.del({"order":order,"type":"cancel"}).then((resp)=>{
|
|
Api.del({"order":order,"type":"cancel"}).then((resp)=>{
|
|
|
- if (res.code !== 1) {
|
|
|
|
|
|
|
+ if (resp.code !== 1) {
|
|
|
return app.$dialog.showSuccess(resp.msg)
|
|
return app.$dialog.showSuccess(resp.msg)
|
|
|
}
|
|
}
|
|
|
app.$dialog.showSuccess(resp.msg)
|
|
app.$dialog.showSuccess(resp.msg)
|
|
@@ -297,7 +297,7 @@ export default {
|
|
|
app.$dialog.showError("删除后数据不可恢复,确定要删除吗",function(res){
|
|
app.$dialog.showError("删除后数据不可恢复,确定要删除吗",function(res){
|
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
Api.del({"order":order,"type":"del"}).then((resp)=>{
|
|
Api.del({"order":order,"type":"del"}).then((resp)=>{
|
|
|
- if (res.code !== 1) {
|
|
|
|
|
|
|
+ if (resp.code !== 1) {
|
|
|
return app.$dialog.showSuccess(resp.msg)
|
|
return app.$dialog.showSuccess(resp.msg)
|
|
|
}
|
|
}
|
|
|
app.$dialog.showSuccess(resp.msg)
|
|
app.$dialog.showSuccess(resp.msg)
|