123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- {!! $grid !!}
- <div class="modal fade" id="dialog" tabindex="-1" role="dialog" aria-labelledby="ModalLabel">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
- </button>
- <h4 class="modal-title" id="myModalLabel1">业务</h4>
- </div>
- <div class="modal-body">
- <div class="contentfade">
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- $(function () {
- $('.business').on('click', function () {
- $("#myModalLabel1").html('业务');
- var personal_id = $(this).attr('id');
- $('#dialog').addClass('in');
- $('#dialog').css('display', 'block');
- $('.contentfade').html('');
- $.ajax({
- url: "{{admin_base_path('/firm/ajax/getinfo/')}}",
- data:{'id':personal_id,'utype':2,'_token':'{{csrf_token()}}'},
- // dataType:'json',
- success:function (res) {
- $('.contentfade').html(res);
- },
- })
- });
- $(document).on("click",'#fa_sms',function () {
- var mobile = $(this).attr('ls');
- $.ajax({
- type: "post",
- url: "{{admin_base_path()}}/personal/sendSms",
- data: {
- mobile:mobile,
- _token:LA.token,
- },
- dataType: "json",
- success: function(result){
- $(".contentfade").html(result.html);
- $("#myModalLabel1").html(result.detail);
- $("#dialog").show();
- $("#dialog").addClass('in');
- }
- });
- });
- $(document).on("click",'#fa_email',function () {
- var email = $(this).attr('ls');
- $.ajax({
- type: "post",
- url: "{{admin_base_path()}}/personal/sendEmail",
- data: {
- email:email,
- _token:LA.token,
- },
- dataType: "json",
- success: function(result){
- $(".contentfade").html(result.html);
- $("#myModalLabel1").html(result.detail);
- $("#dialog").show();
- $("#dialog").addClass('in');
- }
- });
- });
- $(document).on("click",'#fa_sys',function () {
- var uid = $(this).attr('ls');
- $.ajax({
- type: "post",
- url: "{{admin_base_path()}}/personal/sendSys",
- data: {
- uid:uid,
- _token:LA.token,
- },
- dataType: "json",
- success: function(result){
- $(".contentfade").html(result.html);
- $("#myModalLabel1").html(result.detail);
- $("#dialog").show();
- $("#dialog").addClass('in');
- }
- });
- });
- $(".close").on('click', function () {
- $('#dialog').removeClass('in');
- $('#dialog').css('display', 'none');
- })
- $(document).on('click','#update_password',function () {
- var id_array=new Array();
- $('input[class="grid-row-checkbox"]:checked').each(function(){
- id_array.push($(this).attr('data-id'));
- });
- var idstr=id_array.join(',');
- if( idstr=='' || idstr==null ){
- swal('请勾选需要重置的会员', '', 'error');
- }else{
- $.ajax({
- type: "post",
- url: "{{admin_base_path()}}/personal/auditPassword",
- data: {
- id:idstr,
- _token:LA.token,
- },
- dataType: "json",
- success: function(result){
- $(".contentfade").html(result.html);
- $("#myModalLabel1").html(result.detail);
- $("#dialog").show();
- $("#dialog").addClass('in');
- }
- });
- }
- })
- });
- </script>
|