caipin 5 年之前
父節點
當前提交
40f05df86a
共有 3 個文件被更改,包括 7 次插入6 次删除
  1. 3 3
      global/js/cloud/curing.js
  2. 2 2
      global/js/pagination/page.js
  3. 2 1
      views/cloud/curing.html

+ 3 - 3
global/js/cloud/curing.js

@@ -293,7 +293,7 @@ $(function() {
     
 
     //动态绑定分页事件
-    $('ul[curingPage]').delegate( 'a','click', function(){
+    $('div[pageDetail]').delegate( 'a','click', function(){
         // 只获取第一个选中的值
         var parameter = $(this).attr('parameter');
         var currentPage = $(this).attr('currentPage');
@@ -306,7 +306,7 @@ $(function() {
             success: function(data) {
                 if (data.status == 1) {
                     fnStructureCuringUser(data.curingList);
-                    fnCuringPage(data.pageData);
+                    fnPage(data.pageData);
                 } else {
                     alert(data.msg);
                 }
@@ -422,7 +422,7 @@ $(function() {
                 console.log(data);
                 if(data.status==1||data.status==2){
                     fnStructureCuringUser(data.curingList);
-                    fnCuringPage(data.pageData);
+                    fnPage(data.pageData);
                 }else if(data.status==3){
                     //$('div[upCuringBox]').hide();
                     //$('p[upCuringBox]').show();

+ 2 - 2
global/js/pagination/page.js

@@ -1,5 +1,5 @@
 //构建养护用户分页
-function fnCuringPage(data){
+function fnPage(data){
     var html='<ul  class="pagination pagination-sm">';
     if( data.previousPage == 0) {
         html+='<li class="page-item disabled"><span class="page-link" aria-label="Previous"> <span aria-hidden="true"><i class="fal fa-chevron-left"></i></span> </span> </li>';
@@ -39,6 +39,6 @@ function fnCuringPage(data){
     html+='</ul>';
     
     
-    $('ul[pageDetail]').html(html);
+    $('div[pageDetail]').html(html);
     $('div[page]').show();
 }

+ 2 - 1
views/cloud/curing.html

@@ -1,4 +1,5 @@
 <% include ../header.html %>
+<script src="<%= WEB_SITE_GLOBAL %>js/pagination/page.js"></script>
 <script src="<%= WEB_SITE_GLOBAL %>js/tools.js"></script>
 <script src="<%= WEB_SITE_GLOBAL %>js/zepto.min.js"></script>
 
@@ -7,7 +8,7 @@
 
 <script src="<%= WEB_SITE_GLOBAL %>js/contacts/client.js"></script>
 <script src="<%= WEB_SITE_GLOBAL %>js/cloud/curing.js"></script>
-<script src="<%= WEB_SITE_GLOBAL %>js/pagination/page.js"></script>
+
 <style>
     input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{
         -webkit-appearance: none !important;