zhangmeng
2020-09-27 1265f2187be7cb42add0741d0e262980f0e7c127
修改手机端按知识点搜索不出来的bug
2 files modified
4 ■■■■ changed files
we254/addons/fy_lessonv2/inc/mobile/search.php 2 ●●● patch | view | raw | blame | history
we254/addons/fy_lessonv2/template/mobile/default/search.html 2 ●●● patch | view | raw | blame | history
we254/addons/fy_lessonv2/inc/mobile/search.php
@@ -73,7 +73,7 @@
    /* 按知识点搜索 */
    if ($know_id > 0) {
        $condition .= " AND (a.knowledge_pid='{$know_id}' OR a.knowledge_id='{$know_id}')";
        $condition .= " AND (FIND_IN_SET('{$know_id}',a.knowledge_pid) OR FIND_IN_SET('{$know_id}',a.knowledge_id) )";
        $nowknow = pdo_fetch("SELECT name FROM " . tablename("fy_lesson_knowledge_point") . " WHERE uniacid='{$uniacid}' AND id='{$know_id}'");
        $knowledgename = $nowknow['name'];
    } else {
we254/addons/fy_lessonv2/template/mobile/default/search.html
@@ -140,7 +140,7 @@
        </ul>
        <!-- 推荐二级分类 -->
        <ul name="nav_st2" class="nav_menu" {if !$_GPC['knowledge_pid']}style="display:block;"{/if}">
            <a href="{php echo $this->createMobileUrl('search')}}&searchtype={$searchtype}&keyword={$keyword}&sort={$sort}&cat_id={$cat_id}&pid={$pid}&attr1={$attr1}&attr2={$attr2}">
            <a href="{php echo $this->createMobileUrl('search')}&searchtype={$searchtype}&keyword={$keyword}&sort={$sort}&cat_id={$cat_id}&pid={$pid}&attr1={$attr1}&attr2={$attr2}">
                <li class="nav_menu_item {if !$_GPC['knowledge_id']}nav_menu_item_selected{/if}">全部</li>
            </a>
            {loop $hot_knowledge $hot}