$(function () {
            $("#GetCoupon").click(function () {
                function del() {
                    var msg = "请确定领取吗?\n\n请确认!";
                    if (confirm(msg) == true) {
                        return true;
                    } else {
                        return false;
                    }
                }
                if (del()) {
                    var id = $(this).attr("did");
                    $.ajax({
                        type: 'post',
                        url: '/Home/Get',
                        data: { "id": id },
                        success: function (msg) {
                            console.log(msg);
                            if (msg) {
                                alert("领取成功");
                                window.location.reload();
                            } else {

                            }
                        }
                    })
                } else { alert("用户取消了领取"); }
            })
        })

 

相关文章:

  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
猜你喜欢
  • 2022-02-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-29
  • 2022-12-23
相关资源
相似解决方案