RefundList.js 829 Bytes
var $ = require('jquery'),
    common = require('../../common/common');

$(document).on('click', "#refundCoinBtn", function() {
    common.util.__ajax({
        url: '/profile/refundYohoCoin',
        data: {uid: common.util.__input("uid"),
                orderCode: common.util.__input("orderCode"),
                returnYohoCoin: common.util.__input("returnYohoCoin"),
                isReturnCounpon:common.util.__input("isReturnCounpon")}
    }, 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("");
            $('#orderCode').val("");
            $('#returnYohoCoin').val("");
            $('#isReturnCounpon').val("");
        }
    });
});