Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
SerinaNya committed Apr 28, 2020
2 parents 3329aaf + 84d6d75 commit fee14d7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
13 changes: 10 additions & 3 deletions web/js/searchKey.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ function searchKey(userMail) {
if (responseData.status) {
datas.datas = responseData.data;
} else {
layer.msg(responseData.data);
showMsg(responseData.data);
};
})
.catch(error => {
console.log(error);
layer.msg("发生了一个异常,请到 Console 查看");
showMsg("发生了一个异常,请到 Console 查看");
});
};

Expand All @@ -49,4 +49,11 @@ clipboard.on('error', function (e) {

layui.use('form', function () {
var form = layui.form;
});
});

function showMsg(msg) {
layui.use('layer', function () {
var layermsg = layui.layer;
layermsg.msg(msg);
});
}
7 changes: 0 additions & 7 deletions web/js/showMsg.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,3 @@ if (msg != null) {
layermsg.msg(msg);
});
};

function showMsg(msg) {
layui.use('layer', function () {
var layermsg = layui.layer;
layermsg.msg(msg);
});
}

0 comments on commit fee14d7

Please sign in to comment.