black-list.js
537 Bytes
/**
* Created by wangqianjun on 16/4/14.
*/
var $ = require('jquery'),
common = require('../common/common');
$(document).on('click', "#dismiss", function() {
common.util.__ajax({
url: '/profile/rmBlackUser',
data: {uid: common.util.__input("uid")}
}, function(res) {
console.log('data' + res.data);
console.log('message' + res.data);
var code = res.code;
if (code != 200) {
alert(res.message);
}else {
$('#uid').val("");
}
});
});