/*** Created by A.J on 2020/6/17.*/$(document).ready(function(){$(".increasepoints").on("click", function(){var tobj = $(this).parent().prev("input");var jfobj = $(this).parent().parent().parent().siblings(".jifen");var increase = tobj.val();var usr = $(this).next("input").val();$.post("increasepoints", { increase: increase, uid: usr, verification:$("#verification").text()}, function(data){if(data == 'ok'){jfobj.text(parseInt(jfobj.text()) + parseInt(increase));tobj.val("");}else{$.alert({title: $('#chucuo').text(),content: data,buttons: {confirm: {text: $('#queding').text(),btnClass: 'btn-info',keys: ['enter']}}});}});});$(".decreasepoints").on("click", function(){var tobj = $(this).parent().prev("input");var jfobj = $(this).parent().parent().parent().siblings(".jifen");var decrease = tobj.val();var usr = $(this).next("input").val();$.post("decreasepoints", { decrease: decrease, uid: usr, verification:$("#verification").text()}, function(data){if(data == 'ok'){jfobj.text(parseInt(jfobj.text()) - parseInt(decrease));tobj.val("");}else{$.alert({title: $('#chucuo').text(),content: data,buttons: {confirm: {text: $('#queding').text(),btnClass: 'btn-info',keys: ['enter']}}});}});});});