正在显示
17 个修改的文件
包含
389 行增加
和
25 行删除
@@ -47,7 +47,7 @@ class IndexController extends HomeBaseController | @@ -47,7 +47,7 @@ class IndexController extends HomeBaseController | ||
47 | 47 | ||
48 | //星域秀场->星球影院 | 48 | //星域秀场->星球影院 |
49 | $position = CityCategoryModel::xqyy; | 49 | $position = CityCategoryModel::xqyy; |
50 | - $field = 'id,more'; | 50 | + $field = 'id,more,thumbnail'; |
51 | $res_xqyy = $this->getChildArticle($position,$field,1); | 51 | $res_xqyy = $this->getChildArticle($position,$field,1); |
52 | foreach($res_xqyy as &$value){ | 52 | foreach($res_xqyy as &$value){ |
53 | $video = json_decode($value['more'],true); | 53 | $video = json_decode($value['more'],true); |
@@ -169,6 +169,7 @@ class RegionController extends HomeBaseController | @@ -169,6 +169,7 @@ class RegionController extends HomeBaseController | ||
169 | $starModel = new StarController(); | 169 | $starModel = new StarController(); |
170 | $res = $starModel->getDetail($id,$field); | 170 | $res = $starModel->getDetail($id,$field); |
171 | $this->assign('res',$res); | 171 | $this->assign('res',$res); |
172 | + return $this->fetch(); | ||
172 | } | 173 | } |
173 | 174 | ||
174 | //星球故事更多 | 175 | //星球故事更多 |
@@ -218,6 +219,7 @@ class RegionController extends HomeBaseController | @@ -218,6 +219,7 @@ class RegionController extends HomeBaseController | ||
218 | $starModel = new StarController(); | 219 | $starModel = new StarController(); |
219 | $res = $starModel->getDetail($id,$field); | 220 | $res = $starModel->getDetail($id,$field); |
220 | $this->assign('res',$res); | 221 | $this->assign('res',$res); |
222 | + return $this->fetch(); | ||
221 | } | 223 | } |
222 | 224 | ||
223 | //童趣未来详情 | 225 | //童趣未来详情 |
@@ -231,5 +233,6 @@ class RegionController extends HomeBaseController | @@ -231,5 +233,6 @@ class RegionController extends HomeBaseController | ||
231 | $res['image_url'] = isset($more['photos']) && !empty($more['photos'])?$more['photos'][0]['url']:''; | 233 | $res['image_url'] = isset($more['photos']) && !empty($more['photos'])?$more['photos'][0]['url']:''; |
232 | } | 234 | } |
233 | $this->assign('res',$res); | 235 | $this->assign('res',$res); |
236 | + return $this->fetch(); | ||
234 | } | 237 | } |
235 | } | 238 | } |
@@ -14,6 +14,7 @@ use app\portal\model\CommentModel; | @@ -14,6 +14,7 @@ use app\portal\model\CommentModel; | ||
14 | use cmf\controller\HomeBaseController; | 14 | use cmf\controller\HomeBaseController; |
15 | use app\portal\model\CityCategoryModel; | 15 | use app\portal\model\CityCategoryModel; |
16 | use app\portal\validate\CommentValidate; | 16 | use app\portal\validate\CommentValidate; |
17 | +use app\portal\model\PortalPostModel; | ||
17 | use think\Db; | 18 | use think\Db; |
18 | //星球奇境 | 19 | //星球奇境 |
19 | class StarController extends HomeBaseController | 20 | class StarController extends HomeBaseController |
@@ -229,12 +230,14 @@ class StarController extends HomeBaseController | @@ -229,12 +230,14 @@ class StarController extends HomeBaseController | ||
229 | ->where(['id'=>$id,'delete_time'=>0]) | 230 | ->where(['id'=>$id,'delete_time'=>0]) |
230 | ->field($field) | 231 | ->field($field) |
231 | ->find(); | 232 | ->find(); |
233 | + $contentModel = new PortalPostModel(); | ||
234 | + $res['post_content'] = $contentModel->getPostContentAttr($res['post_content']); | ||
232 | $comment = Db::name('comment') | 235 | $comment = Db::name('comment') |
233 | ->alias('c') | 236 | ->alias('c') |
234 | ->join('user u','c.user_id = u.id','LEFT') | 237 | ->join('user u','c.user_id = u.id','LEFT') |
235 | ->where(['c.status'=>1,'post_id'=>$id]) | 238 | ->where(['c.status'=>1,'post_id'=>$id]) |
236 | ->field('u.user_nickname nickname,u.avatar,c.content,c.create_time') | 239 | ->field('u.user_nickname nickname,u.avatar,c.content,c.create_time') |
237 | - ->select(); | 240 | + ->select()->toArray(); |
238 | $res['comment'] = $comment; | 241 | $res['comment'] = $comment; |
239 | return $res; | 242 | return $res; |
240 | } | 243 | } |
@@ -249,6 +252,7 @@ class StarController extends HomeBaseController | @@ -249,6 +252,7 @@ class StarController extends HomeBaseController | ||
249 | $res['audio'] = isset($more['audio']) && !empty($more['audio'])?$more['audio']:''; | 252 | $res['audio'] = isset($more['audio']) && !empty($more['audio'])?$more['audio']:''; |
250 | } | 253 | } |
251 | $this->assign('res',$res); | 254 | $this->assign('res',$res); |
255 | + return $this->fetch(); | ||
252 | } | 256 | } |
253 | 257 | ||
254 | //用户评论 | 258 | //用户评论 |
@@ -37,7 +37,7 @@ | @@ -37,7 +37,7 @@ | ||
37 | <div class="col-md-9"> | 37 | <div class="col-md-9"> |
38 | <table class="table table-bordered"> | 38 | <table class="table table-bordered"> |
39 | <tr class="city" id="city1"> | 39 | <tr class="city" id="city1"> |
40 | - <th width="100">城市分类<span class="form-required">*</span></th> | 40 | + <th width="150">城市分类<span class="form-required">*</span></th> |
41 | <td> | 41 | <td> |
42 | <select class="form-control check_city" name="post[city_id]" id="input-parent" style="width:400px;"> | 42 | <select class="form-control check_city" name="post[city_id]" id="input-parent" style="width:400px;"> |
43 | <option value="">请选择城市</option> | 43 | <option value="">请选择城市</option> |
@@ -57,7 +57,7 @@ | @@ -57,7 +57,7 @@ | ||
57 | </td> | 57 | </td> |
58 | </tr> | 58 | </tr> |
59 | <tr> | 59 | <tr> |
60 | - <th>视频<span class="form-required">*</span></th> | 60 | + <th>视频</th> |
61 | <td class="form-inline"> | 61 | <td class="form-inline"> |
62 | <input id="file-video" class="form-control" type="text" name="post[more][video]" | 62 | <input id="file-video" class="form-control" type="text" name="post[more][video]" |
63 | value="{$post.more.video|default=''}" placeholder="请上传视频文件" style="width: 200px;"> | 63 | value="{$post.more.video|default=''}" placeholder="请上传视频文件" style="width: 200px;"> |
@@ -69,6 +69,13 @@ | @@ -69,6 +69,13 @@ | ||
69 | </td> | 69 | </td> |
70 | </tr> | 70 | </tr> |
71 | <tr> | 71 | <tr> |
72 | + <th>视频有效链接</th> | ||
73 | + <td> | ||
74 | + <input class="form-control" type="text" name="post[video_url]" | ||
75 | + id="video_url" value="" placeholder="请输入视频有效链接"/> | ||
76 | + </td> | ||
77 | + </tr> | ||
78 | + <tr> | ||
72 | <th>取景<span class="form-required">*</span></th> | 79 | <th>取景<span class="form-required">*</span></th> |
73 | <td> | 80 | <td> |
74 | <input class="form-control" required type="text" name="post[framing]" placeholder="请输入取景地方"/> | 81 | <input class="form-control" required type="text" name="post[framing]" placeholder="请输入取景地方"/> |
@@ -98,7 +105,7 @@ | @@ -98,7 +105,7 @@ | ||
98 | <div class="col-md-3"> | 105 | <div class="col-md-3"> |
99 | <table class="table table-bordered"> | 106 | <table class="table table-bordered"> |
100 | <tr> | 107 | <tr> |
101 | - <th><b>缩略图</b></th> | 108 | + <th><b>视频封面图<span class="form-required">*</span></b></th> |
102 | </tr> | 109 | </tr> |
103 | <tr> | 110 | <tr> |
104 | <td> | 111 | <td> |
@@ -40,7 +40,7 @@ | @@ -40,7 +40,7 @@ | ||
40 | <div class="col-md-9"> | 40 | <div class="col-md-9"> |
41 | <table class="table table-bordered"> | 41 | <table class="table table-bordered"> |
42 | <tr class="city" id="city1"> | 42 | <tr class="city" id="city1"> |
43 | - <th width="100">城市分类<span class="form-required">*</span></th> | 43 | + <th width="150">城市分类<span class="form-required">*</span></th> |
44 | <td> | 44 | <td> |
45 | <select class="form-control check_city" name="post[city_id]" id="input-parent" style="width:400px;"> | 45 | <select class="form-control check_city" name="post[city_id]" id="input-parent" style="width:400px;"> |
46 | <option value="">请选择城市</option> | 46 | <option value="">请选择城市</option> |
@@ -61,7 +61,7 @@ | @@ -61,7 +61,7 @@ | ||
61 | </td> | 61 | </td> |
62 | </tr> | 62 | </tr> |
63 | <tr> | 63 | <tr> |
64 | - <th>视频<span class="form-required">*</span></th> | 64 | + <th>视频</th> |
65 | <td class="form-inline"> | 65 | <td class="form-inline"> |
66 | <input id="file-video" class="form-control" type="text" name="post[more][video]" | 66 | <input id="file-video" class="form-control" type="text" name="post[more][video]" |
67 | value="{$post.more.video|default=''}" placeholder="请上传视频文件" style="width: 200px;"> | 67 | value="{$post.more.video|default=''}" placeholder="请上传视频文件" style="width: 200px;"> |
@@ -73,6 +73,13 @@ | @@ -73,6 +73,13 @@ | ||
73 | </td> | 73 | </td> |
74 | </tr> | 74 | </tr> |
75 | <tr> | 75 | <tr> |
76 | + <th>视频有效链接</th> | ||
77 | + <td> | ||
78 | + <input class="form-control" type="text" name="post[video_url]" | ||
79 | + id="video_url" value="{$post.video_url}" placeholder="请输入视频有效链接"/> | ||
80 | + </td> | ||
81 | + </tr> | ||
82 | + <tr> | ||
76 | <th>取景<span class="form-required">*</span></th> | 83 | <th>取景<span class="form-required">*</span></th> |
77 | <td> | 84 | <td> |
78 | <input class="form-control" required type="text" name="post[framing]" placeholder="请输入取景地方" value="{$post.framing}"/> | 85 | <input class="form-control" required type="text" name="post[framing]" placeholder="请输入取景地方" value="{$post.framing}"/> |
@@ -97,7 +104,7 @@ | @@ -97,7 +104,7 @@ | ||
97 | <div class="col-md-3"> | 104 | <div class="col-md-3"> |
98 | <table class="table table-bordered"> | 105 | <table class="table table-bordered"> |
99 | <tr> | 106 | <tr> |
100 | - <th>缩略图</th> | 107 | + <th>视频封面图<span class="form-required">*</span></th> |
101 | </tr> | 108 | </tr> |
102 | <tr> | 109 | <tr> |
103 | <td> | 110 | <td> |
@@ -6,7 +6,6 @@ | @@ -6,7 +6,6 @@ | ||
6 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge"> | 7 | <meta http-equiv="X-UA-Compatible" content="ie=edge"> |
8 | <title>独角星球</title> | 8 | <title>独角星球</title> |
9 | - <link rel="stylesheet" href="__TMPL__/public/assets/css/header.css"> | ||
10 | <link rel="stylesheet" href="__TMPL__/public/assets/css/index.css"> | 9 | <link rel="stylesheet" href="__TMPL__/public/assets/css/index.css"> |
11 | <link rel="stylesheet" href="__TMPL__/public/assets/js/swiper4/swiper.min.css"> | 10 | <link rel="stylesheet" href="__TMPL__/public/assets/js/swiper4/swiper.min.css"> |
12 | <style> | 11 | <style> |
@@ -14,6 +13,9 @@ | @@ -14,6 +13,9 @@ | ||
14 | width:260px; | 13 | width:260px; |
15 | height:375px; | 14 | height:375px; |
16 | } | 15 | } |
16 | + .star_ming{ | ||
17 | + cursor:pointer; | ||
18 | + } | ||
17 | </style> | 19 | </style> |
18 | </head> | 20 | </head> |
19 | 21 | ||
@@ -563,15 +565,16 @@ | @@ -563,15 +565,16 @@ | ||
563 | <!-- 视频 --> | 565 | <!-- 视频 --> |
564 | <div class="star_video"> | 566 | <div class="star_video"> |
565 | <notempty name="res_xqyy"> | 567 | <notempty name="res_xqyy"> |
566 | - <video id="video" width="100%" height="678" poster="__TMPL__/public/assets/starImg/bicon_34.png" src="{:cmf_get_file_download_url($res_xqyy.video)}"></video> | 568 | + <video id="video" width="100%" height="678" poster="{:cmf_get_image_url($res_xqyy.thumbnail)}" src="{:cmf_get_file_download_url($res_xqyy.video)}"></video> |
567 | <else/> | 569 | <else/> |
568 | <video id="video" width="100%" height="678" poster="__TMPL__/public/assets/starImg/bicon_34.png" src="__TMPL__//public/assets/starImg/video.mp4"></video> | 570 | <video id="video" width="100%" height="678" poster="__TMPL__/public/assets/starImg/bicon_34.png" src="__TMPL__//public/assets/starImg/video.mp4"></video> |
569 | </notempty> | 571 | </notempty> |
570 | <img onclick="bofang()" class="show_in_banner2" src="__TMPL__/public/assets/starImg/aicon_30.png" alt=""> | 572 | <img onclick="bofang()" class="show_in_banner2" src="__TMPL__/public/assets/starImg/aicon_30.png" alt=""> |
571 | </div> | 573 | </div> |
572 | <!-- 人物简介 --> | 574 | <!-- 人物简介 --> |
573 | - <div class="star_personal clearfix"> | 575 | + <div class="star_personal clearfix star_ming"> |
574 | <!-- 左侧头像 --> | 576 | <!-- 左侧头像 --> |
577 | + <input type="hidden" id="star_id" value="{$res_mxft.id}"> | ||
575 | <div class="personal_left"> | 578 | <div class="personal_left"> |
576 | <img src="{:cmf_get_image_url($res_mxft.avatar)}" alt=""> | 579 | <img src="{:cmf_get_image_url($res_mxft.avatar)}" alt=""> |
577 | </div> | 580 | </div> |
@@ -709,6 +712,10 @@ | @@ -709,6 +712,10 @@ | ||
709 | $('.star_happy_box li').click(function() { | 712 | $('.star_happy_box li').click(function() { |
710 | $(this).addClass('active').siblings().removeClass('active'); | 713 | $(this).addClass('active').siblings().removeClass('active'); |
711 | }); | 714 | }); |
715 | + $('.star_ming').click(function() { | ||
716 | + var id = $('#star_id').val(); | ||
717 | + window.location.href = '/portal/region/getStarDetail?id='+id; | ||
718 | + }); | ||
712 | // swiper | 719 | // swiper |
713 | var swiper = new Swiper('.swiper-container', { | 720 | var swiper = new Swiper('.swiper-container', { |
714 | slidesPerView: 4, | 721 | slidesPerView: 4, |
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 | +</head> | ||
11 | + | ||
12 | +<body> | ||
13 | + <!--头部--> | ||
14 | + <include file="public@header"/> | ||
15 | + <!--主体内容--> | ||
16 | + <div class="show_2"> | ||
17 | + <!--banner--> | ||
18 | + <div class="show_banner"> | ||
19 | + <notempty name="res.image_url"> | ||
20 | + <img src="{:cmf_get_image_url($res.image_url)}" alt=""> | ||
21 | + <else/> | ||
22 | + <img src="__TMPL__/public/assets/starImg/aicon_80.png" alt=""> | ||
23 | + </notempty> | ||
24 | + | ||
25 | + </div> | ||
26 | + <!--main--> | ||
27 | + <div class="show_main"> | ||
28 | + <!-- 头部 --> | ||
29 | + <div class="show_main_Tit clearfix"> | ||
30 | + <h1>{$res.post_title}</h1> | ||
31 | + <p>{$res.create_time|date="Y-m-d",###}</p> | ||
32 | + </div> | ||
33 | + <!-- 文字内容 --> | ||
34 | + <div class="show_main_txt"> | ||
35 | + {$res.post_content} | ||
36 | + </div> | ||
37 | + </div> | ||
38 | + <!-- 评论 --> | ||
39 | + <include file="public@comment"/> | ||
40 | + </div> | ||
41 | + <!-- 底部 --> | ||
42 | + <include file="public@footer"/> | ||
43 | +</body> | ||
44 | +<script src="__TMPL__/public/assets/js/jquery-3.2.1.min.js"></script> | ||
45 | +<script src="__TMPL__/public/assets/js/public.js"></script> | ||
46 | +</html> |
@@ -8,7 +8,6 @@ | @@ -8,7 +8,6 @@ | ||
8 | <title>明星访谈更多</title> | 8 | <title>明星访谈更多</title> |
9 | <link rel="stylesheet" href="__TMPL__/public/assets/css/layui.css"> | 9 | <link rel="stylesheet" href="__TMPL__/public/assets/css/layui.css"> |
10 | <link rel="stylesheet" href="__TMPL__/public/assets/css/bootstrap4.0.css"> | 10 | <link rel="stylesheet" href="__TMPL__/public/assets/css/bootstrap4.0.css"> |
11 | - <link rel="stylesheet" href="__TMPL__/public/assets/css/header.css"> | ||
12 | <link rel="stylesheet" href="__TMPL__/public/assets/css/show.css"> | 11 | <link rel="stylesheet" href="__TMPL__/public/assets/css/show.css"> |
13 | </head> | 12 | </head> |
14 | 13 | ||
@@ -33,6 +32,7 @@ | @@ -33,6 +32,7 @@ | ||
33 | </div> | 32 | </div> |
34 | <!-- 内容--1 --> | 33 | <!-- 内容--1 --> |
35 | <notempty name="res['data'][0]"> | 34 | <notempty name="res['data'][0]"> |
35 | + <a href="/portal/region/getStarDetail?id={$res['data'][0]['id']}"> | ||
36 | <div class="show_INMain_con clearfix"> | 36 | <div class="show_INMain_con clearfix"> |
37 | <img class="show_INMain_con1" src="{:cmf_get_image_url($res['data'][0]['avatar'])}" alt=""> | 37 | <img class="show_INMain_con1" src="{:cmf_get_image_url($res['data'][0]['avatar'])}" alt=""> |
38 | <div class="show_INMain_con2 clearfix"> | 38 | <div class="show_INMain_con2 clearfix"> |
@@ -42,6 +42,7 @@ | @@ -42,6 +42,7 @@ | ||
42 | <p>{$res['data'][0]['post_excerpt']}</p> | 42 | <p>{$res['data'][0]['post_excerpt']}</p> |
43 | </div> | 43 | </div> |
44 | </div> | 44 | </div> |
45 | + </a> | ||
45 | <!--<else/>--> | 46 | <!--<else/>--> |
46 | <!--<div class="show_INMain_con clearfix">--> | 47 | <!--<div class="show_INMain_con clearfix">--> |
47 | <!--<img class="show_INMain_con1" src="__TMPL__/public/assets/starImg/aicon_31.png" alt="">--> | 48 | <!--<img class="show_INMain_con1" src="__TMPL__/public/assets/starImg/aicon_31.png" alt="">--> |
@@ -57,6 +58,7 @@ | @@ -57,6 +58,7 @@ | ||
57 | <div class="show_3_list"> | 58 | <div class="show_3_list"> |
58 | <ul class="clearfix"> | 59 | <ul class="clearfix"> |
59 | <notempty name="res['data'][1]"> | 60 | <notempty name="res['data'][1]"> |
61 | + <a href="/portal/region/getStarDetail?id={$res['data'][1]['id']}"> | ||
60 | <li> | 62 | <li> |
61 | <img src="{:cmf_get_image_url($res['data'][1]['avatar'])}" alt=""> | 63 | <img src="{:cmf_get_image_url($res['data'][1]['avatar'])}" alt=""> |
62 | <div class="show_3_list_txt"> | 64 | <div class="show_3_list_txt"> |
@@ -67,8 +69,10 @@ | @@ -67,8 +69,10 @@ | ||
67 | </p> | 69 | </p> |
68 | </div> | 70 | </div> |
69 | </li> | 71 | </li> |
72 | + </a> | ||
70 | </notempty> | 73 | </notempty> |
71 | <notempty name="res['data'][2]"> | 74 | <notempty name="res['data'][2]"> |
75 | + <a href="/portal/region/getStarDetail?id={$res['data'][2]['id']}"> | ||
72 | <li> | 76 | <li> |
73 | <img src="{:cmf_get_image_url($res['data'][2]['avatar'])}" alt=""> | 77 | <img src="{:cmf_get_image_url($res['data'][2]['avatar'])}" alt=""> |
74 | <div class="show_3_list_txt"> | 78 | <div class="show_3_list_txt"> |
@@ -79,8 +83,10 @@ | @@ -79,8 +83,10 @@ | ||
79 | </p> | 83 | </p> |
80 | </div> | 84 | </div> |
81 | </li> | 85 | </li> |
86 | + </a> | ||
82 | </notempty> | 87 | </notempty> |
83 | <notempty name="res['data'][3]"> | 88 | <notempty name="res['data'][3]"> |
89 | + <a href="/portal/region/getStarDetail?id={$res['data'][3]['id']}"> | ||
84 | <li> | 90 | <li> |
85 | <img src="{:cmf_get_image_url($res['data'][3]['avatar'])}" alt=""> | 91 | <img src="{:cmf_get_image_url($res['data'][3]['avatar'])}" alt=""> |
86 | <div class="show_3_list_txt"> | 92 | <div class="show_3_list_txt"> |
@@ -91,11 +97,13 @@ | @@ -91,11 +97,13 @@ | ||
91 | </p> | 97 | </p> |
92 | </div> | 98 | </div> |
93 | </li> | 99 | </li> |
100 | + </a> | ||
94 | </notempty> | 101 | </notempty> |
95 | </ul> | 102 | </ul> |
96 | </div> | 103 | </div> |
97 | <!-- 内容--3 --> | 104 | <!-- 内容--3 --> |
98 | <notempty name="res['data'][4]"> | 105 | <notempty name="res['data'][4]"> |
106 | + <a href="/portal/region/getStarDetail?id={$res['data'][4]['id']}"> | ||
99 | <div class="show_INMain_con show_3_con3 clearfix"> | 107 | <div class="show_INMain_con show_3_con3 clearfix"> |
100 | <img class="show_INMain_con1" src="{:cmf_get_image_url($res['data'][4]['avatar'])}" alt=""> | 108 | <img class="show_INMain_con1" src="{:cmf_get_image_url($res['data'][4]['avatar'])}" alt=""> |
101 | <div class="show_INMain_con2 clearfix"> | 109 | <div class="show_INMain_con2 clearfix"> |
@@ -107,6 +115,7 @@ | @@ -107,6 +115,7 @@ | ||
107 | </p> | 115 | </p> |
108 | </div> | 116 | </div> |
109 | </div> | 117 | </div> |
118 | + </a> | ||
110 | </notempty> | 119 | </notempty> |
111 | 120 | ||
112 | <!--分页--> | 121 | <!--分页--> |
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 | +</head> | ||
11 | + | ||
12 | +<body> | ||
13 | + <include file="public@header"/> | ||
14 | + <!-- 侧边栏 --> | ||
15 | + <div class="sidebar"> | ||
16 | + <!-- 收藏 --> | ||
17 | + <div class="collections"> | ||
18 | + <img src="__TMPL__/public/assets/starImg/bicon_02.png" alt=""> | ||
19 | + </div> | ||
20 | + <!-- 喜欢 --> | ||
21 | + <div class="likes"> | ||
22 | + <img src="__TMPL__/public/assets/starImg/bicon_03.png" alt=""> | ||
23 | + </div> | ||
24 | + <!-- wx分享 --> | ||
25 | + <div class="wx_go"> | ||
26 | + <img src="__TMPL__/public/assets/starImg/bicon_04.png" alt=""> | ||
27 | + <p>168</p> | ||
28 | + </div> | ||
29 | + <!-- wb分享 --> | ||
30 | + <div class="wb_go"> | ||
31 | + <img src="__TMPL__/public/assets/starImg/bicon_05.png" alt=""> | ||
32 | + <p>168</p> | ||
33 | + </div> | ||
34 | + </div> | ||
35 | + <div class="show_6"> | ||
36 | + <!-- 内容 --> | ||
37 | + <div class="show6_con"> | ||
38 | + <!-- 顶部内容 --> | ||
39 | + <div class="show6_con_top1 clearfix"> | ||
40 | + <img src="{:cmf_get_image_url($res.avatar)}" alt=""> | ||
41 | + <div class="show6_con_top2"> | ||
42 | + <h1>{$res.full_name}</h1> | ||
43 | + <h2></h2> | ||
44 | + <span>{$res.create_time|date="Y-m-d",###}</span> | ||
45 | + <p class="show6_con_top3"> | ||
46 | + {$res.post_excerpt} | ||
47 | + </p> | ||
48 | + </div> | ||
49 | + </div> | ||
50 | + <!-- 其他内容 --> | ||
51 | + <div class="show6_con2"> | ||
52 | + {$res.post_content} | ||
53 | + </div> | ||
54 | + </div> | ||
55 | + <!-- 评论 --> | ||
56 | + <include file="public@comment"/> | ||
57 | + </div> | ||
58 | + <!-- 底部 --> | ||
59 | + <include file="public@footer"/> | ||
60 | + <script src="__TMPL__/public/assets/js/jquery-3.2.1.min.js"></script> | ||
61 | + <script src="__TMPL__/public/assets/js/public.js"></script> | ||
62 | +</body> | ||
63 | + | ||
64 | +</html> |
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 | +</head> | ||
11 | + | ||
12 | +<body> | ||
13 | + <include file="public@header"/> | ||
14 | + <!-- 侧边栏 --> | ||
15 | + <div class="sidebar"> | ||
16 | + <!-- 收藏 --> | ||
17 | + <div class="collections"> | ||
18 | + <img src="__TMPL__/public/assets/starImg/bicon_02.png" alt=""> | ||
19 | + </div> | ||
20 | + <!-- 喜欢 --> | ||
21 | + <div class="likes"> | ||
22 | + <img src="__TMPL__/public/assets/starImg/bicon_03.png" alt=""> | ||
23 | + </div> | ||
24 | + <!-- wx分享 --> | ||
25 | + <div class="wx_go"> | ||
26 | + <img src="__TMPL__/public/assets/starImg/bicon_04.png" alt=""> | ||
27 | + <p>168</p> | ||
28 | + </div> | ||
29 | + <!-- wb分享 --> | ||
30 | + <div class="wb_go"> | ||
31 | + <img src="__TMPL__/public/assets/starImg/bicon_05.png" alt=""> | ||
32 | + <p>168</p> | ||
33 | + </div> | ||
34 | + </div> | ||
35 | + <div class="show_6"> | ||
36 | + <!-- 内容 --> | ||
37 | + <div class="show6_con"> | ||
38 | + <!-- 顶部内容 --> | ||
39 | + <div class="show6_con_top1 clearfix"> | ||
40 | + <img src="{:cmf_get_image_url($res.avatar)}" alt=""> | ||
41 | + <div class="show6_con_top2"> | ||
42 | + <h1>{$res.full_name}</h1> | ||
43 | + <h2>{$res.position} {$res.trade}</h2> | ||
44 | + <span>{$res.create_time|date="Y-m-d",###}</span> | ||
45 | + <p class="show6_con_top3"> | ||
46 | + {$res.post_excerpt} | ||
47 | + </p> | ||
48 | + </div> | ||
49 | + </div> | ||
50 | + <!-- 其他内容 --> | ||
51 | + <div class="show6_con2"> | ||
52 | + {$res.post_content} | ||
53 | + </div> | ||
54 | + </div> | ||
55 | + <!-- 评论 --> | ||
56 | + <include file="public@comment"/> | ||
57 | + </div> | ||
58 | + <include file="public@footer"/> | ||
59 | + <script src="__TMPL__/public/assets/js/jquery-3.2.1.min.js"></script> | ||
60 | + <script src="__TMPL__/public/assets/js/public.js"></script> | ||
61 | +</body> | ||
62 | + | ||
63 | +</html> |
@@ -6,7 +6,6 @@ | @@ -6,7 +6,6 @@ | ||
6 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge"> | 7 | <meta http-equiv="X-UA-Compatible" content="ie=edge"> |
8 | <title>星域秀场</title> | 8 | <title>星域秀场</title> |
9 | - <link rel="stylesheet" href="__TMPL__/public/assets/css/header.css"> | ||
10 | <link rel="stylesheet" href="__TMPL__/public/assets/js/swiper4/swiper.min.css"> | 9 | <link rel="stylesheet" href="__TMPL__/public/assets/js/swiper4/swiper.min.css"> |
11 | <link rel="stylesheet" href="__TMPL__/public/assets/css/show.css"> | 10 | <link rel="stylesheet" href="__TMPL__/public/assets/css/show.css"> |
12 | <style> | 11 | <style> |
@@ -50,7 +49,7 @@ | @@ -50,7 +49,7 @@ | ||
50 | </div> | 49 | </div> |
51 | <!-- 内容 --> | 50 | <!-- 内容 --> |
52 | <div class="show_INMain_con clearfix"> | 51 | <div class="show_INMain_con clearfix"> |
53 | - <a href="mingxing_detail.html"> | 52 | + <a href="/portal/region/getStarDetail?id={$res_mxft.id}"> |
54 | <img class="show_INMain_con1" src="{:cmf_get_image_url($res_mxft.avatar)}" alt=""> | 53 | <img class="show_INMain_con1" src="{:cmf_get_image_url($res_mxft.avatar)}" alt=""> |
55 | <div class="show_INMain_con2 clearfix"> | 54 | <div class="show_INMain_con2 clearfix"> |
56 | <img class="show_INMain_con3" src="__TMPL__/public/assets/starImg/aicon_32.png" alt=""> | 55 | <img class="show_INMain_con3" src="__TMPL__/public/assets/starImg/aicon_32.png" alt=""> |
@@ -80,6 +79,7 @@ | @@ -80,6 +79,7 @@ | ||
80 | <div class="swiper-wrapper"> | 79 | <div class="swiper-wrapper"> |
81 | <volist name="res_xqgs" id="vo"> | 80 | <volist name="res_xqgs" id="vo"> |
82 | <div class="swiper-slide"> | 81 | <div class="swiper-slide"> |
82 | + <a href="/portal/star/getStoryDetail?id={$vo.id}"> | ||
83 | <div class="show_index_con2Txt clearfix"> | 83 | <div class="show_index_con2Txt clearfix"> |
84 | <!-- 左侧图片 --> | 84 | <!-- 左侧图片 --> |
85 | <img class="show_indexImg1" src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | 85 | <img class="show_indexImg1" src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> |
@@ -92,6 +92,7 @@ | @@ -92,6 +92,7 @@ | ||
92 | <img src="__TMPL__/public/assets/starImg/aicon_15.png" alt=""> | 92 | <img src="__TMPL__/public/assets/starImg/aicon_15.png" alt=""> |
93 | </div> | 93 | </div> |
94 | </div> | 94 | </div> |
95 | + </a> | ||
95 | </div> | 96 | </div> |
96 | </volist> | 97 | </volist> |
97 | </div> | 98 | </div> |
@@ -192,7 +193,7 @@ | @@ -192,7 +193,7 @@ | ||
192 | <ul class="clearfix"> | 193 | <ul class="clearfix"> |
193 | <volist name="res_djrz" id="vo"> | 194 | <volist name="res_djrz" id="vo"> |
194 | <li> | 195 | <li> |
195 | - <a href="dujiao_detail.html"> | 196 | + <a href="/portal/region/getNoteDetail?id={$vo.id}"> |
196 | <div class="show_INMain_con5_1"> | 197 | <div class="show_INMain_con5_1"> |
197 | <img src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | 198 | <img src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> |
198 | </div> | 199 | </div> |
@@ -224,7 +225,7 @@ | @@ -224,7 +225,7 @@ | ||
224 | <ul class="clearfix"> | 225 | <ul class="clearfix"> |
225 | <volist name="res_tqwl" id="vo"> | 226 | <volist name="res_tqwl" id="vo"> |
226 | <li> | 227 | <li> |
227 | - <a href="show_2.html"> | 228 | + <a href="/portal/region/getFutureDetail?id={$vo.id}"> |
228 | <img src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | 229 | <img src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> |
229 | <div class="show_INMain_con6_1"> | 230 | <div class="show_INMain_con6_1"> |
230 | <h1>{$vo.post_title}</h1> | 231 | <h1>{$vo.post_title}</h1> |
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/js/swiper4/swiper.min.css"> | ||
10 | + <link rel="stylesheet" href="__TMPL__/public/assets/css/show.css"> | ||
11 | +</head> | ||
12 | + | ||
13 | +<body> | ||
14 | + <include file="public@header"/> | ||
15 | + <!-- 侧边栏 --> | ||
16 | + <div class="sidebar"> | ||
17 | + <!-- 收藏 --> | ||
18 | + <div class="collections"> | ||
19 | + <img src="__TMPL__/public/assets/starImg/bicon_02.png" alt=""> | ||
20 | + </div> | ||
21 | + <!-- 喜欢 --> | ||
22 | + <div class="likes"> | ||
23 | + <img src="__TMPL__/public/assets/starImg/bicon_03.png" alt=""> | ||
24 | + </div> | ||
25 | + <!-- wx分享 --> | ||
26 | + <div class="wx_go"> | ||
27 | + <img src="__TMPL__/public/assets/starImg/bicon_04.png" alt=""> | ||
28 | + <p>168</p> | ||
29 | + </div> | ||
30 | + <!-- wb分享 --> | ||
31 | + <div class="wb_go"> | ||
32 | + <img src="__TMPL__/public/assets/starImg/bicon_05.png" alt=""> | ||
33 | + <p>168</p> | ||
34 | + </div> | ||
35 | + </div> | ||
36 | + <div class="show_5"> | ||
37 | + <!-- 星球故事盒子 --> | ||
38 | + <div class="show_InMain_box show_InMain_box2"> | ||
39 | + <!-- 顶部标题 --> | ||
40 | + <!--<div class="show_INMain_tit clearfix">--> | ||
41 | + <!--<div class="show_IN1 clearfix">--> | ||
42 | + <!--<img src="__TMPL__/public/assets/starImg/aicon_03.png" alt="">--> | ||
43 | + <!--<p>星球<span>故事</span></p>--> | ||
44 | + <!--<h2>Planet Story</h2>--> | ||
45 | + <!--</div>--> | ||
46 | + <!--<!– 更多 –>--> | ||
47 | + <!--<div class="show_IN2">--> | ||
48 | + <!--<a href=""> MORE+ </a>--> | ||
49 | + <!--</div>--> | ||
50 | + <!--</div>--> | ||
51 | + <!-- 内容 --> | ||
52 | + <div class="show_INMain_con2_2 swiper-container2 show_5_swiper"> | ||
53 | + <div class="swiper-wrapper"> | ||
54 | + <div class="swiper-slide"> | ||
55 | + <div class="show_index_con2Txt clearfix"> | ||
56 | + <!-- 左侧图片 --> | ||
57 | + <img class="show_indexImg1" src="{:cmf_get_image_url($res.thumbnail)}" alt=""> | ||
58 | + <!-- 文字 --> | ||
59 | + <div class="show_index_con2Txt2"> | ||
60 | + {$res.post_excerpt} | ||
61 | + </div> | ||
62 | + <!-- 进度条 --> | ||
63 | + <div class="show_index_progress"> | ||
64 | + <img src="__TMPL__/public/assets/starImg/aicon_15.png" alt=""> | ||
65 | + </div> | ||
66 | + </div> | ||
67 | + </div> | ||
68 | + </div> | ||
69 | + </div> | ||
70 | + </div> | ||
71 | + <!-- 内容 --> | ||
72 | + <div class="show_5_con"> | ||
73 | + <!-- 文字 --> | ||
74 | + {$res.post_content} | ||
75 | + </div> | ||
76 | + <!-- 评论 --> | ||
77 | + <include file="public@comment"/> | ||
78 | + </div> | ||
79 | + | ||
80 | + <!-- 底部 --> | ||
81 | + <include file="public@footer"/> | ||
82 | + <script src="__TMPL__/public/assets/js/jquery-3.2.1.min.js"></script> | ||
83 | + <script src="__TMPL__/public/assets/js/swiper4/swiper.min.js"></script> | ||
84 | + <script src="__TMPL__/public/assets/js/public.js"></script> | ||
85 | + <script> | ||
86 | + // 星球故事swiper | ||
87 | + var swiper = new Swiper('.swiper-container2', { | ||
88 | + slidesPerView: 1, | ||
89 | + spaceBetween: 30, | ||
90 | + // loop: true, | ||
91 | + pagination: { | ||
92 | + el: '.swiper-pagination', | ||
93 | + clickable: true, | ||
94 | + }, | ||
95 | + }); | ||
96 | + </script> | ||
97 | +</body> | ||
98 | + | ||
99 | +</html> |
@@ -792,7 +792,9 @@ body { | @@ -792,7 +792,9 @@ body { | ||
792 | height: 140px; | 792 | height: 140px; |
793 | border-radius: 50%; | 793 | border-radius: 50%; |
794 | } | 794 | } |
795 | - | 795 | +.show6_con2{ |
796 | + margin-top:50px; | ||
797 | +} | ||
796 | .show_3_list_txt h1 { | 798 | .show_3_list_txt h1 { |
797 | text-align: center; | 799 | text-align: center; |
798 | font-size: 32px; | 800 | font-size: 32px; |
@@ -912,7 +914,7 @@ body { | @@ -912,7 +914,7 @@ body { | ||
912 | } | 914 | } |
913 | 915 | ||
914 | .show_5_con img { | 916 | .show_5_con img { |
915 | - width: 100%; | 917 | + max-width:1100px; |
916 | margin-top: 20px; | 918 | margin-top: 20px; |
917 | } | 919 | } |
918 | 920 | ||
@@ -929,10 +931,20 @@ body { | @@ -929,10 +931,20 @@ body { | ||
929 | 931 | ||
930 | .show6_con_top1 img { | 932 | .show6_con_top1 img { |
931 | width: 330px; | 933 | width: 330px; |
934 | + height:330px; | ||
932 | float: left; | 935 | float: left; |
933 | border-radius: 50%; | 936 | border-radius: 50%; |
934 | } | 937 | } |
935 | 938 | ||
939 | +.show_main_txt img{ | ||
940 | + max-width:1100px | ||
941 | +} | ||
942 | + | ||
943 | +.show6_con2 img{ | ||
944 | + max-width:1100px | ||
945 | +} | ||
946 | + | ||
947 | + | ||
936 | .show6_con_top2 { | 948 | .show6_con_top2 { |
937 | width: 726px; | 949 | width: 726px; |
938 | float: left; | 950 | float: left; |
1 | $(function(){ | 1 | $(function(){ |
2 | + var host = 'http://'+window.location.host; | ||
2 | // 点击收藏与爱心 | 3 | // 点击收藏与爱心 |
3 | $('.collections').click(function() { | 4 | $('.collections').click(function() { |
4 | - if ($(this).children('img').attr('src') == "../starImg/bicon_02.png") { | ||
5 | - $(this).children('img').attr('src', "../starImg/bicon_15.png") | 5 | + if ($(this).children('img').attr('src') == host+'/themes/simpleboot3/public/assets/starImg/bicon_02.png') { |
6 | + $(this).children('img').attr('src', host+'/themes/simpleboot3/public/assets/starImg/bicon_15.png'); | ||
6 | } else { | 7 | } else { |
7 | - $(this).children('img').attr('src', "../starImg/bicon_02.png") | 8 | + $(this).children('img').attr('src', host+'/themes/simpleboot3/public/assets/starImg/bicon_02.png'); |
8 | } | 9 | } |
9 | }); | 10 | }); |
10 | $('.likes').click(function() { | 11 | $('.likes').click(function() { |
11 | - if ($(this).children('img').attr('src') == "../starImg/bicon_03.png") { | ||
12 | - $(this).children('img').attr('src', "../starImg/bicon_16.png") | 12 | + if ($(this).children('img').attr('src') == host+'/themes/simpleboot3/public/assets/starImg/bicon_03.png') { |
13 | + $(this).children('img').attr('src', host+'/themes/simpleboot3/public/assets/starImg/bicon_16.png'); | ||
13 | } else { | 14 | } else { |
14 | - $(this).children('img').attr('src', "../starImg/bicon_03.png") | 15 | + $(this).children('img').attr('src', host+'/themes/simpleboot3/public/assets/starImg/bicon_03.png'); |
15 | } | 16 | } |
16 | }); | 17 | }); |
17 | // 评论判断长度显示与隐藏 | 18 | // 评论判断长度显示与隐藏 |
1 | +<div class="show_main2"> | ||
2 | + <form action=""> | ||
3 | + <textarea placeholder="说点什么吧" maxlength="100"></textarea> | ||
4 | + <!-- 评论底部 --> | ||
5 | + <div class="show_main2_bottom clearfix"> | ||
6 | + <p>字数限400字符内</p> | ||
7 | + <button type="submit" class="show_main2_btn">添加评论</button> | ||
8 | + </div> | ||
9 | + </form> | ||
10 | + <!-- 评论展示 --> | ||
11 | + <div class="show_main2_show "> | ||
12 | + <ul class="show_main2_show_H"> | ||
13 | + <li class="clearfix show_2_pinL"> | ||
14 | + <img class="show_comments_icon" src="__TMPL__/public/assets/starImg//aicon_82.png" alt=""> | ||
15 | + <div class="show_comments_con"> | ||
16 | + <h1>身份三</h1> | ||
17 | + <h2>网络世界便是如此,每年都有许多刷屏的事件发生。当旅游成为老百姓的生活方式以后,刷屏事件自是免不了。不过,此次青岛大虾事件有点特别就是行内与公众一起刷屏,甚至业内比公众还要热闹。</h2> | ||
18 | + <p>2017-10-08</p> | ||
19 | + </div> | ||
20 | + </li> | ||
21 | + <li class="clearfix show_2_pinL"> | ||
22 | + <img class="show_comments_icon" src="__TMPL__/public/assets/starImg//aicon_82.png" alt=""> | ||
23 | + <div class="show_comments_con"> | ||
24 | + <h1>身份三</h1> | ||
25 | + <h2>网络世界便是如此,每年都有许多刷屏的事件发生。当旅游成为老百姓的生活方式以后,刷屏事件自是免不了。不过,此次青岛大虾事件有点特别就是行内与公众一起刷屏,甚至业内比公众还要热闹。</h2> | ||
26 | + <p>2017-10-08</p> | ||
27 | + </div> | ||
28 | + </li> | ||
29 | + <li class="clearfix show_2_pinL"> | ||
30 | + <img class="show_comments_icon" src="__TMPL__/public/assets/starImg//aicon_82.png" alt=""> | ||
31 | + <div class="show_comments_con"> | ||
32 | + <h1>身份三</h1> | ||
33 | + <h2>网络世界便是如此,每年都有许多刷屏的事件发生。当旅游成为老百姓的生活方式以后,刷屏事件自是免不了。不过,此次青岛大虾事件有点特别就是行内与公众一起刷屏,甚至业内比公众还要热闹。</h2> | ||
34 | + <p>2017-10-08</p> | ||
35 | + </div> | ||
36 | + </li> | ||
37 | + </ul> | ||
38 | + <p class="show_main_more">查看更多评论</p> | ||
39 | + </div> | ||
40 | +</div> |
-
请 注册 或 登录 后发表评论