1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- @extends('mobile.module.layouts.content')
- @push('meta')
- @endpush
- @push('css')
- <link href="{{ theme_asset('mobile/css/common.css') }}" rel="stylesheet">
- <link href="{{ theme_asset('mobile/css/news.css') }}" rel="stylesheet">
- <style>
- .drop_content{padding-bottom: 1rem;}
- .fixed_btn{width: 90%;position: fixed;bottom: 0;left: 50%; -webkit-transform: translate(-50%,0);transform: translate(-50%,0);}
- </style>
- @endpush
- @push('js')
- <script src="{{ theme_asset('mobile/js/dropload.min.js') }}"></script>
- @endpush
- @section('content')
- <div class="drop_content">
- <div class="add_data">
- @include('mobile.app.recruit.ajax_recruit_list')
- </div>
- </div>
- @endsection
- @section('script')
- <script>
- $(function(){
- // 页数
- var page = 1;
- // dropload
- $('.drop_content').dropload({
- scrollArea : window,
- domUp : {
- domClass : 'dropload-up',
- domRefresh : '<div class="dropload-refresh">加载中...</div>',
- domUpdate : '<div class="dropload-update">加载中...</div>',
- domLoad : '<div class="dropload-load"><span class="loading"></span>加载中...</div>'
- },
- domDown : {
- domClass : 'dropload-down',
- domRefresh : '<div class="dropload-refresh">加载中...</div>',
- domLoad : '<div class="dropload-load"><span class="loading"></span>加载中...</div>',
- domNoData : '<div class="dropload-noData">没有更多数据~~</div>'
- },
- //autoLoad : '{{--{{$mobile_dropload}}--}}',
- /*autoLoad : false,*/
- loadUpFn : function(me){
- page = 1;
- $.ajax({
- type: 'GET',
- url: '{{ url($current_url) }}?page='+page,
- dataType: 'json',
- success: function(result){
- if (result.status ==1) {
- $('.add_data').html(result.data);
- } else {
- me.lock();
- me.noData();
- }
- me.resetload();
- },
- error: function(xhr, type){
- me.resetload();
- }
- });
- },
- @if($mobile_dropload)
- loadDownFn : function(me){
- page++;
- $.ajax({
- type: 'GET',
- url: '{{ url($current_url) }}?page='+page,
- dataType: 'json',
- success: function(result){
- if (result.status ==1) {
- $('.add_data').append(result.data);
- } else {
- me.lock();
- me.noData();
- }
- me.resetload();
- },
- error: function(xhr, type){
- me.resetload();
- }
- });
- },
- @endif
- threshold : 50
- });
- });
- </script>
- @endsection
|