Browse Source

fix:后台优化

super-yimizi 2 months ago
parent
commit
81e2ef7365

+ 1 - 1
addons/wwh/controller/Column.php

@@ -97,7 +97,7 @@ class Column extends Base
         }
         }
         
         
 
 
-        $list = $archivesQuery->paginate(6, false, ['query' => request()->param()]);
+        $list = $archivesQuery->paginate(9, false, ['query' => request()->param()]);
         $newList = [];
         $newList = [];
         foreach ($list as $item) {
         foreach ($list as $item) {
             $item['time'] = strtotime($item['time']);
             $item['time'] = strtotime($item['time']);

+ 51 - 2
addons/wwh/view/materials/list_product.html

@@ -146,17 +146,28 @@
             border-radius: 12px;
             border-radius: 12px;
             box-shadow: 0 2px 12px rgba(0,0,0,0.08);
             box-shadow: 0 2px 12px rgba(0,0,0,0.08);
             padding: 24px;
             padding: 24px;
-            transition: box-shadow 0.2s;
+            transition: all 0.2s ease;
+            cursor: pointer;
+            position: relative;
         }
         }
 
 
         .news-item:hover {
         .news-item:hover {
             box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
             box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
+            transform: translateY(-2px);
+        }
+
+        .news-item:active {
+            transform: translateY(0px) scale(0.98);
+            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
+            transition: all 0.1s ease;
         }
         }
 
 
         .news-image {
         .news-image {
             height: 320px;
             height: 320px;
             margin-bottom: 20px;
             margin-bottom: 20px;
             overflow: hidden;
             overflow: hidden;
+            position: relative;
+            z-index: 2;
         }
         }
 
 
         .news-image img {
         .news-image img {
@@ -164,23 +175,61 @@
             width: 100%;
             width: 100%;
             height: 100%;
             height: 100%;
             object-fit: cover;
             object-fit: cover;
-            transition: transform 0.5s ease;
+            transition: transform 0.3s ease;
         }
         }
 
 
         .news-item:hover .news-image img {
         .news-item:hover .news-image img {
             transform: scale(1.05);
             transform: scale(1.05);
         }
         }
 
 
