正在显示
14 个修改的文件
包含
177 行增加
和
107 行删除
@@ -147,8 +147,8 @@ class AdminStarStoryController extends AdminBaseController | @@ -147,8 +147,8 @@ class AdminStarStoryController extends AdminBaseController | ||
147 | array_push($data['post']['more']['files'], ["url" => $fileUrl, "name" => $data['file_names'][$key]]); | 147 | array_push($data['post']['more']['files'], ["url" => $fileUrl, "name" => $data['file_names'][$key]]); |
148 | } | 148 | } |
149 | } | 149 | } |
150 | - | ||
151 | - | 150 | + $contentModel = new PortalPostModel(); |
151 | + $data['post']['excerpt'] = $contentModel->setPostContentAttr($data['post']['excerpt']); | ||
152 | $portalPostModel->adminAddArticle($data['post'], $data['post']['categories']); | 152 | $portalPostModel->adminAddArticle($data['post'], $data['post']['categories']); |
153 | 153 | ||
154 | $data['post']['id'] = $portalPostModel->id; | 154 | $data['post']['id'] = $portalPostModel->id; |
@@ -180,6 +180,9 @@ class AdminStarStoryController extends AdminBaseController | @@ -180,6 +180,9 @@ class AdminStarStoryController extends AdminBaseController | ||
180 | $postCategories = $post->categories()->alias('a')->column('a.name', 'a.id'); | 180 | $postCategories = $post->categories()->alias('a')->column('a.name', 'a.id'); |
181 | $postCategoryIds = implode(',', array_keys($postCategories)); | 181 | $postCategoryIds = implode(',', array_keys($postCategories)); |
182 | 182 | ||
183 | + $contentModel = new PortalPostModel(); | ||
184 | + $post['excerpt'] = $contentModel->getPostContentAttr($post['excerpt']); | ||
185 | + | ||
183 | $themeModel = new ThemeModel(); | 186 | $themeModel = new ThemeModel(); |
184 | $articleThemeFiles = $themeModel->getActionThemeFiles('portal/Article/index'); | 187 | $articleThemeFiles = $themeModel->getActionThemeFiles('portal/Article/index'); |
185 | $this->assign('article_theme_files', $articleThemeFiles); | 188 | $this->assign('article_theme_files', $articleThemeFiles); |
@@ -232,7 +235,8 @@ class AdminStarStoryController extends AdminBaseController | @@ -232,7 +235,8 @@ class AdminStarStoryController extends AdminBaseController | ||
232 | array_push($data['post']['more']['files'], ["url" => $fileUrl, "name" => $data['file_names'][$key]]); | 235 | array_push($data['post']['more']['files'], ["url" => $fileUrl, "name" => $data['file_names'][$key]]); |
233 | } | 236 | } |
234 | } | 237 | } |
235 | - | 238 | + $contentModel = new PortalPostModel(); |
239 | + $data['post']['excerpt'] = $contentModel->setPostContentAttr($data['post']['excerpt']); | ||
236 | $portalPostModel->adminEditArticle($data['post'], $data['post']['categories']); | 240 | $portalPostModel->adminEditArticle($data['post'], $data['post']['categories']); |
237 | 241 | ||
238 | $hookParam = [ | 242 | $hookParam = [ |
@@ -28,6 +28,10 @@ class EnjoyController extends HomeBaseController | @@ -28,6 +28,10 @@ class EnjoyController extends HomeBaseController | ||
28 | $city_name = $this->getCityName(); | 28 | $city_name = $this->getCityName(); |
29 | $this->assign('city_name',$city_name); | 29 | $this->assign('city_name',$city_name); |
30 | 30 | ||
31 | + //城市名字 | ||
32 | + $star = new StarController(); | ||
33 | + $cityName = $star->getCityName($city_id); | ||
34 | + $this->assign('cityName',$cityName); | ||
31 | //亲临现场 | 35 | //亲临现场 |
32 | $position['category_id'] = CityCategoryModel::qlxc; | 36 | $position['category_id'] = CityCategoryModel::qlxc; |
33 | $field = 'id,thumbnail,post_title,post_excerpt'; | 37 | $field = 'id,thumbnail,post_title,post_excerpt'; |
@@ -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 | //星域秀场 | 17 | //星域秀场 |
17 | class RegionController extends HomeBaseController | 18 | class RegionController extends HomeBaseController |
@@ -43,11 +44,13 @@ class RegionController extends HomeBaseController | @@ -43,11 +44,13 @@ class RegionController extends HomeBaseController | ||
43 | 44 | ||
44 | //星球故事 | 45 | //星球故事 |
45 | $position['category_id'] = CityCategoryModel::xqgs; | 46 | $position['category_id'] = CityCategoryModel::xqgs; |
46 | - $field = 'id,thumbnail,post_excerpt,more'; | 47 | + $field = 'id,thumbnail,post_excerpt,more,excerpt'; |
47 | $res_xqgs = $this->getChildArticle($position,$field,$this->index_limit); | 48 | $res_xqgs = $this->getChildArticle($position,$field,$this->index_limit); |
48 | foreach($res_xqgs as &$value){ | 49 | foreach($res_xqgs as &$value){ |
49 | $more = json_decode($value['more'],true); | 50 | $more = json_decode($value['more'],true); |
50 | $value['audio'] = isset($more['audio']) && !empty($more['audio'])?$more['audio']:''; | 51 | $value['audio'] = isset($more['audio']) && !empty($more['audio'])?$more['audio']:''; |
52 | + $contentModel = new PortalPostModel(); | ||
53 | + $value['excerpt'] = $contentModel->getPostContentAttr($value['excerpt']); | ||
51 | } | 54 | } |
52 | $this->assign('res_xqgs',$res_xqgs); | 55 | $this->assign('res_xqgs',$res_xqgs); |
53 | 56 | ||
@@ -138,6 +141,11 @@ class RegionController extends HomeBaseController | @@ -138,6 +141,11 @@ class RegionController extends HomeBaseController | ||
138 | //星球影院更多(按照城市查询) | 141 | //星球影院更多(按照城市查询) |
139 | public function getMoreVideo(){ | 142 | public function getMoreVideo(){ |
140 | $city_id = $this->request->param('city_id',0,'intval'); | 143 | $city_id = $this->request->param('city_id',0,'intval'); |
144 | + //城市名字 | ||
145 | + $star = new StarController(); | ||
146 | + $cityName = $star->getCityName($city_id); | ||
147 | + $this->assign('cityName',$cityName); | ||
148 | + | ||
141 | $position['city_id'] = $city_id; | 149 | $position['city_id'] = $city_id; |
142 | $position['category_id'] = CityCategoryModel::xqyy; | 150 | $position['category_id'] = CityCategoryModel::xqyy; |
143 | $field = 'id,post_title,framing,release_time,city_id,more,thumbnail'; | 151 | $field = 'id,post_title,framing,release_time,city_id,more,thumbnail'; |
@@ -183,11 +191,13 @@ class RegionController extends HomeBaseController | @@ -183,11 +191,13 @@ class RegionController extends HomeBaseController | ||
183 | //星球故事更多 | 191 | //星球故事更多 |
184 | public function getMoreStory(){ | 192 | public function getMoreStory(){ |
185 | $position['category_id'] = CityCategoryModel::xqgs; | 193 | $position['category_id'] = CityCategoryModel::xqgs; |
186 | - $field = 'id,thumbnail,post_excerpt,more,create_time'; | 194 | + $field = 'id,thumbnail,post_excerpt,more,create_time,excerpt'; |
187 | $res = $this->getChildArticlePage($position,$field); | 195 | $res = $this->getChildArticlePage($position,$field); |
188 | foreach($res['data']['data'] as &$value){ | 196 | foreach($res['data']['data'] as &$value){ |
189 | $more = json_decode($value['more'],true); | 197 | $more = json_decode($value['more'],true); |
190 | $value['audio'] = isset($more['audio']) && !empty($more['audio'])?$more['audio']:''; | 198 | $value['audio'] = isset($more['audio']) && !empty($more['audio'])?$more['audio']:''; |
199 | + $contentModel = new PortalPostModel(); | ||
200 | + $value['excerpt'] = $contentModel->getPostContentAttr($value['excerpt']); | ||
191 | } | 201 | } |
192 | $this->assign('res',$res['data']); | 202 | $this->assign('res',$res['data']); |
193 | $this->assign('page',$res['page']); | 203 | $this->assign('page',$res['page']); |
@@ -36,13 +36,15 @@ class StarController extends HomeBaseController | @@ -36,13 +36,15 @@ class StarController extends HomeBaseController | ||
36 | 36 | ||
37 | //星球故事 | 37 | //星球故事 |
38 | $position['category_id'] = CityCategoryModel::xqgs; | 38 | $position['category_id'] = CityCategoryModel::xqgs; |
39 | - $field = 'id,thumbnail,post_excerpt,more'; | 39 | + $field = 'id,thumbnail,post_excerpt,more,excerpt'; |
40 | $res_xqgs = $this->getChildArticle($position,$field,1); | 40 | $res_xqgs = $this->getChildArticle($position,$field,1); |
41 | foreach($res_xqgs as &$value){ | 41 | foreach($res_xqgs as &$value){ |
42 | $more = json_decode($value['more'],true); | 42 | $more = json_decode($value['more'],true); |
43 | if(isset($more['audio']) && !empty($more['audio'])){ | 43 | if(isset($more['audio']) && !empty($more['audio'])){ |
44 | $value['audio'] = $more['audio']; | 44 | $value['audio'] = $more['audio']; |
45 | } | 45 | } |
46 | + $contentModel = new PortalPostModel(); | ||
47 | + $value['excerpt'] = $contentModel->getPostContentAttr($value['excerpt']); | ||
46 | } | 48 | } |
47 | if($res_xqgs){ | 49 | if($res_xqgs){ |
48 | $res_xqgs = $res_xqgs[0]; | 50 | $res_xqgs = $res_xqgs[0]; |
@@ -317,11 +319,13 @@ class StarController extends HomeBaseController | @@ -317,11 +319,13 @@ class StarController extends HomeBaseController | ||
317 | //星球故事详情 | 319 | //星球故事详情 |
318 | public function getStoryDetail(){ | 320 | public function getStoryDetail(){ |
319 | $id = $this->request->param('id',0,'intval'); | 321 | $id = $this->request->param('id',0,'intval'); |
320 | - $field = 'id,thumbnail,post_title,post_excerpt,create_time,post_content,more'; | 322 | + $field = 'id,thumbnail,post_title,post_excerpt,create_time,post_content,more,excerpt'; |
321 | $res = $this->getDetail($id,$field); | 323 | $res = $this->getDetail($id,$field); |
322 | if($res){ | 324 | if($res){ |
323 | $more = json_decode($res['more'],true); | 325 | $more = json_decode($res['more'],true); |
324 | $res['audio'] = isset($more['audio']) && !empty($more['audio'])?$more['audio']:''; | 326 | $res['audio'] = isset($more['audio']) && !empty($more['audio'])?$more['audio']:''; |
327 | + $contentModel = new PortalPostModel(); | ||
328 | + $res['excerpt'] = $contentModel->getPostContentAttr($res['excerpt']); | ||
325 | } | 329 | } |
326 | $this->assign('res',$res); | 330 | $this->assign('res',$res); |
327 | return $this->fetch(); | 331 | return $this->fetch(); |
@@ -17,12 +17,12 @@ class AdminStarStoryValidate extends Validate | @@ -17,12 +17,12 @@ class AdminStarStoryValidate extends Validate | ||
17 | protected $rule = [ | 17 | protected $rule = [ |
18 | 'city_id' => 'require', | 18 | 'city_id' => 'require', |
19 | 'post_title' => 'require', | 19 | 'post_title' => 'require', |
20 | - 'post_excerpt' => 'require', | 20 | +// 'excerpt' => 'require', |
21 | ]; | 21 | ]; |
22 | protected $message = [ | 22 | protected $message = [ |
23 | 'city_id.require' => '请选择城市!', | 23 | 'city_id.require' => '请选择城市!', |
24 | 'post_title.require' => '文章标题不能为空!', | 24 | 'post_title.require' => '文章标题不能为空!', |
25 | - 'post_excerpt.require' => '文章简介不能为空!', | 25 | +// 'excerpt.require' => '文章简介不能为空!', |
26 | 26 | ||
27 | ]; | 27 | ]; |
28 | 28 |
@@ -59,8 +59,7 @@ | @@ -59,8 +59,7 @@ | ||
59 | <tr> | 59 | <tr> |
60 | <th>简介<span class="form-required">*</span></th> | 60 | <th>简介<span class="form-required">*</span></th> |
61 | <td> | 61 | <td> |
62 | - <textarea class="form-control" required name="post[post_excerpt]" style="height: 50px;" | ||
63 | - placeholder="请填写简介"></textarea> | 62 | + <script type="text/plain" id="excerpt" name="post[excerpt]"></script> |
64 | </td> | 63 | </td> |
65 | </tr> | 64 | </tr> |
66 | <tr> | 65 | <tr> |
@@ -158,7 +157,12 @@ | @@ -158,7 +157,12 @@ | ||
158 | editorcontent.sync(); | 157 | editorcontent.sync(); |
159 | } catch (err) { | 158 | } catch (err) { |
160 | } | 159 | } |
161 | - | 160 | + editorcontent1 = new baidu.editor.ui.Editor(); |
161 | + editorcontent1.render('excerpt'); | ||
162 | + try { | ||
163 | + editorcontent1.sync(); | ||
164 | + } catch (err) { | ||
165 | + } | ||
162 | $('.btn-cancel-thumbnail').click(function () { | 166 | $('.btn-cancel-thumbnail').click(function () { |
163 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | 167 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); |
164 | $('#thumbnail').val(''); | 168 | $('#thumbnail').val(''); |
@@ -63,8 +63,7 @@ | @@ -63,8 +63,7 @@ | ||
63 | <tr> | 63 | <tr> |
64 | <th>简介<span class="form-required">*</span></th> | 64 | <th>简介<span class="form-required">*</span></th> |
65 | <td> | 65 | <td> |
66 | - <textarea class="form-control" required name="post[post_excerpt]" style="height: 50px;" | ||
67 | - placeholder="请填写简介">{$post.post_excerpt}</textarea> | 66 | + <script type="text/plain" id="excerpt" name="post[excerpt]">{$post.excerpt}</script> |
68 | </td> | 67 | </td> |
69 | </tr> | 68 | </tr> |
70 | <tr> | 69 | <tr> |
@@ -190,6 +189,13 @@ | @@ -190,6 +189,13 @@ | ||
190 | } catch (err) { | 189 | } catch (err) { |
191 | } | 190 | } |
192 | 191 | ||
192 | + editorcontent1 = new baidu.editor.ui.Editor(); | ||
193 | + editorcontent1.render('excerpt'); | ||
194 | + try { | ||
195 | + editorcontent1.sync(); | ||
196 | + } catch (err) { | ||
197 | + } | ||
198 | + | ||
193 | $('.btn-cancel-thumbnail').click(function () { | 199 | $('.btn-cancel-thumbnail').click(function () { |
194 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | 200 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); |
195 | $('#thumbnail').val(''); | 201 | $('#thumbnail').val(''); |
@@ -40,14 +40,21 @@ | @@ -40,14 +40,21 @@ | ||
40 | <!--</volist>--> | 40 | <!--</volist>--> |
41 | <!--</select>--> | 41 | <!--</select>--> |
42 | <div class="select"> | 42 | <div class="select"> |
43 | - <input type="text" value="中国" readonly="readonly"> | ||
44 | - <img src="__TMPL__/public/assets/starImg/down.png" alt=""> | ||
45 | - <ul style="height:300px;overflow-y: scroll;width:240px;"> | ||
46 | - <li>所有</li> | ||
47 | - <volist name="city_name" id="vo"> | ||
48 | - <li value="{$vo.id}" <eq name="$vo.id" value="$city_id">selected</eq>>{$vo.name}</li> | ||
49 | - </volist> | ||
50 | - </ul> | 43 | + <input type="hidden" value="{$cityName}" id="cityName"> |
44 | + <form method="GET" action="/portal/enjoy/index"> | ||
45 | + <input class="show_city" type="text" value="所有" readonly="readonly"> | ||
46 | + <img src="__TMPL__/public/assets/starImg/down.png" alt=""> | ||
47 | + <ul style="height:300px;overflow-y: scroll;width:240px;"> | ||
48 | + <li>所有</li> | ||
49 | + <volist name="city_name" id="vo"> | ||
50 | + <li value="{$vo.id}">{$vo.name}</li> | ||
51 | + </volist> | ||
52 | + </ul> | ||
53 | + <input type="hidden" value="0" name="city_id" id="city_id"> | ||
54 | + <div style="display:none;"> | ||
55 | + <input type="submit" id="city_submit"/> | ||
56 | + </div> | ||
57 | + </form> | ||
51 | </div> | 58 | </div> |
52 | </div> | 59 | </div> |
53 | <!--亲临现场--> | 60 | <!--亲临现场--> |
@@ -266,64 +273,70 @@ | @@ -266,64 +273,70 @@ | ||
266 | <script src="__TMPL__/public/assets/js/public.js"></script> | 273 | <script src="__TMPL__/public/assets/js/public.js"></script> |
267 | 274 | ||
268 | <script> | 275 | <script> |
269 | - $('.select input').click(function() { | ||
270 | - if ($(this).next('img').attr('src') == "__TMPL__/public/assets/starImg/down.png") { | ||
271 | - $(this).next('img').attr('src', "__TMPL__/public/assets/starImg/up.png") | ||
272 | - $('.select ul').toggle(); | ||
273 | - } else { | ||
274 | - $(this).next('img').attr('src', "__TMPL__/public/assets/starImg/down.png") | ||
275 | - $('.select ul').toggle(); | 276 | + $(function(){ |
277 | + var value = $('#cityName').val(); | ||
278 | + if(value != ''){ | ||
279 | + $('.show_city').val(value); | ||
280 | + }else{ | ||
281 | + $('.show_city').val('所有'); | ||
276 | } | 282 | } |
277 | 283 | ||
278 | - }); | 284 | + $('.select input').click(function() { |
285 | + if ($(this).next('img').attr('src') == "__TMPL__/public/assets/starImg/down.png") { | ||
286 | + $(this).next('img').attr('src', "__TMPL__/public/assets/starImg/up.png") | ||
287 | + $('.select ul').toggle(); | ||
288 | + } else { | ||
289 | + $(this).next('img').attr('src', "__TMPL__/public/assets/starImg/down.png") | ||
290 | + $('.select ul').toggle(); | ||
291 | + } | ||
279 | 292 | ||
280 | - $('.select ul li').click(function() { | ||
281 | - $('.select input').val($(this).text()); | ||
282 | - $('.select ul').hide(); | ||
283 | - var index = $(this).index(); | ||
284 | - $('.curren').eq(index).addClass('video_active').siblings().removeClass('video_active'); | ||
285 | - }); | 293 | + }); |
286 | 294 | ||
287 | - $(document).ready(function() { | ||
288 | - var val = $('.select input').val(); | ||
289 | - var val2 = $('.select ul li:first-child').text(); | ||
290 | - val = val2; | ||
291 | - $('.select input').val(val) | ||
292 | - }); | 295 | + //点击下拉框事件 |
296 | + $('.select ul li').click(function() { | ||
297 | + $('.show_city').val($(this).text()); | ||
298 | + $('.select ul').hide(); | ||
299 | + var index = $(this).index(); | ||
293 | 300 | ||
301 | + $('#city_id').val($(this).val()); | ||
302 | + $('.curren').eq(index).addClass('video_active').siblings().removeClass('video_active'); | ||
294 | 303 | ||
295 | - var swiper = new Swiper('.Spot_main .swiper-container', { | ||
296 | - slidesPerView: 2, | ||
297 | - spaceBetween: 50, | ||
298 | - navigation: { | ||
299 | - nextEl: '.Spot_main .swiper-button-next', | ||
300 | - prevEl: '.Spot_main .swiper-button-prev', | ||
301 | - }, | 304 | + $('form').submit(); |
305 | + }); | ||
302 | 306 | ||
303 | - }); | ||
304 | - var swipe = new Swiper('.Walker_main .swiper-container', { | ||
305 | - navigation: { | ||
306 | - nextEl: '.Walker .swiper-button-next', | ||
307 | - prevEl: '.Walker .swiper-button-prev', | ||
308 | - }, | ||
309 | - }); | ||
310 | - var swi = new Swiper('.Feast .swiper-container', { | ||
311 | - slidesPerView: 3, | ||
312 | - spaceBetween: 50, | ||
313 | - navigation: { | ||
314 | - nextEl: '.Feast .swiper-button-next', | ||
315 | - prevEl: '.Feast .swiper-button-prev', | ||
316 | - }, | 307 | + var swiper = new Swiper('.Spot_main .swiper-container', { |
308 | + slidesPerView: 2, | ||
309 | + spaceBetween: 50, | ||
310 | + navigation: { | ||
311 | + nextEl: '.Spot_main .swiper-button-next', | ||
312 | + prevEl: '.Spot_main .swiper-button-prev', | ||
313 | + }, | ||
317 | 314 | ||
318 | - }); | ||
319 | - var sw = new Swiper('.Sport .swiper-container', { | ||
320 | - slidesPerView: 2, | ||
321 | - spaceBetween: 50, | ||
322 | - navigation: { | ||
323 | - nextEl: '.Sport .swiper-button-next', | ||
324 | - prevEl: '.Sport .swiper-button-prev', | ||
325 | - }, | 315 | + }); |
316 | + var swipe = new Swiper('.Walker_main .swiper-container', { | ||
317 | + navigation: { | ||
318 | + nextEl: '.Walker .swiper-button-next', | ||
319 | + prevEl: '.Walker .swiper-button-prev', | ||
320 | + }, | ||
321 | + }); | ||
322 | + var swi = new Swiper('.Feast .swiper-container', { | ||
323 | + slidesPerView: 3, | ||
324 | + spaceBetween: 50, | ||
325 | + navigation: { | ||
326 | + nextEl: '.Feast .swiper-button-next', | ||
327 | + prevEl: '.Feast .swiper-button-prev', | ||
328 | + }, | ||
329 | + | ||
330 | + }); | ||
331 | + var sw = new Swiper('.Sport .swiper-container', { | ||
332 | + slidesPerView: 2, | ||
333 | + spaceBetween: 50, | ||
334 | + navigation: { | ||
335 | + nextEl: '.Sport .swiper-button-next', | ||
336 | + prevEl: '.Sport .swiper-button-prev', | ||
337 | + }, | ||
326 | 338 | ||
339 | + }); | ||
327 | }); | 340 | }); |
328 | 341 | ||
329 | </script> | 342 | </script> |
@@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
31 | <img class="show_indexImg1" src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | 31 | <img class="show_indexImg1" src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> |
32 | <!-- 文字 --> | 32 | <!-- 文字 --> |
33 | <div class="show_index_con2Txt2"> | 33 | <div class="show_index_con2Txt2"> |
34 | - {$vo.post_excerpt} | 34 | + {$vo.excerpt} |
35 | </div> | 35 | </div> |
36 | <!-- 进度条 --> | 36 | <!-- 进度条 --> |
37 | <div class="show_index_progress"> | 37 | <div class="show_index_progress"> |
@@ -27,16 +27,23 @@ | @@ -27,16 +27,23 @@ | ||
27 | <!-- 顶部 --> | 27 | <!-- 顶部 --> |
28 | <div class="show_9_video_asideTie clearfix"> | 28 | <div class="show_9_video_asideTie clearfix"> |
29 | <p>专辑</p> | 29 | <p>专辑</p> |
30 | - <div class="select"> | ||
31 | - <input type="text" value="所有" readonly="readonly"> | ||
32 | - <img src="__TMPL__/public/assets/starImg/down.png" alt=""> | ||
33 | - <ul style="height:300px;overflow-y: scroll;width:145px;"> | ||
34 | - <li>所有</li> | ||
35 | - <volist name="city_name" id="vo"> | ||
36 | - <li value="{$vo.id}" <eq name="$vo.id" value="$city_id">selected</eq>>{$vo.name}</li> | ||
37 | - </volist> | ||
38 | - </ul> | ||
39 | - </div> | 30 | + <input type="hidden" value="{$cityName}" id="cityName"> |
31 | + <form method="GET" action="/portal/region/getMoreVideo"> | ||
32 | + <div class="select"> | ||
33 | + <input type="text" class="show_city" value="所有" readonly="readonly"> | ||
34 | + <img src="__TMPL__/public/assets/starImg/down.png" alt=""> | ||
35 | + <ul style="height:300px;overflow-y: scroll;width:145px;"> | ||
36 | + <li>所有</li> | ||
37 | + <volist name="city_name" id="vo"> | ||
38 | + <li value="{$vo.id}">{$vo.name}</li> | ||
39 | + </volist> | ||
40 | + </ul> | ||
41 | + <input type="hidden" value="0" name="city_id" id="city_id"> | ||
42 | + <div style="display:none;"> | ||
43 | + <input type="submit" id="city_submit"/> | ||
44 | + </div> | ||
45 | + </div> | ||
46 | + </form> | ||
40 | </div> | 47 | </div> |
41 | <!-- 视频 --> | 48 | <!-- 视频 --> |
42 | <div class="show_9_video_asideCon"> | 49 | <div class="show_9_video_asideCon"> |
@@ -87,6 +94,13 @@ | @@ -87,6 +94,13 @@ | ||
87 | $(function() { | 94 | $(function() { |
88 | //默认第一个视频 | 95 | //默认第一个视频 |
89 | switch_video(0); | 96 | switch_video(0); |
97 | + var value = $('#cityName').val(); | ||
98 | + if(value != ''){ | ||
99 | + $('.show_city').val(value); | ||
100 | + }else{ | ||
101 | + $('.show_city').val('所有'); | ||
102 | + } | ||
103 | + | ||
90 | $('.curren').children('li').children('.li_img').css('opacity','0.3'); | 104 | $('.curren').children('li').children('.li_img').css('opacity','0.3'); |
91 | $('.curren').children('li').eq(0).children('.li_img').css('opacity','1'); | 105 | $('.curren').children('li').eq(0).children('.li_img').css('opacity','1'); |
92 | 106 | ||
@@ -97,8 +111,6 @@ | @@ -97,8 +111,6 @@ | ||
97 | $('.curren').children('li').children('.li_img').css('opacity','0.3'); | 111 | $('.curren').children('li').children('.li_img').css('opacity','0.3'); |
98 | $('.curren').children('li').children('p').css('color','rgba(153, 153, 153, 1)'); | 112 | $('.curren').children('li').children('p').css('color','rgba(153, 153, 153, 1)'); |
99 | switch_video(index); | 113 | switch_video(index); |
100 | - | ||
101 | - | ||
102 | }); | 114 | }); |
103 | 115 | ||
104 | //鼠标滑过 | 116 | //鼠标滑过 |
@@ -123,8 +135,12 @@ | @@ -123,8 +135,12 @@ | ||
123 | 135 | ||
124 | //下拉框选择城市 | 136 | //下拉框选择城市 |
125 | $('.select ul li').click(function() { | 137 | $('.select ul li').click(function() { |
126 | - var index = $(this).index(); | ||
127 | - console.log(index); | 138 | + $('.show_city').val($(this).text()); |
139 | + $('.select ul').hide(); | ||
140 | + | ||
141 | + $('#city_id').val($(this).val()); | ||
142 | + | ||
143 | + $('form').submit(); | ||
128 | }); | 144 | }); |
129 | 145 | ||
130 | // 弹出框 | 146 | // 弹出框 |
@@ -146,8 +162,14 @@ | @@ -146,8 +162,14 @@ | ||
146 | var oneVideo = li_index.children('.li_video').val(); | 162 | var oneVideo = li_index.children('.li_video').val(); |
147 | $('#video').attr('src',oneVideo); | 163 | $('#video').attr('src',oneVideo); |
148 | // 视频封面图 | 164 | // 视频封面图 |
165 | + $('.video_poster').css('z-index', '10'); | ||
166 | + | ||
149 | var oneCover = li_index.children('.li_img').attr('src'); | 167 | var oneCover = li_index.children('.li_img').attr('src'); |
150 | $('.video_poster').attr('src',oneCover); | 168 | $('.video_poster').attr('src',oneCover); |
169 | + $('.play_button').css({ | ||
170 | + 'z-index': "11", | ||
171 | + "display":"block" | ||
172 | + }); | ||
151 | //标题,国家,取景,上映时间 | 173 | //标题,国家,取景,上映时间 |
152 | var post_title = li_index.children('.li_post_title').val(); | 174 | var post_title = li_index.children('.li_post_title').val(); |
153 | var city_name = li_index.children('.li_city_name').val(); | 175 | var city_name = li_index.children('.li_city_name').val(); |
@@ -88,7 +88,7 @@ | @@ -88,7 +88,7 @@ | ||
88 | <img class="show_indexImg1" src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | 88 | <img class="show_indexImg1" src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> |
89 | <!-- 文字 --> | 89 | <!-- 文字 --> |
90 | <div class="show_index_con2Txt2"> | 90 | <div class="show_index_con2Txt2"> |
91 | - {$vo.post_excerpt} | 91 | + {$vo.excerpt} |
92 | </div> | 92 | </div> |
93 | <!-- 进度条 --> | 93 | <!-- 进度条 --> |
94 | <div class="show_index_progress"> | 94 | <div class="show_index_progress"> |
@@ -54,15 +54,15 @@ | @@ -54,15 +54,15 @@ | ||
54 | <!--</div>--> | 54 | <!--</div>--> |
55 | <!--</div>--> | 55 | <!--</div>--> |
56 | <!-- 内容 --> | 56 | <!-- 内容 --> |
57 | - <div class="show_INMain_con2_2 swiper-container2 show_5_swiper"> | ||
58 | - <div class="swiper-wrapper"> | ||
59 | - <div class="swiper-slide"> | 57 | + <div class="show_INMain_con2_2 show_5_swiper"> |
58 | + <div > | ||
59 | + <div c> | ||
60 | <div class="show_index_con2Txt clearfix"> | 60 | <div class="show_index_con2Txt clearfix"> |
61 | <!-- 左侧图片 --> | 61 | <!-- 左侧图片 --> |
62 | <img class="show_indexImg1" src="{:cmf_get_image_url($res.thumbnail)}" alt=""> | 62 | <img class="show_indexImg1" src="{:cmf_get_image_url($res.thumbnail)}" alt=""> |
63 | <!-- 文字 --> | 63 | <!-- 文字 --> |
64 | <div class="show_index_con2Txt2"> | 64 | <div class="show_index_con2Txt2"> |
65 | - {$res.post_excerpt} | 65 | + {$res.excerpt} |
66 | </div> | 66 | </div> |
67 | <!-- 进度条 --> | 67 | <!-- 进度条 --> |
68 | <div class="show_index_progress"> | 68 | <div class="show_index_progress"> |
@@ -89,15 +89,15 @@ | @@ -89,15 +89,15 @@ | ||
89 | <script src="__TMPL__/public/assets/js/public.js"></script> | 89 | <script src="__TMPL__/public/assets/js/public.js"></script> |
90 | <script> | 90 | <script> |
91 | // 星球故事swiper | 91 | // 星球故事swiper |
92 | - var swiper = new Swiper('.swiper-container2', { | ||
93 | - slidesPerView: 1, | ||
94 | - spaceBetween: 30, | ||
95 | - // loop: true, | ||
96 | - pagination: { | ||
97 | - el: '.swiper-pagination', | ||
98 | - clickable: true, | ||
99 | - }, | ||
100 | - }); | 92 | +// var swiper = new Swiper('.swiper-container2', { |
93 | +// slidesPerView: 1, | ||
94 | +// spaceBetween: 30, | ||
95 | +// // loop: true, | ||
96 | +// pagination: { | ||
97 | +// el: '.swiper-pagination', | ||
98 | +// clickable: true, | ||
99 | +// }, | ||
100 | +// }); | ||
101 | </script> | 101 | </script> |
102 | </body> | 102 | </body> |
103 | 103 |
@@ -56,7 +56,7 @@ | @@ -56,7 +56,7 @@ | ||
56 | <img class="show_indexImg1" src="{:cmf_get_image_url($res_xqgs.thumbnail)}" alt=""> | 56 | <img class="show_indexImg1" src="{:cmf_get_image_url($res_xqgs.thumbnail)}" alt=""> |
57 | <!-- 文字 --> | 57 | <!-- 文字 --> |
58 | <div class="show_index_con2Txt2"> | 58 | <div class="show_index_con2Txt2"> |
59 | - {$res_xqgs.post_excerpt} | 59 | + {$res_xqgs.excerpt} |
60 | </div> | 60 | </div> |
61 | <!-- 进度条 --> | 61 | <!-- 进度条 --> |
62 | <div class="show_index_progress"> | 62 | <div class="show_index_progress"> |
@@ -304,21 +304,24 @@ body { | @@ -304,21 +304,24 @@ body { | ||
304 | } | 304 | } |
305 | 305 | ||
306 | .show_index_con2Txt2 { | 306 | .show_index_con2Txt2 { |
307 | - width: 712px; | ||
308 | - height:252px; | 307 | + width: 760px; |
308 | + height:350px; | ||
309 | float: left; | 309 | float: left; |
310 | + padding-top: 24px; | ||
311 | + box-sizing: border-box; | ||
310 | margin-left: 39px; | 312 | margin-left: 39px; |
311 | - margin-top: 43px; | 313 | + /*margin-top: 43px;*/ |
312 | font-size: 16px; | 314 | font-size: 16px; |
315 | + overflow: hidden; | ||
316 | + overflow-y: visible; | ||
313 | color: rgba(102, 102, 102, 1); | 317 | color: rgba(102, 102, 102, 1); |
314 | - line-height: 28px; | 318 | + /*line-height: 28px;*/ |
315 | } | 319 | } |
316 | - | 320 | +.show_index_con2Txt2::-webkit-scrollbar {display:none} |
317 | .show_index_progress { | 321 | .show_index_progress { |
318 | width: 800px; | 322 | width: 800px; |
319 | height: 50px; | 323 | height: 50px; |
320 | float: left; | 324 | float: left; |
321 | - margin-top: 55px; | ||
322 | background: rgba(225, 225, 230, 1); | 325 | background: rgba(225, 225, 230, 1); |
323 | } | 326 | } |
324 | 327 |
-
请 注册 或 登录 后发表评论