浏览代码

Merge branch 'master' of http://47.97.194.53:3000/qiushang/xingyou

Qasim 10 月之前
父节点
当前提交
2eaf61867f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      resources/views/home/http/newslist.blade.php

+ 2 - 2
resources/views/home/http/newslist.blade.php

@@ -66,11 +66,11 @@
     let totalPage =  Math.ceil(total / 15);
     let currentUrl = window.location.href;
     let url = new URL(currentUrl);
-    let currentPage = url.searchParams.get("page");
+    let currentPage = url.searchParams.get("page") ?? 1;
     setTimeout(function() {
         $("#page").Page({
             totalPages: totalPage, //total Pages
-            liNums: 7, //the li numbers(advice use odd)
+            liNums: 10, //the li numbers(advice use odd)
             activeClass: 'activP', //active class style
             firstPage: '首', //first button name
             lastPage: '末', //last button name