切换导航条
此项目
正在载入...
登录
景龙
/
xingqiu
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
景龙
6 years ago
提交
74aa229ba545da5a5b792288ac7cef75615a7427
1 个父辈
4d82689a
1 个管道 的构建
通过
耗费 3 秒
测试视频定位
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
19 行增加
和
4 行删除
public/themes/simpleboot3_mobile/portal/region/get_more_video.html
public/themes/simpleboot3_mobile/public/share.html
public/themes/simpleboot3_mobile/portal/region/get_more_video.html
查看文件 @
74aa229
...
...
@@ -237,9 +237,13 @@
}
});
var
video_index
=
getUrlParam
(
'video_index'
);
console
.
log
(
1111
);
console
.
log
(
video_index
);
//默认第一个视频
switch_video
(
video_index
);
switch_video
(
video_index
);
//更换视频路径index
video_index_url
(
video_index
);
//点击切换
$
(
'.curren li'
).
click
(
function
()
{
var
index
=
$
(
this
).
index
();
...
...
@@ -247,6 +251,8 @@
$
(
'.curren'
).
children
(
'li'
).
find
(
'.txt-cut'
).
css
(
'color'
,
'rgba(153, 153, 153, 1)'
);
switch_video
(
index
);
$
(
'.video_index'
).
val
(
index
);
//更换视频路径index
video_index_url
(
index
);
});
// $(".select ul li").click(function() {
...
...
@@ -280,6 +286,16 @@
$
(
'.video_poster'
).
css
(
'visibility'
,
'visible!important'
);
});
});
function
video_index_url
(
index
){
var
city_id
=
getUrlParam
(
'city_id'
);
if
(
city_id
==
''
){
$
(
'.video_index_url'
).
val
(
window
.
location
.
href
+
'?video_index='
+
index
);
}
else
{
$
(
'.video_index_url'
).
val
(
window
.
location
.
href
+
'&video_index='
+
index
);
}
}
//切换视频
function
switch_video
(
index
)
{
//视频路径
...
...
public/themes/simpleboot3_mobile/public/share.html
查看文件 @
74aa229
...
...
@@ -3,15 +3,14 @@
<script>
$
(
function
()
{
var
pathname
=
window
.
location
.
pathname
;
var
video_index
=
$
(
'.video_index'
).
val
();
var
city_id
=
getUrlParam
(
'city_id'
);
// 分享链接
var
url
;
if
(
pathname
==
'/portal/region/getMoreVideo'
){
if
(
city_id
==
''
){
url
=
window
.
location
.
href
+
'?video_index='
+
video_index
;
url
=
$
(
'.video_index_url'
).
val
()
;
}
else
{
url
=
window
.
location
.
href
+
'&video_index='
+
video_index
;
url
=
$
(
'.video_index_url'
).
val
()
;
}
}
else
{
...
...
请
注册
或
登录
后发表评论