we254/addons/fy_lessonv2/inc/mobile/lesson.php | ●●●●● patch | view | raw | blame | history | |
we254/addons/fy_lessonv2/inc/mobile/search.php | ●●●●● patch | view | raw | blame | history | |
we254/addons/fy_lessonv2/template/mobile/default/lesson.html | ●●●●● patch | view | raw | blame | history |
we254/addons/fy_lessonv2/inc/mobile/lesson.php
@@ -204,7 +204,7 @@ if($uid){ /* vip免费学习课程对于普通课程生效 */ if($lesson['lesson_type']==0 || $lesson['lesson_type']==3){ if($lesson['lesson_type']==0 || $lesson['lesson_type']==3 || $lesson['lesson_type']==5){ $memberVip_list = pdo_fetchall("SELECT level_id FROM " .tablename($this->table_member_vip). " WHERE uid=:uid AND validity>:validity", array(':uid'=>$uid,':validity'=>time())); if(!empty($memberVip_list)){ foreach($memberVip_list as $v){ we254/addons/fy_lessonv2/inc/mobile/search.php
@@ -82,7 +82,7 @@ /* 综合排序 */ if ($sort == 'general') { $condition .= " AND a.lesson_type=0"; $condition .= " AND a.lesson_type=0 AND (a.knowledge_id is null or trim(a.knowledge_id)='') "; $sortname = '普通课程'; } elseif ($sort == 'apply') { $condition .= " AND a.lesson_type=1"; @@ -91,7 +91,7 @@ $condition .= " AND a.lesson_type=3"; $sortname = '直播课程'; } elseif ($sort == 'knowledge') { $condition .= " AND a.lesson_type=5"; $condition .= " AND a.lesson_type=0 AND (a.knowledge_id is not null and trim(a.knowledge_id)<>'') "; $sortname = '知识点课'; } elseif ($sort == 'price') { $order = " ORDER BY a.price ASC, a.displayorder DESC "; we254/addons/fy_lessonv2/template/mobile/default/lesson.html
@@ -1033,7 +1033,7 @@ <a href="javascript:;" {if !empty($collect)}class="cur"{/if}><i class="ico ico-collect"></i>收藏</a> </li> {if $lesson['lesson_type']==0} {if $lesson['lesson_type']==0 || $lesson['lesson_type']==5} {if $show_isbuy} <li class="btn-buy one-btn-buy"><a href="javascript:;" class="buy buy_now study"><p class="num"><em class="money"></em>{php echo $study_name ? $study_name : '开始学习';}</p></a></li> {else}