+        .news-item:active .news-image img {
+            transform: scale(0.95);
+            transition: transform 0.1s ease;
+        }
+
         /* 新闻信息区域样式 */
         /* 新闻信息区域样式 */
         .news-info {
         .news-info {
             text-align: center;
             text-align: center;
             margin-bottom: 20px;
             margin-bottom: 20px;
+            position: relative;
+            z-index: 2;
         }
         }
 
 
         .news-info h3 {
         .news-info h3 {
             font-size: 22px;
             font-size: 22px;
             color: #222;
             color: #222;
             margin: 12px 0 0 0;
             margin: 12px 0 0 0;
+            transition: color 0.2s ease;
+        }
+
+        .news-item:hover .news-info h3 {
+            color: #DF0100;
+        }
+
+        .news-item:active .news-info h3 {
+            color: #B30100;
+        }
+
+        /* 点击涟漪效果 */
+        .news-item::before {
+            content: '';
+            position: absolute;
+            top: 50%;
+            left: 50%;
+            width: 0;
+            height: 0;
+            border-radius: 50%;
+            background: rgba(223, 1, 0, 0.1);
+            transform: translate(-50%, -50%);
+            transition: width 0.3s, height 0.3s;
+            pointer-events: none;
+            z-index: 1;
+        }
+
+        .news-item:active::before {
+            width: 300px;
+            height: 300px;
+            transition: width 0.6s, height 0.6s;
         }
         }
         /* 产品弹框样式 */
         /* 产品弹框样式 */
         .product-modal-overlay {
         .product-modal-overlay {

+ 2 - 2
application/admin/view/common/header.html

@@ -105,9 +105,9 @@
                     </ul>
                     </ul>
                 </li>
                 </li>
                 <!-- 控制栏切换按钮 -->
                 <!-- 控制栏切换按钮 -->
-                <li class="hidden-xs">
+                <!-- <li class="hidden-xs">
                     <a href="javascript:;" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
                     <a href="javascript:;" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
-                </li>
+                </li> -->
             </ul>
             </ul>
         </div>
         </div>
     </div>
     </div>

+ 2 - 2
application/admin/view/wwh/config/index.html

@@ -50,8 +50,8 @@
                 <div class="menu">
                 <div class="menu">
                     <a href="{:addon_url('wwh/index/index')}" class="btn btn-warning" target="_blank"><i
                     <a href="{:addon_url('wwh/index/index')}" class="btn btn-warning" target="_blank"><i
                             class="fa fa-home"></i> 官网首页</a>
                             class="fa fa-home"></i> 官网首页</a>
-                    <!-- <a href="addon/config?name=wwh" class="btn btn-primary btn-dialog" title="配置"><i
-                            class="fa fa-pencil"></i> 插件配置</a> -->
+                    <a href="addon/config?name=wwh" class="btn btn-primary btn-dialog" title="配置"><i
+                            class="fa fa-pencil"></i> 插件配置</a>
                 </div>
                 </div>
             </div>
             </div>
             {if $switch_lang == '1'}
             {if $switch_lang == '1'}

+ 1 - 1
application/config.php

@@ -288,7 +288,7 @@ return [
         //是否默认展示子菜单
         //是否默认展示子菜单
         'show_submenu'          => false,
         'show_submenu'          => false,
         //后台皮肤,为空时表示使用skin-black-blue
         //后台皮肤,为空时表示使用skin-black-blue
-        'adminskin'             => '',
+        'adminskin'             => 'skin-green-light',
         //后台是否启用面包屑
         //后台是否启用面包屑
         'breadcrumb'            => false,
         'breadcrumb'            => false,
         //是否允许未知来源的插件压缩包
         //是否允许未知来源的插件压缩包

+ 4 - 4
application/extra/addons.php

@@ -20,10 +20,10 @@ return [
         ],
         ],
     ],
     ],
     'route' => [
     'route' => [
-        '/wwh/$' => 'wwh/index/index',
-        '/wwh/search/$' => 'wwh/search/index',
-        '/wwh/[:diyname]$' => 'wwh/column/index',
-        '/wwh/[:diyname]/[:id]$' => 'wwh/archives/index',
+        '/$' => 'wwh/index/index',
+        '/search/$' => 'wwh/search/index',
+        '/[:diyname]$' => 'wwh/column/index',
+        '/[:diyname]/[:id]$' => 'wwh/archives/index',
     ],
     ],
     'priority' => [],
     'priority' => [],
     'domain' => '',
     'domain' => '',

+ 3 - 3
public/assets/addons/material/css/style.css

@@ -185,7 +185,7 @@ footer {
     width: 100%;
     width: 100%;
     max-width: 1920px;
     max-width: 1920px;
     height: 336px;
     height: 336px;
-    background: #0E1B33;
+    background: #980211;
     margin: 0 auto;
     margin: 0 auto;
     overflow: hidden;
     overflow: hidden;
 }
 }
@@ -281,7 +281,7 @@ footer {
     transform: translateY(-50%); /* 竖线居中调整 */
     transform: translateY(-50%); /* 竖线居中调整 */
     width: 1px;
     width: 1px;
     height: 200px;
     height: 200px;
-    background-color: #2A3956;
+    background-color: #C04E58;
 }
 }
 
 
 .info-item {
 .info-item {
@@ -319,7 +319,7 @@ footer {
     transform: translateY(-50%); /* 竖线调整 */
     transform: translateY(-50%); /* 竖线调整 */
     width: 1px;
     width: 1px;
     height: 200px;
     height: 200px;
-    background-color: #2A3956;
+    background-color: #C04E58;
 }
 }
 
 
 /* 调整行间距 */
 /* 调整行间距 */