作者 zhl

'view'

@@ -99,7 +99,16 @@ class Index extends Base @@ -99,7 +99,16 @@ class Index extends Base
99 Fun::abort(); 99 Fun::abort();
100 } 100 }
101 101
102 - return view('v2/page',$page); 102 + $web = [
  103 + 'title' => $page['page_title'],
  104 + 'keywords' => $page['page_seo_keywords'],
  105 + 'description' => $page['page_seo_description'],
  106 + ];
  107 +
  108 + return view('v2/page', [
  109 + 'data' => $page,
  110 + 'web' => $web
  111 + ]);
103 112
104 } 113 }
105 114
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 <!-- sys_sub_head --> 5 <!-- sys_sub_head -->
6 <section class="sys_sub_head"> 6 <section class="sys_sub_head">
7 <div class="page-title-bar"> 7 <div class="page-title-bar">
8 - <h2 class="title">{{$page_title}}</h2> 8 + <h2 class="title">{{$data['page_title']}}</h2>
9 </div> 9 </div>
10 </section> 10 </section>
11 11
@@ -13,10 +13,10 @@ @@ -13,10 +13,10 @@
13 <section class="web_main page_main"> 13 <section class="web_main page_main">
14 <div class="layout"> 14 <div class="layout">
15 <div class="blog-item"> 15 <div class="blog-item">
16 - <h2 class="item-title blog-title">{{$page_title}}</h2> 16 + {{--<h2 class="item-title blog-title">{{$data['page_title']}}</h2>--}}
17 17
18 <article class="blog-article"> 18 <article class="blog-article">
19 - {!! $page_body !!} 19 + {!! $data['page_body'] !!}
20 </article> 20 </article>
21 21
22 </div> 22 </div>