zm
2020-09-11 80527f8035fb8e0a6b954f6f022a549d38ee422a
we254/addons/fy_lessonv2/template/mobile/default/search.html
@@ -125,16 +125,16 @@
<!-- /课程属性 -->
<!-- 知识点课分类 -->
<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['knowledge_pid']}nav_menu_item_selected{/if}">{$parent['name']}</li>
         </a>
         {/loop}
      </ul>
@@ -142,23 +142,23 @@
      <!-- 推荐二级分类 -->
      <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'],'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>
@@ -166,7 +166,6 @@
   </div>
</div>
<!-- /知识点课分类 -->
<div class="mark hidden"></div>
<!-- 课程列表 -->
@@ -247,7 +246,7 @@
// /* 知识点分类 */
function showknowledge(){
   closeCondition();
   $(".nav").removeClass("hidden");
   $(".nav1").removeClass("hidden");
   $(".mark").removeClass("hidden");
}
$(".nav_panel_know_mt").on("click", 'a', function() {
@@ -269,6 +268,7 @@
  $(".nav").addClass("hidden");
  $(".attribute1").addClass("hidden");
  $(".attribute2").addClass("hidden");
  $(".nav1").addClass("hidden");
  $(".mark").addClass("hidden");
}
</script>