BlackList.js 494 Bytes
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("");
        }
    });
});