| | |
| | | <div class="search flex0"> |
| | | <i class="icon_search flex_g0"></i> |
| | | <input type="text" name="keyword" value="{$_GPC['keyword']}" placeholder="{php echo $index_page['searchBox'] ? $index_page['searchBox'] : '搜索您感兴趣的课程';}"> |
| | | <button class="search-btn">搜索aa</button> |
| | | <button class="search-btn">搜索</button> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | <!-- /课程属性 --> |
| | | |
| | | <!-- 知识点课分类 --> |
| | | <div class="nav hidden" data-active="knowledge"> |
| | | <div class="nav1 hidden" data-active="knowledge"> |
| | | <div class="nav_panel nav_panel-know"> |
| | | <!-- 顶级分类 --> |
| | | <ul class="nav_menu nav_panel_know_mt"> |
| | | <a href="javascript:;"> |
| | | <li class="nav_menu_item {if !$_GPC['knowledge_pid']}nav_menu_item_selected{/if}"><img class="nav_menu_item-icon" src="{MODULE_URL}template/mobile/{$template}/images/ico-allcategory.png">推荐知识点</li> |
| | | <li class="nav_menu_item {if !$_GPC['knowledge_pid']}nav_menu_item_selected{/if}">推荐知识点</li> |
| | | </a> |
| | | {loop $knowledgelist $key $parent} |
| | | <a href="javascript:;"> |
| | | <li class="nav_menu_item {if $_GPC['knowledge_pid']==$parent['knowledge_pid']}nav_menu_item_selected{/if}"><img class="nav_menu_item-icon" src="{$_W['attachurl']}{$parent['ico']}">{$parent['name']}</li> |
| | | <li class="nav_menu_item {if $_GPC['knowledge_pid']==$parent['id']}nav_menu_item_selected{/if}">{$parent['name']}</li> |
| | | </a> |
| | | {/loop} |
| | | </ul> |
| | |
| | | <!-- 推荐二级分类 --> |
| | | <ul class="nav_menu nav_panel-know_st" {if !$_GPC['knowledge_pid']}style="display:block;"{/if}"> |
| | | <a href="{php echo $this->createMobileUrl('search')}&keyword={$keyword}&sort={$sort}&attr1={$attr1}&attr2={$attr2}"> |
| | | <li class="nav_menu_item {if !$_GPC['knowledge_id']}nav_menu_item_selected{/if}"><img class="nav_menu_item-icon" src="{$all_category_ico}">全部</li> |
| | | <li class="nav_menu_item {if !$_GPC['knowledge_id']}nav_menu_item_selected{/if}">全部</li> |
| | | </a> |
| | | {loop $hot_knowledge $hot} |
| | | <a href="{php echo $hot['link'] ? $hot['link'] : $this->createMobileUrl('search', array('knowledge_id'=>$hot['id']))}&keyword={$keyword}&sort={$sort}&attr1={$attr1}&attr2={$attr2}"> |
| | | <li class="nav_menu_item {if !$_GPC['knowledge_pid'] && ($_GPC['knowledge_id']==$hot['id'])}nav_menu_item_selected{/if}"><img class="nav_menu_item-icon" src="{$_W['attachurl']}{$hot['ico']}">{$hot['name']}</li> |
| | | <li class="nav_menu_item {if !$_GPC['knowledge_pid'] && ($_GPC['knowledge_id']==$hot['id'])}nav_menu_item_selected{/if}">{$hot['name']}</li> |
| | | </a> |
| | | {/loop} |
| | | </ul> |
| | | <!-- 二级分类 --> |
| | | {loop $knowledgelist $know} |
| | | <ul class="nav_menu nav_panel-know_st" {if $_GPC['knowledge_pid']==$know['id']}style="display:block;"{/if}> |
| | | <a href="{php echo $know['link'] ? $know['link'] : $this->createMobileUrl('search', array('cat_id'=>$know['id'],'pid'=>$know['id'])).'&keyword='.$keyword.'&sort='.$sort.'&attr1='.$attr1.'&attr2='.$attr2;}"> |
| | | <li class="nav_menu_item {if ($_GPC['knowledge_pid']==$_GPC['knowledge_id']) && ($_GPC['knowledge_id']==$know['id'])}nav_menu_item_selected{/if}"><img class="nav_menu_item-icon" src="{$_W['attachurl']}{$know['ico']}">{$know['name']}</li> |
| | | <a href="{php echo $know['link'] ? $know['link'] : $this->createMobileUrl('search', array('knowledge_id'=>$know['id'],'pid'=>$know['id'])).'&keyword='.$keyword.'&sort='.$sort.'&attr1='.$attr1.'&attr2='.$attr2;}"> |
| | | <li class="nav_menu_item {if ($_GPC['knowledge_pid']==$_GPC['knowledge_id']) && ($_GPC['knowledge_id']==$know['id'])}nav_menu_item_selected{/if}">{$know['name']}</li> |
| | | </a> |
| | | {loop $know['child'] $child} |
| | | <a href="{php echo $child['link'] ? $child['link'] : $this->createMobileUrl('search', array('cat_id'=>$child['id'],'pid'=>$child['parentid'])).'&keyword='.$keyword.'&sort='.$sort.'&attr1='.$attr1.'&attr2='.$attr2;}"> |
| | | <li class="nav_menu_item {if $_GPC['knowledge_id']==$child['id']}nav_menu_item_selected{/if}"><img class="nav_menu_item-icon" src="{$_W['attachurl']}{$child['ico']}">{$child['name']}</li> |
| | | <a href="{php echo $child['link'] ? $child['link'] : $this->createMobileUrl('search', array('knowledge_id'=>$child['id'],'knowledge_pid'=>$child['parentid'])).'&keyword='.$keyword.'&sort='.$sort.'&attr1='.$attr1.'&attr2='.$attr2;}"> |
| | | <li class="nav_menu_item {if $_GPC['knowledge_id']==$child['id']}nav_menu_item_selected{/if}">{$child['name']}</li> |
| | | </a> |
| | | {/loop} |
| | | </ul> |
| | |
| | | </div> |
| | | </div> |
| | | <!-- /知识点课分类 --> |
| | | |
| | | <div class="mark hidden"></div> |
| | | |
| | | <!-- 课程列表 --> |
| | |
| | | // /* 知识点分类 */ |
| | | function showknowledge(){ |
| | | closeCondition(); |
| | | $(".nav").removeClass("hidden"); |
| | | $(".nav1").removeClass("hidden"); |
| | | $(".mark").removeClass("hidden"); |
| | | } |
| | | $(".nav_panel_know_mt").on("click", 'a', function() { |
| | |
| | | $(".sort_list_grid").addClass("hidden"); |
| | | $(".nav").addClass("hidden"); |
| | | $(".attribute1").addClass("hidden"); |
| | | $(".attribute2").addClass("hidden"); |
| | | $(".attribute2").addClass("hidden"); |
| | | $(".nav1").addClass("hidden"); |
| | | $(".mark").addClass("hidden"); |
| | | } |
| | | </script> |