正在显示
9 个修改的文件
包含
104 行增加
和
38 行删除
@@ -12,6 +12,7 @@ namespace app\portal\controller; | @@ -12,6 +12,7 @@ namespace app\portal\controller; | ||
12 | 12 | ||
13 | use cmf\controller\HomeBaseController; | 13 | use cmf\controller\HomeBaseController; |
14 | use app\portal\model\CityCategoryModel; | 14 | use app\portal\model\CityCategoryModel; |
15 | +use app\portal\model\PortalPostModel; | ||
15 | use think\Db; | 16 | use think\Db; |
16 | class IndexController extends HomeBaseController | 17 | class IndexController extends HomeBaseController |
17 | { | 18 | { |
@@ -193,4 +194,13 @@ class IndexController extends HomeBaseController | @@ -193,4 +194,13 @@ class IndexController extends HomeBaseController | ||
193 | } | 194 | } |
194 | return $res; | 195 | return $res; |
195 | } | 196 | } |
197 | + | ||
198 | + //关于我们 | ||
199 | + public function aboutUs(){ | ||
200 | + $res = Db::name('about_us')->where('id',1)->find(); | ||
201 | + $contentModel = new PortalPostModel(); | ||
202 | + $res['content'] = $contentModel->getPostContentAttr($res['content']); | ||
203 | + $this->assign('res',$res); | ||
204 | + return $this->fetch(); | ||
205 | + } | ||
196 | } | 206 | } |
@@ -182,25 +182,6 @@ | @@ -182,25 +182,6 @@ | ||
182 | </div> | 182 | </div> |
183 | </div> | 183 | </div> |
184 | </volist> | 184 | </volist> |
185 | - <volist name="res_stsy" id="vo"> | ||
186 | - <div class="swiper-slide"> | ||
187 | - <div class="Feast_item"> | ||
188 | - <a href="/portal/enjoy/getEnjoyDetail?id={$vo.id}"> | ||
189 | - <div class="Feast_item_img"> | ||
190 | - <img src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | ||
191 | - </div> | ||
192 | - <div class="Feast_item_bottom"> | ||
193 | - <div class="Feast_item_bottom_title"> | ||
194 | - {$vo.post_title} | ||
195 | - </div> | ||
196 | - <div class="Feast_item_bottom_text"> | ||
197 | - {$vo.post_excerpt} | ||
198 | - </div> | ||
199 | - </div> | ||
200 | - </a> | ||
201 | - </div> | ||
202 | - </div> | ||
203 | - </volist> | ||
204 | </div> | 185 | </div> |
205 | <!-- Add Pagination --> | 186 | <!-- Add Pagination --> |
206 | <div class="swiper-pagination"></div> | 187 | <div class="swiper-pagination"></div> |
1 | +<!DOCTYPE html> | ||
2 | +<html lang="en"> | ||
3 | + | ||
4 | +<head> | ||
5 | + <meta charset="UTF-8"> | ||
6 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
7 | + <meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
8 | + <title>关于我们</title> | ||
9 | + <link rel="stylesheet" href="__TMPL__/public/assets/css/show.css"> | ||
10 | + <link rel="stylesheet" href="__TMPL__/public/assets/css/mask.css"> | ||
11 | + <style> | ||
12 | + .show_2 { | ||
13 | + width: 1200px; | ||
14 | + margin: auto; | ||
15 | + margin-bottom:100px; | ||
16 | + } | ||
17 | + .excerpt{ | ||
18 | + font-size: 14px; | ||
19 | + margin: 30px 0 40px 0; | ||
20 | + color: rgba(153, 153, 153, 1); | ||
21 | + line-height: 22px; | ||
22 | + } | ||
23 | + </style> | ||
24 | +</head> | ||
25 | + | ||
26 | +<body> | ||
27 | + <!--头部--> | ||
28 | + <include file="public@header"/> | ||
29 | + <!--彈出框--> | ||
30 | + <div class="mask"> | ||
31 | + | ||
32 | + </div> | ||
33 | + <!--主体内容--> | ||
34 | + <div class="show_2"> | ||
35 | + <!--banner--> | ||
36 | + <div class="show_banner"> | ||
37 | + <notempty name="res.image_url"> | ||
38 | + <img src="{:cmf_get_image_url($res.thumbnail)}" alt=""> | ||
39 | + <else/> | ||
40 | + <img src="__TMPL__/public/assets/starImg/aicon_80.png" alt=""> | ||
41 | + </notempty> | ||
42 | + | ||
43 | + </div> | ||
44 | + <!--main--> | ||
45 | + <div class="show_main"> | ||
46 | + <!-- 头部 --> | ||
47 | + <div class="show_main_Tit clearfix"> | ||
48 | + <h1>{$res.name}</h1> | ||
49 | + </div> | ||
50 | + <div class="excerpt"> | ||
51 | + <p>{$res.excerpt}</p> | ||
52 | + </div> | ||
53 | + <!-- 文字内容 --> | ||
54 | + <div class="show_main_txt"> | ||
55 | + {$res.content} | ||
56 | + </div> | ||
57 | + </div> | ||
58 | + </div> | ||
59 | + <!-- 底部 --> | ||
60 | + <include file="public@footer"/> | ||
61 | +</body> | ||
62 | +<script src="__TMPL__/public/assets/js/jquery-3.2.1.min.js"></script> | ||
63 | +<script src="__TMPL__/public/assets/js/public.js"></script> | ||
64 | +</html> |
@@ -26,8 +26,8 @@ | @@ -26,8 +26,8 @@ | ||
26 | <div class="show_7_con"> | 26 | <div class="show_7_con"> |
27 | <!-- 内容模块1 --> | 27 | <!-- 内容模块1 --> |
28 | <volist name="res['data']" id="vo" offset="0" length="1"> | 28 | <volist name="res['data']" id="vo" offset="0" length="1"> |
29 | - <a href="/portal/region/getNewsDetail?id={$vo.id}"> | ||
30 | - <div class="show_7_con1 clearfix"> | 29 | + <div class="show_7_con1 clearfix"> |
30 | + <a href="/portal/region/getNewsDetail?id={$vo.id}"> | ||
31 | <img src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | 31 | <img src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> |
32 | <div class="show_7_con1_txt"> | 32 | <div class="show_7_con1_txt"> |
33 | <h1>{$vo.post_title}</h1> | 33 | <h1>{$vo.post_title}</h1> |
@@ -36,13 +36,13 @@ | @@ -36,13 +36,13 @@ | ||
36 | </p> | 36 | </p> |
37 | <span>{$vo.create_time|date="Y-m-d",###}</span> | 37 | <span>{$vo.create_time|date="Y-m-d",###}</span> |
38 | </div> | 38 | </div> |
39 | - </div> | ||
40 | - </a> | 39 | + </a> |
40 | + </div> | ||
41 | </volist> | 41 | </volist> |
42 | <!-- 内容模块2 --> | 42 | <!-- 内容模块2 --> |
43 | <volist name="res['data']" id="vo" offset="1" length="2"> | 43 | <volist name="res['data']" id="vo" offset="1" length="2"> |
44 | - <a href="/portal/region/getNewsDetail?id={$vo.id}"> | ||
45 | - <div class="show_7_con2 clearfix"> | 44 | + <div class="show_7_con2 clearfix"> |
45 | + <a href="/portal/region/getNewsDetail?id={$vo.id}"> | ||
46 | <img src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | 46 | <img src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> |
47 | <div class="show_7_con2_txt"> | 47 | <div class="show_7_con2_txt"> |
48 | <h1>{$vo.post_title}</h1> | 48 | <h1>{$vo.post_title}</h1> |
@@ -51,13 +51,13 @@ | @@ -51,13 +51,13 @@ | ||
51 | </p> | 51 | </p> |
52 | <span>{$vo.create_time|date="Y-m-d",###}</span> | 52 | <span>{$vo.create_time|date="Y-m-d",###}</span> |
53 | </div> | 53 | </div> |
54 | - </div> | ||
55 | - </a> | 54 | + </a> |
55 | + </div> | ||
56 | </volist> | 56 | </volist> |
57 | <!-- 内容模块3 --> | 57 | <!-- 内容模块3 --> |
58 | <volist name="res['data']" id="vo" offset="3" length="1"> | 58 | <volist name="res['data']" id="vo" offset="3" length="1"> |
59 | - <a href="/portal/region/getNewsDetail?id={$vo.id}"> | ||
60 | - <div class="show_7_con3 clearfix"> | 59 | + <div class="show_7_con3 clearfix"> |
60 | + <a href="/portal/region/getNewsDetail?id={$vo.id}"> | ||
61 | <div class="show_7_con3_txt"> | 61 | <div class="show_7_con3_txt"> |
62 | <h1>{$vo.post_title}</h1> | 62 | <h1>{$vo.post_title}</h1> |
63 | <p> | 63 | <p> |
@@ -66,14 +66,14 @@ | @@ -66,14 +66,14 @@ | ||
66 | <span>{$vo.create_time|date="Y-m-d",###}</span> | 66 | <span>{$vo.create_time|date="Y-m-d",###}</span> |
67 | </div> | 67 | </div> |
68 | <img src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | 68 | <img src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> |
69 | - </div> | ||
70 | - </a> | 69 | + </a> |
70 | + </div> | ||
71 | </volist> | 71 | </volist> |
72 | 72 | ||
73 | <!-- 内容模块2 --> | 73 | <!-- 内容模块2 --> |
74 | <volist name="res['data']" id="vo" offset="4" length="2"> | 74 | <volist name="res['data']" id="vo" offset="4" length="2"> |
75 | - <a href="/portal/region/getNewsDetail?id={$vo.id}"> | ||
76 | - <div class="show_7_con2 clearfix"> | 75 | + <div class="show_7_con2 clearfix"> |
76 | + <a href="/portal/region/getNewsDetail?id={$vo.id}"> | ||
77 | <img src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | 77 | <img src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> |
78 | <div class="show_7_con2_txt"> | 78 | <div class="show_7_con2_txt"> |
79 | <h1>{$vo.post_title}</h1> | 79 | <h1>{$vo.post_title}</h1> |
@@ -82,8 +82,8 @@ | @@ -82,8 +82,8 @@ | ||
82 | </p> | 82 | </p> |
83 | <span>{$vo.create_time|date="Y-m-d",###}</span> | 83 | <span>{$vo.create_time|date="Y-m-d",###}</span> |
84 | </div> | 84 | </div> |
85 | - </div> | ||
86 | - </a> | 85 | + </a> |
86 | + </div> | ||
87 | </volist> | 87 | </volist> |
88 | <!--分页--> | 88 | <!--分页--> |
89 | <div class="pagination"> | 89 | <div class="pagination"> |
@@ -1294,6 +1294,7 @@ body { | @@ -1294,6 +1294,7 @@ body { | ||
1294 | display: -webkit-box; | 1294 | display: -webkit-box; |
1295 | -webkit-line-clamp: 4; | 1295 | -webkit-line-clamp: 4; |
1296 | -webkit-box-orient: vertical; | 1296 | -webkit-box-orient: vertical; |
1297 | + height: 100px; | ||
1297 | } | 1298 | } |
1298 | 1299 | ||
1299 | .show_7_con1_txt span, | 1300 | .show_7_con1_txt span, |
@@ -1314,7 +1315,7 @@ body { | @@ -1314,7 +1315,7 @@ body { | ||
1314 | 1315 | ||
1315 | .show_7_con2 img { | 1316 | .show_7_con2 img { |
1316 | width: 230px; | 1317 | width: 230px; |
1317 | - height: 100%; | 1318 | + height: 150px; |
1318 | float: left; | 1319 | float: left; |
1319 | } | 1320 | } |
1320 | 1321 | ||
@@ -1335,6 +1336,7 @@ body { | @@ -1335,6 +1336,7 @@ body { | ||
1335 | display: -webkit-box; | 1336 | display: -webkit-box; |
1336 | -webkit-line-clamp: 2; | 1337 | -webkit-line-clamp: 2; |
1337 | -webkit-box-orient: vertical; | 1338 | -webkit-box-orient: vertical; |
1339 | + height: 50px; | ||
1338 | } | 1340 | } |
1339 | 1341 | ||
1340 | .show_7_con3 { | 1342 | .show_7_con3 { |
1 | <link rel="stylesheet" href="__TMPL__/public/assets/css/footer.css"> | 1 | <link rel="stylesheet" href="__TMPL__/public/assets/css/footer.css"> |
2 | - | ||
3 | <!-- 底部 --> | 2 | <!-- 底部 --> |
4 | <div id="footer"> | 3 | <div id="footer"> |
5 | <section> | 4 | <section> |
@@ -72,7 +71,7 @@ | @@ -72,7 +71,7 @@ | ||
72 | </div> | 71 | </div> |
73 | <!-- 下部 --> | 72 | <!-- 下部 --> |
74 | <div class="footer_bot "> | 73 | <div class="footer_bot "> |
75 | - <p>Copyright © 2004-2019 独角星球 版权所有</p> | 74 | + <p id="about_us">Copyright © 2004-2019 独角星球 版权所有</p> |
76 | </div> | 75 | </div> |
77 | </section> | 76 | </section> |
78 | </div> | 77 | </div> |
-
请 注册 或 登录 后发表评论