index.blade.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. {!! $grid !!}
  2. <div class="modal fade" id="dialog" tabindex="-1" role="dialog" aria-labelledby="ModalLabel">
  3. <div class="modal-dialog" role="document">
  4. <div class="modal-content">
  5. <div class="modal-header">
  6. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
  7. </button>
  8. <h4 class="modal-title" id="myModalLabel1">业务</h4>
  9. </div>
  10. <div class="modal-body">
  11. <div class="contentfade">
  12. </div>
  13. </div>
  14. </div>
  15. </div>
  16. </div>
  17. <script>
  18. $(function () {
  19. $('.business').on('click', function () {
  20. $("#myModalLabel1").html('业务');
  21. var personal_id = $(this).attr('id');
  22. $('#dialog').addClass('in');
  23. $('#dialog').css('display', 'block');
  24. $('.contentfade').html('');
  25. $.ajax({
  26. url: "{{admin_base_path('/firm/ajax/getinfo/')}}",
  27. data:{'id':personal_id,'utype':2,'_token':'{{csrf_token()}}'},
  28. // dataType:'json',
  29. success:function (res) {
  30. $('.contentfade').html(res);
  31. },
  32. })
  33. });
  34. $(document).on("click",'#fa_sms',function () {
  35. var mobile = $(this).attr('ls');
  36. $.ajax({
  37. type: "post",
  38. url: "{{admin_base_path()}}/personal/sendSms",
  39. data: {
  40. mobile:mobile,
  41. _token:LA.token,
  42. },
  43. dataType: "json",
  44. success: function(result){
  45. $(".contentfade").html(result.html);
  46. $("#myModalLabel1").html(result.detail);
  47. $("#dialog").show();
  48. $("#dialog").addClass('in');
  49. }
  50. });
  51. });
  52. $(document).on("click",'#fa_email',function () {
  53. var email = $(this).attr('ls');
  54. $.ajax({
  55. type: "post",
  56. url: "{{admin_base_path()}}/personal/sendEmail",
  57. data: {
  58. email:email,
  59. _token:LA.token,
  60. },
  61. dataType: "json",
  62. success: function(result){
  63. $(".contentfade").html(result.html);
  64. $("#myModalLabel1").html(result.detail);
  65. $("#dialog").show();
  66. $("#dialog").addClass('in');
  67. }
  68. });
  69. });
  70. $(document).on("click",'#fa_sys',function () {
  71. var uid = $(this).attr('ls');
  72. $.ajax({
  73. type: "post",
  74. url: "{{admin_base_path()}}/personal/sendSys",
  75. data: {
  76. uid:uid,
  77. _token:LA.token,
  78. },
  79. dataType: "json",
  80. success: function(result){
  81. $(".contentfade").html(result.html);
  82. $("#myModalLabel1").html(result.detail);
  83. $("#dialog").show();
  84. $("#dialog").addClass('in');
  85. }
  86. });
  87. });
  88. $(".close").on('click', function () {
  89. $('#dialog').removeClass('in');
  90. $('#dialog').css('display', 'none');
  91. })
  92. $(document).on('click','#update_password',function () {
  93. var id_array=new Array();
  94. $('input[class="grid-row-checkbox"]:checked').each(function(){
  95. id_array.push($(this).attr('data-id'));
  96. });
  97. var idstr=id_array.join(',');
  98. if( idstr=='' || idstr==null ){
  99. swal('请勾选需要重置的会员', '', 'error');
  100. }else{
  101. $.ajax({
  102. type: "post",
  103. url: "{{admin_base_path()}}/personal/auditPassword",
  104. data: {
  105. id:idstr,
  106. _token:LA.token,
  107. },
  108. dataType: "json",
  109. success: function(result){
  110. $(".contentfade").html(result.html);
  111. $("#myModalLabel1").html(result.detail);
  112. $("#dialog").show();
  113. $("#dialog").addClass('in');
  114. }
  115. });
  116. }
  117. })
  118. });
  119. </script>