Browse Source

一期优化后

wx_zhangxiaocui 3 months ago
parent
commit
196508ceb1

+ 3 - 3
cms-editor/templates/default_v5/about_list.html

@@ -4,7 +4,6 @@
 <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
-    <title>{dreamer-cms:global name="title" /}</title>
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/bootstrap/css/bootstrap.min.css">
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto.css">
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto%20Slab.css">
@@ -49,7 +48,7 @@
                 <div>
                     {dreamer-cms:type typeid="04zc8871"}
                     <img style="width: 100%;object-fit: cover;" 
-                    data-src="[field:typeimg/]" 
+                    data-src="[field:typeimg/]" alt="[field:typenamecn/]"
                     src="{dreamer-cms:template /}assets/img/none.png" loading="lazy">
                     {/dreamer-cms:type}
                 </div>
@@ -113,7 +112,8 @@
                     <div class="col fade-box wow fadeIn" data-wow-duration="1000" data-wow-once="true">
                         <img class="auto-img" 
                         src="{dreamer-cms:template /}assets/img/none.png"
-                        data-src="[field:litpic/]" loading="lazy">
+                        data-src="[field:litpic/]" loading="lazy"
+                        alt="[field:title/]">
                     </div>
                     {/dreamer-cms:list}
                 </div>

+ 12 - 0
cms-editor/templates/default_v5/assets/css/styles.css

@@ -2,6 +2,18 @@ body{
   width: 100vw;
   overflow-x: hidden;
 }
