/** * Created by A.J on 2019/3/12. */$(document).ready(function(){$(".yincang").click(function(){var i=$(this);i.children("span").removeClass("hidden"),$.post("linkyincangqiyong",{id:i.siblings(":last").val(),zt:i.siblings(":first").val(),verification:$("#verification").text()},function(n){i.siblings(":first").val(0),i.parent().prev().html('<h5 class="text-muted">'+$("#buxianshi").text()+"</h5>"),i.children("span").addClass("hidden"),i.addClass("hidden").next().removeClass("hidden")})}),$(".qiyong").click(function(){var i=$(this);i.children("span").removeClass("hidden"),$.post("linkyincangqiyong",{id:i.siblings(":last").val(),zt:i.siblings(":first").val(),verification:$("#verification").text()},function(n){i.siblings(":first").val(1),i.parent().prev().html('<h5 class="text-success"><span class="glyphicon glyphicon-ok"></span> '+$("#xianshi").text()+"</h5>"),i.children("span").addClass("hidden"),i.addClass("hidden").prev().removeClass("hidden")})}),$("table a.twitter").confirm({title:$("#quedingshanchu").text(),content:$("#bukehuifu").text(),confirmButton:$("#jixu").text(),cancelButton:$("#quxiao").text(),confirm:function(){var i=this.$target;$.post("removeLink",{id:this.$target.siblings(":last").val(),verification:$("#verification").text()},function(n){i.parent().parent().remove()})}})});