优化提示

This commit is contained in:
java110 2020-03-24 01:05:29 +08:00
parent 8a8f6fabad
commit 5fb560ffdd
9 changed files with 21 additions and 21 deletions

View File

@ -109,13 +109,13 @@
return ;
}
vc.message(json);
vc.toast(json);
},
function(errInfo,error){
console.log('请求失败处理');
vc.message(errInfo);
vc.toast(errInfo);
});
},

View File

@ -137,13 +137,13 @@
return;
}
vc.message(json);
vc.toast(json);
},
function(errInfo, error) {
console.log('请求失败处理');
vc.message(errInfo);
vc.toast(errInfo);
});
},

View File

@ -123,13 +123,13 @@
return;
}
vc.message(json);
vc.toast(json);
},
function (errInfo, error) {
console.log('请求失败处理');
vc.message(errInfo);
vc.toast(errInfo);
});
},

View File

@ -44,7 +44,7 @@
_nextStep: function () {
var _currentData = vc.component.addComplaintStepInfo.infos[vc.component.addComplaintStepInfo.index];
if (_currentData == null || _currentData == undefined) {
vc.message("请选择或填写必选信息");
vc.toast("请选择或填写必选信息");
return;
}
vc.component.addComplaintStepInfo.$step.nextStep();
@ -60,7 +60,7 @@
var _currentData = vc.component.addComplaintStepInfo.infos[vc.component.addComplaintStepInfo.index];
if (_currentData == null || _currentData == undefined) {
vc.message("请选择或填写必选信息");
vc.toast("请选择或填写必选信息");
return;
}
@ -79,17 +79,17 @@
function (json, res) {
if (res.status == 200) {
vc.message('处理成功', true);
vc.toast('处理成功', true);
//关闭model
vc.jumpToPage("/admin.html#/complaintManage?" + vc.objToGetParam(JSON.parse(json)));
return;
}
vc.message(json);
vc.toast(json);
},
function (errInfo, error) {
console.log('请求失败处理');
vc.message(errInfo);
vc.toast(errInfo);
});
}
}

View File

@ -195,13 +195,13 @@
return;
}
vc.message(json);
vc.toast(json);
},
function(errInfo, error) {
console.log('请求失败处理');
vc.message(errInfo);
vc.toast(errInfo);
});
},

View File

@ -216,13 +216,13 @@
return;
}
vc.message(json);
vc.toast(json);
},
function (errInfo, error) {
console.log('请求失败处理');
vc.message(errInfo);
vc.toast(errInfo);
});
},

View File

@ -92,13 +92,13 @@
return;
}
vc.message(json);
vc.toast(json);
},
function (errInfo, error) {
console.log('请求失败处理');
vc.message(errInfo);
vc.toast(errInfo);
});
},

View File

@ -87,13 +87,13 @@
return;
}
vc.message(json);
vc.toast(json);
},
function(errInfo, error) {
console.log('请求失败处理');
vc.message(errInfo);
vc.toast(errInfo);
});
},

View File

@ -196,13 +196,13 @@
return;
}
vc.message(json);
vc.toast(json);
},
function (errInfo, error) {
console.log('请求失败处理');
vc.message(errInfo);
vc.toast(errInfo);
});
},