hrefs = hrefs + "<a href='javascript:void(0);' onclick='javascript:backTo(\""+ obj._id +"\")'>退 回</a>";
function backTo(id){
var url = basePath+"plan/backTo.do?_id="+ id;
layer.confirm('确认退回该订单吗',{offset: '100px',icon: 3},
function(){
$.ajax({
type : 'POST',
dataType : "json",
url :url,
async : false,
success : function(data) {
if(data.success){
layer.msg('操作成功!', {time: 2000, icon:6});
initTable("");
}else{
layer.alert(data.msg, {icon: 3});
}
}
});
}
);
}
layer 退 回 点击变灰色
最新推荐文章于 2022-01-12 14:50:09 发布