+/* 默认鼠标指针样式 */
+body {
+  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10"><circle cx="5" cy="5" r="5" fill="darkgrey"/></svg>') 5 5, auto;
+}
+
+/* 鼠标悬停在内容上时的样式 */
+img:hover {
+  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><circle cx="10" cy="10" r="10" fill="rgba(0,0,0,0.2)"/></svg>') 10 10, auto;
+}
+a:hover {
+  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><circle cx="10" cy="10" r="10" fill="rgba(255,255,255,0.2)"/></svg>') 10 10, auto;
+}
 @media (min-width: 1400px) {
   .ahout-hr {
     margin: 5rem 0;

+ 0 - 1
cms-editor/templates/default_v5/back.html

@@ -3,7 +3,6 @@
 <head>
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <title>{dreamer-cms:global name="title" /}</title>
     <style>
         .back-up a{
             text-decoration: none;

+ 3 - 3
cms-editor/templates/default_v5/contact_list.html

@@ -4,7 +4,6 @@
 <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
-    <title>{dreamer-cms:global name="title" /}</title>
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/bootstrap/css/bootstrap.min.css">
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto.css">
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto%20Slab.css">
@@ -21,7 +20,7 @@
                 {dreamer-cms:type typeid="9t544bf9"}
                 <div>
                     <img style="width: 100%;object-fit: cover;" data-src="[field:typeimg /]"
-                        src="{dreamer-cms:template /}assets/img/none.png" alt="logo" id="contact-img">
+                        src="{dreamer-cms:template /}assets/img/none.png" alt="叁目计研" id="contact-img">
                 </div>
                 <div class="pt-3 pt-md-5 pt-xl-4" id="contact">
                     [field:htmlcontent /]
@@ -41,11 +40,12 @@
                 element.style.width = "100%"
             });
             var imgArr = document.querySelectorAll("#contact img")
-            imgArr.forEach(i => {
+            imgArr.forEach((i,index) => {
                 i.style.width = "100%"
                 i.style.height = "auto"
                 let src = i.getAttribute("src")
                 i.setAttribute("data-src", src)
+                i.setAttribute("alt", "图片"+index)
                 i.setAttribute("src", "{dreamer-cms:template /}assets/img/none.png")
             });
         })

+ 1 - 1
cms-editor/templates/default_v5/footer.html

@@ -72,7 +72,7 @@
                         <div>
                             {dreamer-cms:sql sql="select image_path as litpic from system_archives where id = [cc3c8a326842433292ad1bf7cae7e1c1]"}
                             <img class="footer-code" width="100px" height="100px" 
-                            alt="111" loading="lazy" data-src="/resources/uploads/[field:litpic /]"
+                            alt="叁目计研" loading="lazy" data-src="/resources/uploads/[field:litpic /]"
                             src="{dreamer-cms:template /}assets/img/none.png"/>
                             {/dreamer-cms:sql}
                         </div>

+ 2 - 1
cms-editor/templates/default_v5/header.html

@@ -4,6 +4,7 @@
 <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
+    <meta name="description" content="{dreamer-cms:global name='describe' /}">
     <title>{dreamer-cms:global name="title" /}</title>
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/bootstrap/css/bootstrap.min.css">
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto.css">
@@ -45,7 +46,7 @@
                     <a class="navbar-brand d-flex align-items-center" href="/">
                         {dreamer-cms:sql sql="select image_path as litpic from system_archives where id = [1800352925088759808]"}
                         <img class="logo" data-src="/resources/uploads/[field:litpic /]"
-                            src="{dreamer-cms:template /}assets/img/none.png" alt="logo" style="margin: 0 .5rem 0 0;">
+                            src="{dreamer-cms:template /}assets/img/none.png" alt="samoredesign" style="margin: 0 .5rem 0 0;">
                         {/dreamer-cms:sql}
                         <!-- <span>{dreamer-cms:global name="title" /}</span> -->
                     </a>

+ 0 - 2
cms-editor/templates/default_v5/index.html

@@ -6,8 +6,6 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
     <meta name="baidu-site-verification" content="codeva-MAQk1Jjbgd" />
     <meta name="keywords" content="{dreamer-cms:global name='keywords' /}">
-    <meta name="description" content="{dreamer-cms:global name='describe' /}">
-    <title>{dreamer-cms:global name="title" /}</title>
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/bootstrap/css/bootstrap.min.css">
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto.css">
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto%20Slab.css">

+ 4 - 4
cms-editor/templates/default_v5/news_content.html

@@ -4,8 +4,6 @@
 <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
-    <meta name="description" content="{dreamer-cms:article field='tag' /}">
-    <title>{dreamer-cms:global name="title" /}</title>
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/bootstrap/css/bootstrap.min.css">
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto.css">
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto%20Slab.css">
@@ -52,7 +50,8 @@
         <section>
             <div class="p-2">
                 <div><img style="width: 100%;object-fit: cover;" data-src="{dreamer-cms:article field='litpic' /}"
-                        src="{dreamer-cms:template /}assets/img/none.png"></div>
+                        src="{dreamer-cms:template /}assets/img/none.png"
+                        alt="{dreamer-cms:article field='title' /}"></div>
             </div>
         </section>
         {dreamer-cms:include file='back.html'/}
@@ -105,11 +104,12 @@
                 element.style.width = "100%"
             });
             var imgArr = document.querySelectorAll("#content img")
-            imgArr.forEach(i => {
+            imgArr.forEach((i,index) => {
                 i.style.width = "100%"
                 i.style.height = "auto"
                 let src = i.getAttribute("src")
                 i.setAttribute("data-src", src)
+                i.setAttribute("alt", "图片"+index)
                 i.setAttribute("src", "{dreamer-cms:template /}assets/img/none.png")
             });
         })

+ 3 - 2
cms-editor/templates/default_v5/news_list.html

@@ -4,7 +4,6 @@
 <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
-    <title>{dreamer-cms:global name="title" /}</title>
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/bootstrap/css/bootstrap.min.css">
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto.css">
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto%20Slab.css">
@@ -75,7 +74,8 @@
             <div class="">
                 <div class="pt-2 pt-md-3 pt-xl-4">
                     {dreamer-cms:type typeid="927c5jck"}
-                    <img class="auto-img" 
+                    <img class="auto-img"
+                    alt="[field:typenamecn/]"
                     src="{dreamer-cms:template /}assets/img/none.png"
                     data-aos="zoom-in-right" data-aos-duration="800" data-aos-once="true"
                     data-src="[field:typeimg/]" />
