Quellcode durchsuchen

bug修复+优化

ming vor 1 Jahr
Ursprung
Commit
adf9e221c9
5 geänderte Dateien mit 35 neuen und 72 gelöschten Zeilen
  1. 2 2
      assets/css/style.css
  2. 2 2
      index.html
  3. 1 1
      news/read.html
  4. 11 2
      solution/index.html
  5. 19 65
      test.html

+ 2 - 2
assets/css/style.css

@@ -6349,8 +6349,8 @@
             }
             /* 响应式 */
             /* 首页及底部 */
-            
-            @media(max-width:414px) {
+
+                        @media(max-width:414px) {
                 /* common */
                 body {
                     font-size: 14px

+ 2 - 2
index.html

@@ -147,7 +147,7 @@
     <script type="module" src="assets/js/commonVue.js "></script>
 
 
-    <!-- //引入微信的js,以及写入以下js -->
+    <!-- //引入微信的js,以及写入以下js  (IOS解决方案)-->
     <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
     <script>
         document.addEventListener("WeixinJSBridgeReady", function () {
@@ -155,7 +155,7 @@
         }, false);
     </script>
 
-
+    
     </body>
 
 </html>

+ 1 - 1
news/read.html

@@ -91,7 +91,7 @@
                             <div class="relNewBox container ">
                                 <a class="ustify-content-between d-flex relNewsList" :href="'./read.html?id='+item.categoryid+'&title='+item.title+'&articleid='+item.id+'&isUrlId=1'" v-for="item in articalArrayRelated" :key="item.id">
                                     <div><img width="18" height="18" src="../assets/img/news/arrowT.svg"> {{item.title}} </div>
-                                    <div> {{timeFormatSeconds(item.modifydate?item.modifydate:'')}}</div>
+                                    <div> {{timeFormatSeconds(articalArray[0].createdate)}}</div>
                                 </a>
                             </div>
                         </div>

+ 11 - 2
solution/index.html

@@ -62,9 +62,18 @@
 
         <!--====== SOLUTION TYPE START ======-->
         <section style="background:#F4F8FD" class="solutionType">
-            <div class="container" style="text-align:center">
+            <div class="container pc" style="text-align:center">
                 <div class=" solutionTypeOne" v-for="(item,i) in columnTypes" :class="item.id == requestParams.categoryid ? 'active' : ''"
-                v-on:mouseover="facilityClick(i, item)" >
+                v-on:mouseover="facilityClick(i, item)"  :style="{'width':(1/columnTypes.length*100)+'%' }">
+                    <div style="width:40px;height:40px;;overflow:hidden;margin:0 auto">
+                        <img :src="item.imagePath" alt="">
+                    </div>
+                    <P>{{item.categoryName}}</P>
+                </div>
+            </div>
+            <div class="container mobile" style="text-align:center">
+                <div class=" solutionTypeOne" v-for="(item,i) in columnTypes" :class="item.id == requestParams.categoryid ? 'active' : ''"
+                v-on:mouseover="facilityClick(i, item)"  >
                     <div style="width:40px;height:40px;;overflow:hidden;margin:0 auto">
                         <img :src="item.imagePath" alt="">
                     </div>

+ 19 - 65
test.html

@@ -1,71 +1,25 @@
 <!DOCTYPE html>
-<html>
- 
+<html lang="en">
   <head>
-    <meta charset="utf-8" />
-    <title>快速入门</title>
-    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
-    <script src="https://unpkg.com/vue-router@3.5.2/dist/vue-router.js"></script>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <title>Vue3快速入门</title>
   </head>
- 
   <body>
-    <div id="app">
-      <div class="sidebar">
-
-
-        <video autoPlay preload="auto" controlsList="nodownload" loop="loop" muted playsInline data-wf-ignore="true" data-object-fit="cover" poster="xxx.png">
-            <source src="/assets/img/banner/111.png" type="video/mp4" data-wf-ignore="true" />
-            您的浏览器不支持 video 标签。
-           </video>
-          
-
-
-
-        <!-- <video id="videoPlay" autoplay="autoplay" loop="loop" muted="muted" poster="/assets/img/banner/111.png" style="width: 100%; height: 100%; object-fit: fill;" src="http://file.usky.cn/statics/202402/20240205170431A572.mp4"><source type="video/mp4"></video> -->
-
-        <!-- <video src="assets/video/20240205093233A374.mp4" autoplay type="video/mp4"></video> -->
-
-        <video poster=""  width="900"  preload="auto" autoplay="autoplay" loop="loop" muted="muted" height="auto"><source src="http://file.usky.cn/statics/202402/20240205170431A572.mp4" type="video/mp4"></video>
-
-        <!-- <video poster="" controls="true"  autoplay="autoplay" loop="loop" muted="muted"  width="900" height="auto"><source src="http://file.usky.cn/statics/202401/20240131141241A505.mp4" type="video/mp4"></video> -->
-        
-        
-        
-        <router-link to="/menu1">首页</router-link>
-        <router-link to="/menu2">关于我们</router-link>
-        <router-link to="/menu3">新闻动态</router-link>
-      </div>
-      <div class="content">
-        <router-view></router-view>
-      </div>
-    </div>
+    <div id="vue-app" >
+      <div :style="{'display':'block'}" style="display:none">
+        {{text}}
+      </div</div>
+    <script src="https://cdn.staticfile.org/vue/3.0.5/vue.global.js"></script>
+    <script>
+      const app = Vue.createApp({
+        data() {
+          return {
+            text: "今天就开始使用 Vue.js!",
+          };
+        },
+      });
+      app.mount("#vue-app");
+    </script>
   </body>
- 
-  <script>
-    // 定义组件
-    const Menu1 = { 
-        template: '<div>首页的内容:<p>{{ customContent }}</p></div>', 
-        data () { 
-            return { customContent: "这是首页的自定义内容" } 
-        } 
-    };
-    const Menu2 = { template: '<div>关于我们的内容:<p>{{ customContent }}</p></div>', data () { return { customContent: "这是关于我们的自定义内容" } } };
-    const Menu3 = { template: '<div>新闻动态的内容:<p>{{ customContent }}</p></div>', data () { return { customContent: "这是新闻动态的自定义内容" } } };
- 
-    // 创建路由实例
-    const router = new VueRouter({
-      routes: [
-        { path: '/menu1', component: Menu1 },
-        { path: '/menu2', component: Menu2 },
-        { path: '/menu3', component: Menu3 }
-      ]
-    });
- 
-    // 创建Vue实例,并将路由实例注入
-    new Vue({
-      el: "#app",
-      router
-    });
-  </script>
- 
 </html>