切换导航条
此项目
正在载入...
登录
景龙
/
xingqiu
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
zhangwei
6 years ago
提交
0ef20d374ff2ffbcf02f60cfc98701c8d104e3a0
1 个父辈
531cb995
1 个管道 的构建
通过
耗费 2 秒
星域视频修改
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
32 行增加
和
9 行删除
app/portal/controller/RegionController.php
public/themes/simpleboot3/portal/region/index.html
app/portal/controller/RegionController.php
查看文件 @
0ef20d3
...
...
@@ -22,7 +22,7 @@ class RegionController extends HomeBaseController
public
function
index
(){
//星球影院
$position
[
'category_id'
]
=
CityCategoryModel
::
xqyy
;
$field
=
'id,more'
;
$field
=
'id,more
,thumbnail
'
;
$res_xqyy
=
$this
->
getChildArticle
(
$position
,
$field
,
1
);
foreach
(
$res_xqyy
as
&
$value
){
$more
=
json_decode
(
$value
[
'more'
],
true
);
...
...
public/themes/simpleboot3/portal/region/index.html
查看文件 @
0ef20d3
...
...
@@ -53,6 +53,24 @@
.swiper-button-disabled2
{
background-color
:
white
!important
;
}
.show_in_banner2
{
z-index
:
20
;
}
.show_bannerFen
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
z-index
:
10
;
}
.show_bannerFen
img
{
width
:
100%
;
height
:
100%
;
}
</style>
</head>
...
...
@@ -63,12 +81,15 @@
<!-- banner视频 -->
<div
class=
"show_index_banner"
>
<notempty
name=
"res_xqyy"
>
<video
id=
"video"
autoplay=
"autoplay"
controls
width=
"100%"
height=
"660"
src=
"{:cmf_get_file_download_url($res_xqyy.video)}"
controlsList=
"nodownload"
></video>
<video
id=
"video"
controls
width=
"100%"
height=
"660"
src=
"{:cmf_get_file_download_url($res_xqyy.video)}"
controlsList=
"nodownload"
></video>
<else/>
<video
id=
"video"
autoplay=
"autoplay"
controls
width=
"100%"
height=
"660"
src=
"__TMPL__/public/assets/starImg/video.mp4"
controlsList=
"nodownload"
></video>
</notempty>
<!-- poster="__TMPL__/public/assets/starImg/aicon_01.png" -->
<!-- <img onclick="bofang()" class="show_in_banner2" src="__TMPL__/public/assets/starImg/aicon_30.png" alt=""> -->
<img
onclick=
"bofang()"
class=
"show_in_banner2"
src=
"__TMPL__/public/assets/starImg/aicon_30.png"
alt=
""
>
<div
class=
"show_bannerFen"
>
<img
src=
"{:cmf_get_image_url($res_xqyy.thumbnail)}"
alt=
""
>
</div>
</div>
<!-- main 背景 -->
...
...
@@ -399,12 +420,14 @@
// });
// banner视频
// var video = document.getElementById("video");
// function bofang() {
// video.play();
// $('#video').attr('controls', 'controls')
// $('.show_in_banner2').hide();
// }
var
video
=
document
.
getElementById
(
"video"
);
function
bofang
()
{
video
.
play
();
$
(
'#video'
).
attr
(
'controls'
,
'controls'
)
$
(
'.show_in_banner2'
).
hide
();
$
(
'.show_bannerFen'
).
hide
();
}
</script>
</body>
...
...
请
注册
或
登录
后发表评论