@@ -92,6 +92,7 @@
                         <div class="new-img-box" style="overflow: hidden;">
                             <img class="card-img-top d-block fit-cover news-img" 
                             src="{dreamer-cms:template /}assets/img/none.png"
+                            alt="[field:title/]"
                             data-aos="zoom-in" data-aos-duration="800" data-aos-once="true"
                             data-src="[field:litpic/]"
                             loading="lazy"/>

+ 4 - 2
cms-editor/templates/default_v5/service_list.html

@@ -4,7 +4,6 @@
 <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
-    <title>{dreamer-cms:global name="title" /}</title>
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/bootstrap/css/bootstrap.min.css">
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto.css">
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto%20Slab.css">
@@ -26,6 +25,7 @@
                     {dreamer-cms:type typeid="x1ttlx6s"}
                     <img style="width: 100%;object-fit: cover;height: auto;"
                         data-src="[field:typeimg/]" loading="lazy"
+                        alt="[field:typenamecn/]"
                         src="{dreamer-cms:template /}assets/img/none.png" />
                     {/dreamer-cms:type}
                 </div>
@@ -38,6 +38,7 @@
                     style="height: auto;">
                     <img style="width: 100%;object-fit: cover;height: auto;"
                         data-src="[field:typeimg /]" loading="lazy"
+                        alt="[field:typenamecn/]"
                         src="{dreamer-cms:template /}assets/img/none.png">
                 </div>
                 <div class="row gx-0 gy-0 gx-sm-2 gx-md-2 gx-lg-2 gx-xl-2 gx-xxl-2 row-cols-1 row-cols-md-3 row-cols-lg-3 row-cols-xl-3 row-cols-xxl-3">
@@ -51,7 +52,8 @@
                                 </a>
                             </div>
                             <div class="work-img-box h-100 w-100 position-absolute">
-                                <img class="position-absolute work-img" data-src="[field:litpic/]" loading="lazy"/>
+                                <img class="position-absolute work-img" data-src="[field:litpic/]" loading="lazy"
+                                alt="[field:title/]"/>
                             </div>
                         </div>
                     </div>

+ 3 - 4
cms-editor/templates/default_v5/swiper.html

@@ -4,7 +4,6 @@
 <head>
   <meta charset="utf-8">
   <meta name="viewport" content="width=device-width, initial-scale=1">
-  <meta name="description" content="Presta is a Free Bootstrap Bike Repair Template.">
 
   <!-- Favicon and Touch Icons -->
   <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/swiper-bundle.min.css">
@@ -54,9 +53,9 @@
   <script>
     var mySwiper = new Swiper('.swiper', {
       // direction: 'vertical', // 垂直切换选项
-      // autoplay: {
-      //   delay: 3500
-      // },
+      autoplay: {
+        delay: 3500
+      },
       loop: true, // 循环模式选项
       // 如果需要分页器
       pagination: {

+ 2 - 4
cms-editor/templates/default_v5/work_content.html

@@ -4,9 +4,6 @@
 <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
-    
-    <meta name="description" content="{dreamer-cms:article field='tag' /}">
-    <title>{dreamer-cms:global name="title" /}</title>
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/bootstrap/css/bootstrap.min.css">
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto.css">
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto%20Slab.css">
@@ -48,10 +45,11 @@
                 element.style.width = "100%"
             });
             var imgArr = document.querySelectorAll("#content img")
-            imgArr.forEach(i => {
+            imgArr.forEach((i,index) => {
                 i.style.width = "100%"
                 i.style.height = "auto"
                 let src = i.getAttribute("src")
+                i.setAttribute("alt", "图片"+index)
                 i.setAttribute("data-src", src)
                 console.log(src)
                 i.setAttribute("src", "{dreamer-cms:template /}assets/img/none.png")

+ 0 - 1
cms-editor/templates/default_v5/work_list.html

@@ -4,7 +4,6 @@
 <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
-    <title>{dreamer-cms:global name="title" /}</title>
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/bootstrap/css/bootstrap.min.css">
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto.css">
     <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto%20Slab.css">