Blame view

more/self/fapiao/Billinghistory/new_file.html 3.27 KB
313ce84a   songchongxian   创建h5 app项目
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
  <!DOCTYPE html>
  <html>
  	<head>
  		<meta charset="UTF-8">
  	    <title>开票历史</title>
  	    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  	    <meta name="format-detection" content="telephone=no" />
  	    <meta name="format-detection" content="email=no" />
  	    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  	    <meta name="apple-mobile-web-app-capable" content="yes" />
  	    <meta name="apple-mobile-web-app-title" content="">
  	    <meta name="google" value="notranslate"><!-- 禁止Chrome 浏览器中自动提示翻译 -->
  	    <link rel="stylesheet" type="text/css" href="../../../../iconfont/iconfont.css"/>
  	    <link href="../../../../css/reset.css"  rel="stylesheet"/>
  	    <link rel="stylesheet" href="../../../../js/layui/layui.css" />
  	</head>
  	<style>
  		#stage li{
  			height: 40px;
  			border: 1px solid #000;
  		}
  	</style>
  	<body>
  		<ul class="flow-default yuyue_list" id="LAY_demo1" ></ul>  
  		<!--预加载layui的js,css-->
  		<!--<ul id="stage">  
  		    <li></li>  
  		    <li></li>  
  		    <li></li>  
  		    <li></li>  
  		    <li></li>  
  		    <li></li>  
  		    <li></li>  
  		    <li></li> 
  		    <li></li>  
  		    <li></li>  
  		    <li></li>  
  		    <li></li>  
  		</ul>  -->
  	</body>
  </html>
  <script src="../../../../js/jquery-3.2.1.min.js"></script>
  <script src="../../../../js/layui/layui.js"></script>
  <script>  
    
      $(document).ready(function(){  
          var limit = 10;  
          layui.use('flow', function(){  
              var $ = layui.jquery; //不用额外加载jQuery,flow模块本身是有依赖jQuery的,直接用即可。  
              var flow = layui.flow;  
              flow.load({  
                  elem: '#LAY_demo1' //指定列表容器  
                  ,done: function(page, next){ //到达临界点(默认滚动触发),触发下一页  
                    //页数  
                    $('#LAY_demo1').append('<li>nnn</li>');
                      //以jQuery的Ajax请求为例,请求下一页数据(注意:page是从2开始返回)  
                      /*$.getJSON('/home/my/yuyuelist?page='+page, function(res){  
                          if(res.status != 0){  
                              var lis = [];  
                              //假设你的列表返回在data集合中  
                              layui.each(res, function(index, value){  
                                  lis.push('<li>这是加载的列表</li>');  
                              });  
                              //执行下一页渲染,第二参数为:满足“加载更多”的条件,即后面仍有分页  
                              //pages为Ajax返回的总页数,只有当前页小于总页数的情况下,才会继续出现加载更多  
                              next(lis.join(''), limit == res.length);  
                          }  
                      });  */
                  }  
              });  
          });  
    
      });  
  </script>  
  <script>
  	/*$(document).ready(function(){  
  	    loadMore();  
  	});   
  	  
  	$(window).scroll(function(){  
  	    // 当滚动到最底部以上100像素时, 加载新内容  
  	    if ($(document).height() - $(this).scrollTop() - $(this).height()<100) loadMore();  
  	});  
  	  
  	  
  	function loadMore()  
  	{  
  	   $('#stage').append('<li>nnn</li>');
  	}  */
  </script>