qiushang 2 hafta önce
ebeveyn
işleme
ea5a5aef11

+ 33 - 29
resources/views/home/http/help.blade.php

@@ -6,7 +6,7 @@
     @include('home.http.common.head')
     <link href="/static/ebook/ebook.css" rel="stylesheet" type="text/css">
     <style>
-        .head{
+        .head {
             background: none;
         }
     </style>
@@ -28,26 +28,30 @@
                     <div class="name">常见问题-使用技巧</div>
                 </div>
                 @foreach ($data as $item)
-                    @if($item['product'] ->id !== 12 && $item['product'] ->id !== 13 && $item['product'] ->id !== 17)
-                    <div class="flex-between qa-item">
-                        <div class="qa-soft flex-start">
-                            <img src="{{ $item['product']->logo }}" class="qa-soft-img" />
-                            <div>
-                                <div class="qa-title">{{ $item['category']->name }}</div>
-                                <a href="{{ '/news/category/' . $item['category']->mid }}">
-                                    <div class="qa-more">查看全部</div>
-                                </a>
-                            </div>
-                        </div>
-                        <div class="qa-list flex-between">
-                            @foreach ($item['news'] as $key => $row)
-                                <div class="question-item overflow">
-                                    <a
-                                        href="{{ '/news/detail/' . $row->mid }}">{{ $key + 1 }}、{{ $row->title }}</a>
+                    @if (
+                        $item['product']->id !== 12 &&
+                            $item['product']->id !== 13 &&
+                            $item['product']->id !== 17 &&
+                            $item['product']->id !== 18)
+                        <div class="flex-between qa-item">
+                            <div class="qa-soft flex-start">
+                                <img src="{{ $item['product']->logo }}" class="qa-soft-img" />
+                                <div>
+                                    <div class="qa-title">{{ $item['category']->name }}</div>
+                                    <a href="{{ '/news/category/' . $item['category']->mid }}">
+                                        <div class="qa-more">查看全部</div>
+                                    </a>
                                 </div>
-                            @endforeach
+                            </div>
+                            <div class="qa-list flex-between">
+                                @foreach ($item['news'] as $key => $row)
+                                    <div class="question-item overflow">
+                                        <a
+                                            href="{{ '/news/detail/' . $row->mid }}">{{ $key + 1 }}、{{ $row->title }}</a>
+                                    </div>
+                                @endforeach
+                            </div>
                         </div>
-                    </div>
                     @endif
                 @endforeach
             </div>
@@ -55,16 +59,16 @@
     </div>
 
     @include('home.http.common.footer')
-<script>
-    new Swiper('.swiper-container', {
-        loop: true,
-        // 如果需要分页器
-        navigation: {
-            nextEl: ".swiper-button-next",
-            prevEl: ".swiper-button-prev",
-        }
-    })
-</script>
+    <script>
+        new Swiper('.swiper-container', {
+            loop: true,
+            // 如果需要分页器
+            navigation: {
+                nextEl: ".swiper-button-next",
+                prevEl: ".swiper-button-prev",
+            }
+        })
+    </script>
 </body>
 
 </html>

+ 33 - 29
resources/views/home/http/help2.blade.php

@@ -6,7 +6,7 @@
     @include('home.http.common.head')
     <link href="/static/ebook/ebook.css" rel="stylesheet" type="text/css">
     <style>
-        .head{
+        .head {
             background: none;
         }
     </style>
@@ -28,26 +28,30 @@
                     <div class="name">常见问题-使用技巧</div>
                 </div>
                 @foreach ($data as $item)
-                    @if($item['product'] ->id == 12 || $item['product'] ->id == 13 || $item['product'] ->id == 17)
-                    <div class="flex-between qa-item">
-                        <div class="qa-soft flex-start">
-                            <img src="{{ $item['product']->logo }}" class="qa-soft-img" />
-                            <div>
-                                <div class="qa-title">{{ $item['category']->name }}</div>
-                                <a href="{{ '/news/category/' . $item['category']->mid }}">
-                                    <div class="qa-more">查看全部</div>
-                                </a>
-                            </div>
-                        </div>
-                        <div class="qa-list flex-between">
-                            @foreach ($item['news'] as $key => $row)
-                                <div class="question-item overflow">
-                                    <a
-                                        href="{{ '/news/detail/' . $row->mid }}">{{ $key + 1 }}、{{ $row->title }}</a>
+                    @if (
+                        $item['product']->id == 12 ||
+                            $item['product']->id == 13 ||
+                            $item['product']->id == 17 ||
+                            $item['product']->id == 18)
+                        <div class="flex-between qa-item">
+                            <div class="qa-soft flex-start">
+                                <img src="{{ $item['product']->logo }}" class="qa-soft-img" />
+                                <div>
+                                    <div class="qa-title">{{ $item['category']->name }}</div>
+                                    <a href="{{ '/news/category/' . $item['category']->mid }}">
+                                        <div class="qa-more">查看全部</div>
+                                    </a>
                                 </div>
-                            @endforeach
+                            </div>
+                            <div class="qa-list flex-between">
+                                @foreach ($item['news'] as $key => $row)
+                                    <div class="question-item overflow">
+                                        <a
+                                            href="{{ '/news/detail/' . $row->mid }}">{{ $key + 1 }}、{{ $row->title }}</a>
+                                    </div>
+                                @endforeach
+                            </div>
                         </div>
-                    </div>
                     @endif
                 @endforeach
             </div>
@@ -56,16 +60,16 @@
 
     @include('home.http.common.footer')
 
-<script>
-    new Swiper('.swiper-container', {
-        loop: true,
-        // 如果需要分页器
-        navigation: {
-            nextEl: ".swiper-button-next",
-            prevEl: ".swiper-button-prev",
-        }
-    })
-</script>
+    <script>
+        new Swiper('.swiper-container', {
+            loop: true,
+            // 如果需要分页器
+            navigation: {
+                nextEl: ".swiper-button-next",
+                prevEl: ".swiper-button-prev",
+            }
+        })
+    </script>
 </body>
 
 </html>