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
c65282c3
Commit
c65282c3
authored
May 30, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
e5fb1e96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
429 additions
and
412 deletions
+429
-412
apps/classroom/Tpl/default/Index/search_w3g.html
+429
-412
No files found.
apps/classroom/Tpl/default/Index/search_w3g.html
View file @
c65282c3
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"zh-cn"
>
<html
lang=
"zh-cn"
>
<head>
<head>
<title><neq
name=
'_title'
value=
''
>
{$_title} - {$site.site_name}
<else
/>
{$site.site_name} - {$site.site_slogan}
</neq></title>
<title>
<meta
charset=
"utf-8"
>
<neq
name=
'_title'
value=
''
>
{$_title} - {$site.site_name}
<meta
content=
"<neq name= '_keywords' value=''>{$_keywords}<else />{$site.site_header_keywords}</neq>"
name=
"keywords"
>
<else/>
<meta
content=
"<neq name= '_description' value=''>{$_description}<else />{$site.site_header_description}</neq>"
name=
"description"
>
{$site.site_name} - {$site.site_slogan}
<meta
name=
"viewport"
charset=
"UTF-8"
content=
"user-scalable=no"
>
</neq>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
</title>
<meta
property=
"qc:admins"
content=
"1403267155765154541656375"
/>
<meta
charset=
"utf-8"
>
<meta
property=
"wb:webmaster"
content=
"fdcd9430a88b1552"
/>
<meta
content=
"<neq name= '_keywords' value=''>{$_keywords}<else />{$site.site_header_keywords}</neq>"
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
name=
"keywords"
>
<meta
http-equiv=
"Access-Control-Allow-Origin"
content=
"*"
>
<meta
content=
"<neq name= '_description' value=''>{$_description}<else />{$site.site_header_description}</neq>"
<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"
>
name=
"description"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, user-scalable=no"
>
<meta
name=
"viewport"
charset=
"UTF-8"
content=
"user-scalable=no"
>
<meta
name=
"x5-fullscreen"
content=
"true"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
name=
"full-screen"
content=
"yes"
>
<meta
property=
"qc:admins"
content=
"1403267155765154541656375"
/>
<link
href=
"__THEME__/image/favicon.ico?v={$site.sys_version}"
type=
"image/x-icon"
rel=
"shortcut icon"
>
<meta
property=
"wb:webmaster"
content=
"fdcd9430a88b1552"
/>
<!-- 引入 Bootstrap -->
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<!-- <link rel="stylesheet" type="text/css" href="__THEME__/icon/iconfont.css">
<meta
http-equiv=
"Access-Control-Allow-Origin"
content=
"*"
>
<link rel="stylesheet" type="text/css" href="__APP__/css/search_3g.css">
<meta
name=
"viewport"
<style>
content=
"target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"
>
@font-face {font-family: 'iconfontNEW';src: url('__THEME__/icon/iconfontNEW.woff?v={$site.sys_version}');}
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, user-scalable=no"
>
.iconfontNEW{font-family:"iconfontNEW";}
<meta
name=
"x5-fullscreen"
content=
"true"
>
</style>
<meta
name=
"full-screen"
content=
"yes"
>
<style media="screen">
<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>
</style>
<script src="__THEMEW3G__/js/search_media.js"></script> -->
<script src="__THEMEW3G__/js/search_media.js"></script> -->
<script
src=
"__THEMEW3G__/js/jquery-1.8.3.min.js"
></script>
<script
src=
"__THEMEW3G__/js/jquery-1.8.3.min.js"
></script>
<link
href=
"__THEMEW3G__/css/common.css"
rel=
"stylesheet"
>
<link
href=
"__THEMEW3G__/css/common.css"
rel=
"stylesheet"
>
<link
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/npm/vant@2.6/lib/index.css"
/>
<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/vue/dist/vue.min.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/vant@2.6/lib/vant.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
src=
"__THEMEW3G__/js/extension.js"
charset=
"utf-8"
></script>
<script>
<script>
// $(function(){
// $(function(){
// $('#btn_search_site').click(function(){
// $('#btn_search_site').click(function(){
// var search_cate = $('#search_cate').val();
// var search_cate = $('#search_cate').val();
// var search_combo_input = $('#search_combo_input').val();
// var search_combo_input = $('#search_combo_input').val();
// if(search_combo_input != ''){
// if(search_combo_input != ''){
// if(search_cate == 'course'){
// if(search_cate == 'course'){
// window.open("{:U('course/Video/index')}"+"?search="+search_combo_input);
// window.open("{:U('course/Video/index')}"+"?search="+search_combo_input);
// }else if(search_cate == 'school'){
// }else if(search_cate == 'school'){
// window.open("{:U('school/Index/index')}"+"?search="+search_combo_input);
// window.open("{:U('school/Index/index')}"+"?search="+search_combo_input);
// }else if(search_cate == 'teacher'){
// }else if(search_cate == 'teacher'){
// window.open("{:U('classroom/Teacher/index')}"+"?search="+search_combo_input);
// window.open("{:U('classroom/Teacher/index')}"+"?search="+search_combo_input);
// }else if(search_cate == 'exams'){
// }else if(search_cate == 'exams'){
// window.open("{:U('exams/Index/paper')}"+"&search="+search_combo_input);
// window.open("{:U('exams/Index/paper')}"+"&search="+search_combo_input);
// }else if(search_cate == 'goods'){
// }else if(search_cate == 'goods'){
// window.open("{:U('mall/Goods/index')}"+"?search="+search_combo_input);
// window.open("{:U('mall/Goods/index')}"+"?search="+search_combo_input);
// }else if(search_cate == 'wenda'){
// }else if(search_cate == 'wenda'){
// window.open("{:U('wenda/Index/index')}"+"?search="+search_combo_input);
// window.open("{:U('wenda/Index/index')}"+"?search="+search_combo_input);
// }else if(search_cate == 'news'){
// }else if(search_cate == 'news'){
// window.open("{:U('news/Topic/index')}"+"?search="+search_combo_input);
// window.open("{:U('news/Topic/index')}"+"?search="+search_combo_input);
// }
// }
// }
// }
// });
// });
// $(document).keydown(function(event){
// $(document).keydown(function(event){
// var search_cate = $('#search_cate').val();
// var search_cate = $('#search_cate').val();
// var search_combo_input = $('#search_combo_input').val();
// var search_combo_input = $('#search_combo_input').val();
// if(search_combo_input != '') {
// if(search_combo_input != '') {
// if (event.keyCode == 13) {
// if (event.keyCode == 13) {
// if(search_cate == 'course'){
// if(search_cate == 'course'){
// window.open("{:U('course/Video/index')}"+"?search="+search_combo_input);
// window.open("{:U('course/Video/index')}"+"?search="+search_combo_input);
// }else if(search_cate == 'school'){
// }else if(search_cate == 'school'){
// window.open("{:U('school/Index/index')}"+"?search="+search_combo_input);
// window.open("{:U('school/Index/index')}"+"?search="+search_combo_input);
// }else if(search_cate == 'teacher'){
// }else if(search_cate == 'teacher'){
// window.open("{:U('classroom/Teacher/index')}"+"?search="+search_combo_input);
// window.open("{:U('classroom/Teacher/index')}"+"?search="+search_combo_input);
// }else if(search_cate == 'exams'){
// }else if(search_cate == 'exams'){
// window.open("{:U('exams/Index/paper')}"+"&search="+search_combo_input);
// window.open("{:U('exams/Index/paper')}"+"&search="+search_combo_input);
// }else if(search_cate == 'goods'){
// }else if(search_cate == 'goods'){
// window.open("{:U('mall/Goods/index')}"+"?search="+search_combo_input);
// window.open("{:U('mall/Goods/index')}"+"?search="+search_combo_input);
// }else if(search_cate == 'wenda'){
// }else if(search_cate == 'wenda'){
// window.open("{:U('wenda/Index/index')}"+"?search="+search_combo_input);
// window.open("{:U('wenda/Index/index')}"+"?search="+search_combo_input);
// }else if(search_cate == 'news'){
// }else if(search_cate == 'news'){
// window.open("{:U('news/Topic/index')}"+"?search="+search_combo_input);
// window.open("{:U('news/Topic/index')}"+"?search="+search_combo_input);
// }
// }
// }
// }
// }
// }
// });
// });
// });
// });
</script>
</script>
</head>
</head>
<body>
<body>
<div
id=
"app"
>
<div
id=
"app"
>
<div
class=
"layout_v"
>
<div
class=
"layout_v"
>
<van-sticky>
<van-sticky>
<van-search
<van-search
v-model=
"keyword"
v-model=
"keyword"
style=
"padding-bottom: 0 !important;"
style=
"padding-bottom: 0 !important;"
left-icon=
"__THEME__/img/serch@3x.png"
left-icon=
"__THEME__/img/serch@3x.png"
@
focus=
"onFocus"
@
focus=
"onFocus"
@
search=
"onSearch"
@
search=
"onSearch"
shape=
"round"
shape=
"round"
background=
"#ffffff"
background=
"#ffffff"
placeholder=
"请输入关键词..."
>
placeholder=
"请输入关键词..."
>
</van-search>
</van-search>
<div
v-if=
"!showHistory"
class=
"tabs_container"
style=
"margin-top: 0.5rem;"
>
<div
v-if=
"!showHistory"
class=
"tabs_container"
style=
"margin-top: 0.5rem;"
>
<div
@
click=
"onTab(idx)"
v-for=
"(opt, idx) in options"
:key=
"idx"
:class=
"idx == tab ? 'tab_item_selected' : 'tab_item_normal'"
>
<div
@
click=
"onTab(idx)"
v-for=
"(opt, idx) in options"
:key=
"idx"
<span>
{{opt.title}}
</span>
:class=
"idx == tab ? 'tab_item_selected' : 'tab_item_normal'"
>
</div>
<span>
{{opt.title}}
</span>
</div>
</div>
</div>
</van-sticky>
</van-sticky>
<template
v-if=
"showList(0)"
>
<template
v-if=
"showList(0)"
>
<div
@
click=
"onTapCourse(item)"
v-for=
"(item, idx) in options[0].items"
:key=
"idx"
class=
"home_class_item layout_v"
>
<div
@
click=
"onTapCourse(item)"
v-for=
"(item, idx) in options[0].items"
:key=
"idx"
<div
class=
"layout_h"
>
class=
"home_class_item layout_v"
>
<van-image
<div
class=
"layout_h"
>
style=
"margin-right: 0.75rem;"
<van-image
height=
"72"
style=
"margin-right: 0.75rem;"
width=
"128"
height=
"72"
fit=
"cover"
width=
"128"
:src=
"item.cover"
>
fit=
"cover"
</van-image>
:src=
"item.cover"
>
<div
class=
"weight_full layout_v"
>
</van-image>
<span
class=
"text_14_600 color_333333 van-multi-ellipsis--l2"
>
{{item.title}}
</span>
<div
class=
"weight_full layout_v"
>
<span
class=
"text_14_600 color_FF3B3B"
style=
"margin-top: 0.5rem;"
>
{{item.price}}
</span>
<span
class=
"text_14_600 color_333333 van-multi-ellipsis--l2"
>
{{item.title}}
</span>
<span
class=
"text_12_400 color_999999"
>
{{item.count}}人正在学习
</span>
<span
class=
"text_14_600 color_FF3B3B"
style=
"margin-top: 0.5rem;"
>
{{item.price}}
</span>
</div>
<span
class=
"text_12_400 color_999999"
>
{{item.count}}人正在学习
</span>
</div>
</div>
</div>
</div>
<span
style=
"margin-top: 35vh;"
v-if=
"options[0].items.length == 0"
class=
"text_14_400 color_999999 self_center"
>
没有找到!
</span>
</div>
</template>
<span
style=
"margin-top: 35vh;"
v-if=
"options[0].items.length == 0"
class=
"text_14_400 color_999999 self_center"
>
没有找到!
</span>
</template>
<template
v-if=
"showList(1)"
>
<template
v-if=
"showList(1)"
>
<div
v-for=
"(item, idx) in options[1].items"
:key=
"idx"
class=
"layout_v home_question_item"
>
<div
v-for=
"(item, idx) in options[1].items"
:key=
"idx"
class=
"layout_v home_question_item"
>
<div
v-if=
"item.price == 0"
class=
"layout_h"
>
<div
v-if=
"item.price == 0"
class=
"layout_h"
>
<div
class=
"home_item_mark_green layout_center"
>
免费
</div>
<div
class=
"home_item_mark_green layout_center"
>
免费
</div>
<span
class=
"text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
style=
"margin-right: 1.5rem;margin-left: 0.625rem;"
>
{{item.title}}
</span>
<span
class=
"text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
<div
@
click=
"onTapQuestion(item)"
class=
"home_button_green layout_center"
>
开始做题
</div>
style=
"margin-right: 1.5rem;margin-left: 0.625rem;"
>
{{item.title}}
</span>
</div>
<div
@
click=
"onTapQuestion(item)"
class=
"home_button_green layout_center"
>
开始做题
</div>
<div
v-else
class=
"layout_h"
>
</div>
<div
class=
"home_item_mark_orange layout_center"
>
付费
</div>
<div
v-else
class=
"layout_h"
>
<span
class=
"text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
style=
"margin-right: 1.5rem;margin-left: 0.625rem;"
>
{{item.title}}
</span>
<div
class=
"home_item_mark_orange layout_center"
>
付费
</div>
<div
@
click=
"onTapQuestion(item)"
class=
"home_button_orange layout_center"
>
¥{{item.price}}
</div>
<span
class=
"text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
</div>
style=
"margin-right: 1.5rem;margin-left: 0.625rem;"
>
{{item.title}}
</span>
<div
class=
"layout_h_b"
style=
"margin-top: 0.5rem;"
>
<div
@
click=
"onTapQuestion(item)"
class=
"home_button_orange layout_center"
>
¥{{item.price}}
</div>
<span
class=
"text_14_600 color_FF3B3B"
>
¥{{item.price}}
</span>
</div>
<van-image
src=
"__THEME__/img/down_load_icon.png"
width=
"13"
height=
"16"
></van-image>
<div
class=
"layout_h_b"
style=
"margin-top: 0.5rem;"
>
</div>
<span
class=
"text_14_600 color_FF3B3B"
>
¥{{item.price}}
</span>
<div
class=
"home_divider divider"
></div>
<van-image
src=
"__THEME__/img/down_load_icon.png"
width=
"13"
height=
"16"
></van-image>
</div>
</div>
<span
style=
"margin-top: 35vh;"
v-if=
"options[1].items.length == 0"
class=
"text_14_400 color_999999 self_center"
>
没有找到!
</span>
<div
class=
"home_divider divider"
></div>
</template>
</div>
<span
style=
"margin-top: 35vh;"
v-if=
"options[1].items.length == 0"
class=
"text_14_400 color_999999 self_center"
>
没有找到!
</span>
</template>
<template
v-if=
"showList(2)"
>
<template
v-if=
"showList(2)"
>
<div
@
click=
"onTapGoods(item)"
v-for=
"(item, idx) in options[2].items"
:key=
"idx"
class=
"home_item_goods layout_h"
>
<div
@
click=
"onTapGoods(item)"
v-for=
"(item, idx) in options[2].items"
:key=
"idx"
<van-image
class=
"home_item_goods layout_h"
>
style=
"margin-right: 0.75rem;"
<van-image
height=
"68"
style=
"margin-right: 0.75rem;"
width=
"128"
height=
"68"
fit=
"cover"
width=
"128"
:src=
"item.cover"
>
fit=
"cover"
</van-image>
:src=
"item.cover"
>
<div
class=
"weight_full layout_v"
>
</van-image>
<span
class=
"text_14_600 color_333333 van-multi-ellipsis--l2"
>
{{item.title}}
</span>
<div
class=
"weight_full layout_v"
>
<div
class=
"layout_h_b"
style=
"margin-top: 0.5rem;"
>
<span
class=
"text_14_600 color_333333 van-multi-ellipsis--l2"
>
{{item.title}}
</span>
<span
class=
"text_14_600 color_FF3B3B self_center"
>
¥{{item.price}}
</span>
<div
class=
"layout_h_b"
style=
"margin-top: 0.5rem;"
>
<div
class=
"item_green_button"
>
购买
</div>
<span
class=
"text_14_600 color_FF3B3B self_center"
>
¥{{item.price}}
</span>
</div>
<div
class=
"item_green_button"
>
购买
</div>
</div>
</div>
</div>
</div>
<span
style=
"margin-top: 35vh;"
v-if=
"options[2].items.length == 0"
class=
"text_14_400 color_999999 self_center"
>
没有找到!
</span>
</div>
</template>
<span
style=
"margin-top: 35vh;"
v-if=
"options[2].items.length == 0"
class=
"text_14_400 color_999999 self_center"
>
没有找到!
</span>
</template>
<!-- 热门搜索 -->
<!-- 热门搜索 -->
<div
v-if=
"showHistory"
class=
"layout_v"
>
<div
v-if=
"showHistory"
class=
"layout_v"
>
<span
class=
"search_hot_title text_12_400 color_999999"
>
历史搜索:
</span>
<span
class=
"search_hot_title text_12_400 color_999999"
>
历史搜索:
</span>
<div
class=
"layout_h_wrap search_hot_title_flow"
>
<div
class=
"layout_h_wrap search_hot_title_flow"
>
<div
v-for=
"ck in cacheKeyWorlds"
@
click=
"onHotKeyword(ck)"
class=
"search_flex_item layout_center"
>
<div
v-for=
"ck in cacheKeyWorlds"
@
click=
"onHotKeyword(ck)"
class=
"search_flex_item layout_center"
>
<span
class=
"text_14_400 color_999999"
>
{{ck}}
</span>
<span
class=
"text_14_400 color_999999"
>
{{ck}}
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- <div class="search-bodyer">
<!-- <div class="search-bodyer">
<div class="goods-eac-box">
<div class="goods-eac-box">
<div class="eac-per-ens">
<div class="eac-per-ens">
<div class="aingstoit">
<div class="aingstoit">
<input value="course" id="search_cate" type="hidden" disabled />
<input value="course" id="search_cate" type="hidden" disabled />
<p><php>
<p><php>
switch ($searchConf['search'][0]) {
switch ($searchConf['search'][0]) {
case 'school':
case 'school':
echo '机构';
echo '机构';
break;
break;
case 'teacher':
case 'teacher':
echo '讲师';
echo '讲师';
break;
break;
case 'exams':
case 'exams':
echo '考试';
echo '考试';
break;
break;
case 'goods':
case 'goods':
echo '商品';
echo '商品';
break;
break;
case 'wenda':
case 'wenda':
echo '问答';
echo '问答';
break;
break;
case 'news':
case 'news':
echo '资讯';
echo '资讯';
break;
break;
default:
default:
echo '课程';
echo '课程';
}
}
</php></p><i class="icon icon-xia"></i>
</php></p><i class="icon icon-xia"></i>
<span>
<span>
<php>if( in_array('course' , $searchConf['search']) ) {</php>
<php>if( in_array('course' , $searchConf['search']) ) {</php>
<a href="javascript:void(0)" attr="course">课程</a>
<a href="javascript:void(0)" attr="course">课程</a>
<php>}</php>
<php>}</php>
<php>if(!IS_CHILDS_HOST && in_array('school' , $searchConf['search']) ) {</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>
<eq name="Think.OPEN_SCHOOL" value="1"><a href="javascript:void(0)" attr="school">机构</a></eq>
<php>}</php>
<php>}</php>
<php>if( in_array('teacher' , $searchConf['search']) ) {</php>
<php>if( in_array('teacher' , $searchConf['search']) ) {</php>
<a href="javascript:void(0)" attr="teacher">讲师</a>
<a href="javascript:void(0)" attr="teacher">讲师</a>
<php>}</php>
<php>}</php>
<php>if( in_array('exams' , $searchConf['search']) ) {</php>
<php>if( in_array('exams' , $searchConf['search']) ) {</php>
<a href="javascript:void(0)" attr="exams">考试</a>
<a href="javascript:void(0)" attr="exams">考试</a>
<php>}</php>
<php>}</php>
<php>if( in_array('goods' , $searchConf['search']) ) {</php>
<php>if( in_array('goods' , $searchConf['search']) ) {</php>
<a href="javascript:void(0)" attr="goods">商品</a>
<a href="javascript:void(0)" attr="goods">商品</a>
<php>}</php>
<php>}</php>
<php>if( in_array('wenda' , $searchConf['search']) ) {</php>
<php>if( in_array('wenda' , $searchConf['search']) ) {</php>
<a href="javascript:void(0)" attr="wenda">问答</a>
<a href="javascript:void(0)" attr="wenda">问答</a>
<php>}</php>
<php>}</php>
<php>if( in_array('news' , $searchConf['search']) ) {</php>
<php>if( in_array('news' , $searchConf['search']) ) {</php>
<a href="javascript:void(0)" attr="news">资讯</a>
<a href="javascript:void(0)" attr="news">资讯</a>
<php>}</php>
<php>}</php>
</span>
</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>
<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">
<div class="headlines">
<h5>大家都在搜</h5>
<h5>大家都在搜</h5>
<ul id="video_list">
<ul id="video_list">
<volist name="video" id="vo">
<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>
<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>
</volist>
</ul>
</ul>
</div>
</div>
</div> -->
</div> -->
</body>
</body>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
new
Vue
({
new
Vue
({
el
:
'#app'
,
el
:
'#app'
,
data
:
function
()
{
data
:
function
()
{
return
{
return
{
keyword
:
""
,
keyword
:
""
,
showHistory
:
true
,
showHistory
:
true
,
tab
:
0
,
tab
:
0
,
options
:
[{
options
:
[{
title
:
'视频'
,
title
:
'视频'
,
items
:
[]
items
:
[]
},{
},
{
title
:
'真题'
,
title
:
'真题'
,
items
:
[]
items
:
[]
},{
},
{
title
:
'实物'
,
title
:
'实物'
,
items
:
[]
items
:
[]
}]
}],
}
cacheKeyWorlds
:
this
.
getCacheKeyWorlds
()
},
}
computed
:
{
},
showList
:
function
()
{
computed
:
{
let
tab
=
this
.
tab
showList
:
function
()
{
let
showHot
=
this
.
showHistory
let
tab
=
this
.
tab
return
function
(
idx
)
{
let
showHot
=
this
.
showHistory
return
(
idx
==
tab
)
&&
!
showHot
return
function
(
idx
)
{
}
return
(
idx
==
tab
)
&&
!
showHot
},
}
cacheKeyWorlds
:
function
()
{
}
let
item
=
localStorage
.
getItem
(
"search"
);
},
//['考研课程', '事业单位考试', '公务员考试'];
methods
:
{
return
item
?
JSON
.
parse
(
item
)
:
[];
getCacheKeyWorlds
:
function
()
{
}
let
item
=
localStorage
.
getItem
(
"search"
);
},
//['考研课程', '事业单位考试', '公务员考试'];
methods
:
{
return
item
?
JSON
.
parse
(
item
)
:
[];
onFocus
:
function
()
{
},
this
.
showHistory
=
true
onFocus
:
function
()
{
},
this
.
showHistory
=
true
onHotKeyword
:
function
(
key
)
{
},
this
.
keyword
=
key
onHotKeyword
:
function
(
key
)
{
this
.
onSearch
()
this
.
keyword
=
key
},
this
.
onSearch
()
onSearch
:
function
()
{
},
this
.
showHistory
=
false
onSearch
:
function
()
{
this
.
searchCourse
()
this
.
showHistory
=
false
this
.
searchQuestion
()
this
.
searchCourse
()
this
.
searchGoods
()
this
.
searchQuestion
()
this
.
searchSave
()
this
.
searchGoods
()
},
this
.
searchSave
()
onTab
:
function
(
idx
)
{
},
this
.
tab
=
idx
onTab
:
function
(
idx
)
{
},
this
.
tab
=
idx
//点击视频
},
onTapCourse
:
function
(
item
)
{
//点击视频
let
url
=
"{:U('course/Video/view')}"
onTapCourse
:
function
(
item
)
{
window
.
location
.
href
=
url
.
replace
(
/
\[
.*
?\]
/g
,
item
.
id
)
let
url
=
"{:U('course/Video/view')}"
},
window
.
location
.
href
=
url
.
replace
(
/
\[
.*
?\]
/g
,
item
.
id
)
//点击真题
},
onTapQuestion
:
function
(
item
)
{
//点击真题
if
(
MID
<=
0
)
{
onTapQuestion
:
function
(
item
)
{
ui
.
confirm
(
'请先登录'
,
{
if
(
MID
<=
0
)
{
yes
:
function
()
{
ui
.
confirm
(
'请先登录'
,
{
window
.
location
.
href
=
"{:U('basic/Passport/login')}"
;
yes
:
function
()
{
}
window
.
location
.
href
=
"{:U('basic/Passport/login')}"
;
})
}
return
})
}
return
if
(
item
.
price
==
0
)
{
}
let
url
=
"{:U('exams/index/examsroom')}"
+
"&paper_id="
+
item
.
id
+
"&joinType=1"
if
(
item
.
price
==
0
)
{
window
.
location
.
href
=
url
let
url
=
"{:U('exams/index/examsroom')}"
+
"&paper_id="
+
item
.
id
+
"&joinType=1"
}
else
{
window
.
location
.
href
=
url
$
.
ajax
({
}
else
{
type
:
"POST"
,
$
.
ajax
({
url
:
"{:U('exams/index/getPayUrl')}"
,
type
:
"POST"
,
data
:{
url
:
"{:U('exams/index/getPayUrl')}"
,
paper_id
:
item
.
id
,
data
:
{
},
paper_id
:
item
.
id
,
dataType
:
"json"
,
},
success
:
function
(
res
){
dataType
:
"json"
,
var
res
=
getResponseData
(
res
)
success
:
function
(
res
)
{
if
(
res
.
status
==
1
){
var
res
=
getResponseData
(
res
)
window
.
location
.
href
=
res
.
data
if
(
res
.
status
==
1
)
{
}
else
{
window
.
location
.
href
=
res
.
data
ui
.
error
(
res
.
message
)
}
else
{
}
ui
.
error
(
res
.
message
)
}
}
})
}
}
})
},
}
//点击实物
},
onTapGoods
:
function
(
item
)
{
//点击实物
let
url
=
"{:U('mall/Goods/view')}"
onTapGoods
:
function
(
item
)
{
window
.
location
.
href
=
url
.
replace
(
/
\[
.*
?\]
/g
,
item
.
id
)
let
url
=
"{:U('mall/Goods/view')}"
},
window
.
location
.
href
=
url
.
replace
(
/
\[
.*
?\]
/g
,
item
.
id
)
//搜索课程
},
searchCourse
:
function
()
{
//搜索课程
let
that
=
this
searchCourse
:
function
()
{
let
on
=
"{$marketConf['order_switch']}"
==
1
let
that
=
this
$
.
ajax
({
let
on
=
"{$marketConf['order_switch']}"
==
1
type
:
"GET"
,
$
.
ajax
({
url
:
"{:U('course/Video/index')}"
+
"?api=1&search="
+
that
.
keyword
,
type
:
"GET"
,
dataType
:
"json"
,
url
:
"{:U('course/Video/index')}"
+
"?api=1&search="
+
that
.
keyword
,
success
:
function
(
res
)
{
dataType
:
"json"
,
let
array
=
res
.
data
.
length
>
0
?
res
.
data
:
[]
success
:
function
(
res
)
{
that
.
options
[
0
].
items
=
array
.
map
(
r
=>
{
let
array
=
res
.
data
.
length
>
0
?
res
.
data
:
[]
let
pi
=
r
.
mz_price
that
.
options
[
0
].
items
=
array
.
map
(
r
=>
{
return
{
let
pi
=
r
.
mz_price
id
:
r
.
id
,
return
{
title
:
r
.
video_title
,
id
:
r
.
id
,
cover
:
r
.
image_url
,
title
:
r
.
video_title
,
price
:
pi
.
price
==
0
?
'免费'
:
(
'¥'
+
pi
.
price
),
cover
:
r
.
image_url
,
count
:
on
?
r
.
video_order_count_mark
:
r
.
video_order_count
price
:
pi
.
price
==
0
?
'免费'
:
(
'¥'
+
pi
.
price
),
}
count
:
on
?
r
.
video_order_count_mark
:
r
.
video_order_count
})
}
}
})
})
}
},
})
//搜索题目
},
searchQuestion
:
function
()
{
//搜索题目
let
that
=
this
searchQuestion
:
function
()
{
$
.
ajax
({
let
that
=
this
type
:
"GET"
,
$
.
ajax
({
url
:
"{:U('exams/Index/paper')}"
+
"&api=1&search="
+
that
.
keyword
,
type
:
"GET"
,
dataType
:
"json"
,
url
:
"{:U('exams/Index/paper')}"
+
"&api=1&search="
+
that
.
keyword
,
success
:
function
(
res
)
{
dataType
:
"json"
,
if
(
res
.
status
==
1
)
{
success
:
function
(
res
)
{
let
result
=
res
.
data
if
(
res
.
status
==
1
)
{
let
array
=
result
.
data
.
length
>
0
?
result
.
data
:
[]
let
result
=
res
.
data
that
.
options
[
1
].
items
=
array
.
map
(
r
=>
{
let
array
=
result
.
data
.
length
>
0
?
result
.
data
:
[]
return
{
that
.
options
[
1
].
items
=
array
.
map
(
r
=>
{
id
:
r
.
exams_paper_id
,
return
{
title
:
r
.
exams_paper_title
,
id
:
r
.
exams_paper_id
,
price
:
r
.
price
title
:
r
.
exams_paper_title
,
}
price
:
r
.
price
})
}
}
})
}
}
})
}
},
})
//搜索物品
},
searchGoods
:
function
()
{
//搜索物品
let
that
=
this
searchGoods
:
function
()
{
$
.
ajax
({
let
that
=
this
type
:
"GET"
,
$
.
ajax
({
url
:
"{:U('mall/Goods/index')}"
+
"?api=1&search="
+
that
.
keyword
,
type
:
"GET"
,
dataType
:
"json"
,
url
:
"{:U('mall/Goods/index')}"
+
"?api=1&search="
+
that
.
keyword
,
success
:
function
(
res
)
{
dataType
:
"json"
,
let
array
=
res
.
data
.
length
>
0
?
res
.
data
:
[]
success
:
function
(
res
)
{
that
.
options
[
2
].
items
=
array
.
map
(
r
=>
{
let
array
=
res
.
data
.
length
>
0
?
res
.
data
:
[]
return
{
that
.
options
[
2
].
items
=
array
.
map
(
r
=>
{
id
:
r
.
uid
,
return
{
title
:
r
.
title
,
id
:
r
.
uid
,
cover
:
r
.
cover
,
title
:
r
.
title
,
price
:
r
.
price
cover
:
r
.
cover
,
}
price
:
r
.
price
})
}
}
})
})
}
},
})
searchSave
:
function
()
{
},
let
item
=
localStorage
.
getItem
(
"search"
);
searchSave
:
function
()
{
//['考研课程', '事业单位考试', '公务员考试'];
let
item
=
localStorage
.
getItem
(
"search"
);
let
data
=
item
?
JSON
.
parse
(
item
)
:
[];
//['考研课程', '事业单位考试', '公务员考试'];
if
(
data
.
indexOf
(
this
.
keyword
)
<
0
)
{
let
data
=
item
?
JSON
.
parse
(
item
)
:
[];
data
.
push
(
this
.
keyword
);
if
(
data
.
indexOf
(
this
.
keyword
)
<
0
)
{
}
data
.
push
(
this
.
keyword
);
if
(
data
.
length
>
8
)
{
}
data
.
shift
();
if
(
data
.
length
>
8
)
{
}
data
.
shift
();
localStorage
.
setItem
(
"search"
,
JSON
.
stringify
(
data
));
}
this
.
cacheKeyWorlds
();
localStorage
.
setItem
(
"search"
,
JSON
.
stringify
(
data
));
}
this
.
cacheKeyWorlds
();
}
}
})
}
</script>
})
</script>
</html>
</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