切换导航条
此项目
正在载入...
登录
景龙
/
xingqiu
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
景龙
6 years ago
提交
f23b436d727a9ee6b86ae239826d1a3230fedde8
1 个父辈
523cead6
1 个管道 的构建
通过
耗费 1 秒
修改首页弹出视频问题
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
7 行增加
和
9 行删除
app/portal/controller/IndexController.php
public/themes/simpleboot3/portal/index/index.html
app/portal/controller/IndexController.php
查看文件 @
f23b436
...
...
@@ -138,13 +138,13 @@ class IndexController extends HomeBaseController
//星探推荐
$res_xttj
=
cache
(
'res_xttj'
);
if
(
!
$res_xttj
){
// $res_xttj = cache('res_xttj');
// if(!$res_xttj){
$position
=
CityCategoryModel
::
xttj
;
$field
=
'id,post_title,price,index_thumbnail,place'
;
$res_xttj
=
$this
->
getParentArticle
(
$position
,
$field
,
16
);
cache
(
'res_xttj'
,
$res_xttj
);
}
// cache('res_xttj',$res_xttj);
// }
$this
->
assign
(
'res_xttj'
,
$res_xttj
);
...
...
public/themes/simpleboot3/portal/index/index.html
查看文件 @
f23b436
...
...
@@ -62,7 +62,7 @@
<notempty
name=
"res_djxq.video"
>
<div
class=
"mask"
id=
"mask"
>
<div
class=
"mask_video"
>
<img
id=
"nos
"
src=
"__TMPL__/public/assets/starImg/nos.png"
alt=
""
>
<img
onclick=
"nos()
"
src=
"__TMPL__/public/assets/starImg/nos.png"
alt=
""
>
<video
autoplay=
"autoplay"
controls
loop=
"loop"
id=
"video2"
src=
"{:cmf_get_file_download_url($res_djxq.video)}"
controlslist=
"nodownload"
></video>
</div>
</div>
...
...
@@ -864,13 +864,11 @@
$
(
'.mask'
).
css
(
'display'
,
'block'
);
var
video2
=
document
.
getElementById
(
"video2"
);
//获取ID
var
nos
=
document
.
getElementById
(
"nos"
);
var
mask
=
document
.
getElementById
(
"mask"
);
nos
.
onclick
=
function
nos
()
{
function
nos
()
{
mask
.
style
.
display
=
"none"
;
video2
.
pause
();
}
;
}
// 禁止下载
$
(
'video'
).
bind
(
'contextmenu'
,
function
()
{
return
false
;
...
...
请
注册
或
登录
后发表评论