Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
eduline
Commits
2d76da79
Commit
2d76da79
authored
Jul 20, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
53abc8ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
181 additions
and
13 deletions
+181
-13
apps/classroom/Tpl/default/Index/search_w3g.html
+181
-13
No files found.
apps/classroom/Tpl/default/Index/search_w3g.html
View file @
2d76da79
<include
file=
"__THEME__/public_header_w3g"
/>
<!DOCTYPE html>
<style
type=
"text/css"
>
<html
lang=
"zh-cn"
>
.yulanBox
{
position
:
fixed
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
background
:
rgba
(
0
,
0
,
0
,
.2
);
z-index
:
25
;
}
<head>
.tips_box
{
width
:
250px
;
border-radius
:
4px
;
overflow
:
hidden
;
background
:
#fff
;
position
:
relative
;
}
<title>
.tips_title
{
width
:
100%
;
text-align
:
center
;
margin-top
:
17px
;
font-size
:
15px
;
color
:
#4A4A4A
;
}
<neq
name=
'_title'
value=
''
>
{$_title} - {$site.site_name}
.tips_body
{
width
:
100%
;
margin-top
:
9px
;
padding
:
0
25px
;
font-size
:
12px
;
color
:
#999
;
line-height
:
17px
;
padding-bottom
:
20px
;
box-sizing
:
border-box
;
}
<else/>
.tips_foot
{
width
:
100%
;
border-top
:
1px
solid
#DFDFDF
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
overflow
:
hidden
;
}
{$site.site_name} - {$site.site_slogan}
.tips_foot_L
{
width
:
50%
;
height
:
45px
;
text-align
:
center
;
line-height
:
45px
;
border-right
:
1px
solid
#DFDFDF
;
font-size
:
15px
;
color
:
#09BB07
;
}
</neq>
.tips_foot_R
{
width
:
50%
;
height
:
45px
;
text-align
:
center
;
line-height
:
45px
;
font-size
:
15px
;
color
:
#09BB07
;
}
</title>
.zhenti_tab
{
display
:
flex
;
align-items
:
center
;
background
:
#fff
;
z-index
:
20
;
}
<meta
charset=
"utf-8"
>
.van-tabs__nav--line
{
z-index
:
21
;
}
<meta
content=
"<neq name= '_keywords' value=''>{$_keywords}<else />{$site.site_header_keywords}</neq>"
.close_yulan
{
width
:
12px
;
height
:
12px
;
position
:
absolute
;
top
:
8px
;
right
:
8px
;
}
name=
"keywords"
>
</style>
<meta
content=
"<neq name= '_description' value=''>{$_description}<else />{$site.site_header_description}</neq>"
name=
"description"
>
<meta
name=
"viewport"
charset=
"UTF-8"
content=
"user-scalable=no"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
property=
"qc:admins"
content=
"1403267155765154541656375"
/>
<meta
property=
"wb:webmaster"
content=
"fdcd9430a88b1552"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
http-equiv=
"Access-Control-Allow-Origin"
content=
"*"
>
<meta
name=
"viewport"
content=
"target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, user-scalable=no"
>
<meta
name=
"x5-fullscreen"
content=
"true"
>
<meta
name=
"full-screen"
content=
"yes"
>
<link
href=
"__THEME__/image/favicon.ico?v={$site.sys_version}"
type=
"image/x-icon"
rel=
"shortcut icon"
>
<!-- 引入 Bootstrap -->
<!-- <link rel="stylesheet" type="text/css" href="__THEME__/icon/iconfont.css">
<link rel="stylesheet" type="text/css" href="__APP__/css/search_3g.css">
<style>
@font-face {font-family: 'iconfontNEW';src: url('__THEME__/icon/iconfontNEW.woff?v={$site.sys_version}');}
.iconfontNEW{font-family:"iconfontNEW";}
</style>
<style media="screen">
</style>
<script src="__THEMEW3G__/js/search_media.js"></script> -->
<script
src=
"__THEMEW3G__/js/jquery-1.8.3.min.js"
></script>
<link
href=
"__THEMEW3G__/css/common.css"
rel=
"stylesheet"
>
<link
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/npm/vant@2.6/lib/index.css"
/>
<script
src=
"https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/vant@2.6/lib/vant.min.js"
></script>
<script
src=
"__THEMEW3G__/js/extension.js"
charset=
"utf-8"
></script>
<script>
// $(function(){
// $('#btn_search_site').click(function(){
// var search_cate = $('#search_cate').val();
// var search_combo_input = $('#search_combo_input').val();
// if(search_combo_input != ''){
// if(search_cate == 'course'){
// window.open("{:U('course/Video/index')}"+"?search="+search_combo_input);
// }else if(search_cate == 'school'){
// window.open("{:U('school/Index/index')}"+"?search="+search_combo_input);
// }else if(search_cate == 'teacher'){
// window.open("{:U('classroom/Teacher/index')}"+"?search="+search_combo_input);
// }else if(search_cate == 'exams'){
// window.open("{:U('exams/Index/paper')}"+"&search="+search_combo_input);
// }else if(search_cate == 'goods'){
// window.open("{:U('mall/Goods/index')}"+"?search="+search_combo_input);
// }else if(search_cate == 'wenda'){
// window.open("{:U('wenda/Index/index')}"+"?search="+search_combo_input);
// }else if(search_cate == 'news'){
// window.open("{:U('news/Topic/index')}"+"?search="+search_combo_input);
// }
// }
// });
// $(document).keydown(function(event){
// var search_cate = $('#search_cate').val();
// var search_combo_input = $('#search_combo_input').val();
// if(search_combo_input != '') {
// if (event.keyCode == 13) {
// if(search_cate == 'course'){
// window.open("{:U('course/Video/index')}"+"?search="+search_combo_input);
// }else if(search_cate == 'school'){
// window.open("{:U('school/Index/index')}"+"?search="+search_combo_input);
// }else if(search_cate == 'teacher'){
// window.open("{:U('classroom/Teacher/index')}"+"?search="+search_combo_input);
// }else if(search_cate == 'exams'){
// window.open("{:U('exams/Index/paper')}"+"&search="+search_combo_input);
// }else if(search_cate == 'goods'){
// window.open("{:U('mall/Goods/index')}"+"?search="+search_combo_input);
// }else if(search_cate == 'wenda'){
// window.open("{:U('wenda/Index/index')}"+"?search="+search_combo_input);
// }else if(search_cate == 'news'){
// window.open("{:U('news/Topic/index')}"+"?search="+search_combo_input);
// }
// }
// }
// });
// });
</script>
<style
type=
"text/css"
>
.yulanBox
{
position
:
fixed
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
background
:
rgba
(
0
,
0
,
0
,
.2
);
z-index
:
25
;
}
.tips_box
{
width
:
250px
;
border-radius
:
4px
;
overflow
:
hidden
;
background
:
#fff
;
position
:
relative
;
}
.tips_title
{
width
:
100%
;
text-align
:
center
;
margin-top
:
17px
;
font-size
:
15px
;
color
:
#4A4A4A
;
}
.tips_body
{
width
:
100%
;
margin-top
:
9px
;
padding
:
0
25px
;
font-size
:
12px
;
color
:
#999
;
line-height
:
17px
;
padding-bottom
:
20px
;
box-sizing
:
border-box
;
}
.tips_foot
{
width
:
100%
;
border-top
:
1px
solid
#DFDFDF
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
overflow
:
hidden
;
}
.tips_foot_L
{
width
:
50%
;
height
:
45px
;
text-align
:
center
;
line-height
:
45px
;
border-right
:
1px
solid
#DFDFDF
;
font-size
:
15px
;
color
:
#09BB07
;
}
.tips_foot_R
{
width
:
50%
;
height
:
45px
;
text-align
:
center
;
line-height
:
45px
;
font-size
:
15px
;
color
:
#09BB07
;
}
.zhenti_tab
{
display
:
flex
;
align-items
:
center
;
background
:
#fff
;
z-index
:
20
;
}
.van-tabs__nav--line
{
z-index
:
21
;
}
.close_yulan
{
width
:
12px
;
height
:
12px
;
position
:
absolute
;
top
:
8px
;
right
:
8px
;
}
</style>
</head>
<body>
<div
id=
"app"
>
<div
id=
"app"
>
<van-search
<van-search
v-model=
"keyword"
v-model=
"keyword"
...
@@ -135,7 +228,81 @@
...
@@ -135,7 +228,81 @@
</div>
</div>
</div>
</div>
<!-- <div class="search-bodyer">
<div class="goods-eac-box">
<div class="eac-per-ens">
<div class="aingstoit">
<input value="course" id="search_cate" type="hidden" disabled />
<p><php>
switch ($searchConf['search'][0]) {
case 'school':
echo '机构';
break;
case 'teacher':
echo '讲师';
break;
case 'exams':
echo '考试';
break;
case 'goods':
echo '商品';
break;
case 'wenda':
echo '问答';
break;
case 'news':
echo '资讯';
break;
default:
echo '课程';
}
</php></p><i class="icon icon-xia"></i>
<span>
<php>if( in_array('course' , $searchConf['search']) ) {</php>
<a href="javascript:void(0)" attr="course">课程</a>
<php>}</php>
<php>if(!IS_CHILDS_HOST && in_array('school' , $searchConf['search']) ) {</php>
<eq name="Think.OPEN_SCHOOL" value="1"><a href="javascript:void(0)" attr="school">机构</a></eq>
<php>}</php>
<php>if( in_array('teacher' , $searchConf['search']) ) {</php>
<a href="javascript:void(0)" attr="teacher">讲师</a>
<php>}</php>
<php>if( in_array('exams' , $searchConf['search']) ) {</php>
<a href="javascript:void(0)" attr="exams">考试</a>
<php>}</php>
<php>if( in_array('goods' , $searchConf['search']) ) {</php>
<a href="javascript:void(0)" attr="goods">商品</a>
<php>}</php>
<php>if( in_array('wenda' , $searchConf['search']) ) {</php>
<a href="javascript:void(0)" attr="wenda">问答</a>
<php>}</php>
<php>if( in_array('news' , $searchConf['search']) ) {</php>
<a href="javascript:void(0)" attr="news">资讯</a>
<php>}</php>
</span>
</div>
<input autofocus="autofocus" placeholder="搜索您感兴趣的内容" oninput="shap()" id="search_combo_input" >
<i class="icon icon-quxiao" ></i>
<button id="btn_search_site" class="iconfontNEW"></button>
</div>
</div>
<div class="headlines">
<h5>大家都在搜</h5>
<ul id="video_list">
<volist name="video" id="vo">
<li><a <eq name="vo.type" value="1">href="{:U('course/Video/view',array('id'=>$vo['id']))}"<else/>href="{:U('live/Index/view',array('id'=>$vo['id']))}"</eq>>{$vo.video_title|mStr=10}</a></li>
</volist>
</ul>
</div>
</div> -->
</body>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
new
Vue
({
new
Vue
({
el
:
'#app'
,
el
:
'#app'
,
...
@@ -312,3 +479,4 @@
...
@@ -312,3 +479,4 @@
}
}
})
})
</script>
</script>
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment