|
|
@@ -138,14 +138,15 @@
|
|
|
*/
|
|
|
function doConfirm(id, status){
|
|
|
var checked = false;
|
|
|
+ var remark = '';
|
|
|
var msg = status==2? '确定通过?请填写备注' : '确定驳回?请填写原因';
|
|
|
if(status!=2){
|
|
|
checked = true;
|
|
|
- var remark = prompt(msg)
|
|
|
+ remark = prompt(msg)
|
|
|
}else{
|
|
|
checked = confirm('确认审核通过?')
|
|
|
}
|
|
|
- if (id>0 && remark && checked) {
|
|
|
+ if (id>0 && (remark || checked)) {
|
|
|
$.post('/admin/account/confirm', {id: id, status: status,remark:remark}, function (res) {
|
|
|
if (res.code == 1) {
|
|
|
showMsg(res.msg);
|