优化代码

This commit is contained in:
java110 2020-08-04 21:53:17 +08:00
parent 77047e1ed0
commit d082bc2b16

View File

@ -98,7 +98,8 @@
},
function (json, res) {
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
if (res.status == 200) {
let _json = JSON.parse(json);
if (_json.code == 0) {
//关闭model
$("#payFeeResult").modal({
backdrop: "static",//点击空白处不关闭对话框
@ -106,7 +107,7 @@
});
return;
}
vc.toast(json);
vc.toast(_json.msg);
},
function (errInfo, error) {
console.log('请求失败处理');