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
09d77445
Commit
09d77445
authored
May 15, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
T
parent
07aa07f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
382 deletions
+2
-382
apps/classroom/Tpl/default/Vip/index_w3g.html
+2
-0
apps/course/Tpl/default/Video/index_w3g.html
+0
-382
No files found.
apps/classroom/Tpl/default/Vip/index_w3g.html
View file @
09d77445
...
...
@@ -170,6 +170,8 @@
},
created
:
function
(){
document
.
title
=
"会员信息"
let
vipInfo
=
{:
json_encode
(
$vipInfo
)};
console
.
log
(
vipInfo
)
},
computed
:
{
...
...
apps/course/Tpl/default/Video/index_w3g.html
View file @
09d77445
<include
file=
"__THEME__/public_header_w3g"
/>
<!-- <link rel="stylesheet" href="__APP__/css/course_3g.css">
<style>
.icon-01{background-image:url(__THEME__/icon/icon.png);width:8px;height:12px;background-position:-220px -219px}
.icon-02{margin-left:5px;background-image:url(__THEME__/icon/icon.png);width:12px;height:7px;background-position:-469px -172px}
.classlist .huodong{width:70px;height:20px;background:#FF541F;display:inline-block;position:absolute;right:4px;bottom:0;text-align:center;color:#fff;line-height:20px;border-radius: 4px;z-index:2;}
.classlist .huodong i{font-size:14px;margin-right:2px;}
.jiujiunone-class-id.active {
color: #00BED4 !important;
}
</style> -->
<style>
body
{
...
...
@@ -100,190 +89,6 @@
</van-list>
</div>
</div>
<!--选择价格区间弹框-->
<!-- <div class="jiujiunone-class-bg"></div>
<div class="jiujiunone-class">
<div class="jiujiunone-class-title">分类筛选</div>
<div class="jiujiunone-class-box">
<volist name="selCate" id="top">
<div class="jiujiunone-class-list">
<div class="jiujiunone-class-base jiujiunone-class-id <php>if($_GET['cateId'] == $top['id']){</php>active<php>}</php>" data-url="{:U('course/Video/index',array_merge($default_params,['cateId'=>$top['id']]))}">{$top.title}</div>
<div class="jiujiunone-class-next">
<volist name="top.child" id="child">
<a href="javascript:;" class="jiujiunone-class-item jiujiunone-class-id <php>if($_GET['cateId'] == $child['id']){</php>active<php>}</php>" data-url="{:U('course/Video/index',array_merge($default_params,['cateId'=>$child['id']]))}">{$child.title}</a>
</volist>
</div>
</div>
</volist>
</div>
<div class="jiujiunone-class-bottom">
<div class="jiujiunone-class-dete">确定</div>
</div>
</div> -->
<!-- <div class="selebox"></div>
<div class="cover"></div> -->
<!-- <div class="min-height-wrap">
<div class="maskbox"></div>
<div class="body">
<div class="selectdiv"> -->
<!-- <div>
<dl>
<dt>分类:<span class="<php>if(!$_GET['cateId']){</php>on<php>}</php>"><a href="{:U('course/Video/index',array_merge($default_params,['cateId'=>'']))}">不限</a></span></dt>
<volist name="selCate[0]" id="vo">
<dt class="<eq name='vo.zy_currency_category_id' value='$selectedCates[0]'>on</eq>">
<a href="{:U('course/Video/index',array_merge($default_params,['cateId'=>$vo['zy_currency_category_id']]))}">{$vo['title']}</a>
</dt>
</volist>
</dl>
<php>
unset($selCate[0]);
$level = 0;
$cate_params = '';
</php>
<volist name="selCate" id="subCate">
<php>
if(!$subCate){
continue;
}
$cate_params .= ','.$selectedCates[$level];
$level++;
</php>
<dl>
<dt class="<php>if(!$selectedCates[$level]){</php>on<php>}</php>">
<a href="{:U('course/Video/index',array_merge($default_params,['cateId'=>$cate_params]))}">不限</a>
</dt>
<volist name="subCate" id="vo">
<dt class="<eq name='vo.zy_currency_category_id' value='$selectedCates[$level]'>on</eq>">
<a href="{:U('course/Video/index',array_merge($default_params,['cateId'=>$cate_params.','.$vo['zy_currency_category_id']]))}">{$vo['title']}</a>
</dt>
</volist>
</dl>
</volist>
</div> -->
<!-- <php>if($vip_levels){</php>
<div>
<dl>
<dt>会员:<span class="<php>if(!$_GET['vip_id']){</php>on<php>}</php>"><a href="{:U('course/Video/index',array_merge($default_params,['vip_id'=>'']))}">不限</a></span>
</dt>
<volist name="vip_levels" id="vo">
<dt <if condition="$_GET['vip_id'] eq $key">class="on"</if>>
<a href="{:U('course/Video/index',array_merge($default_params,['vip_id'=>$key]))}">{$vo}<span class="icon-ck"></span></a>
</dt>
</volist>
</dl>
</div>
<php>}</php> -->
<!-- <div>
<dl class="margin-left">
<dt>类型:</dt>
<dt <eq name="vtype" value="2">class="on"</eq>><a href="{:U('course/Video/index',array_merge($default_params,['vtype'=>2]))}">直播</a></dt>
<dt <eq name="vtype" value="1">class="on"</eq>><a href="{:U('course/Video/index',array_merge($default_params,['vtype'=>1]))}">点播</a></dt>
<dt <eq name="vtype" value="6">class="on"</eq>><a href="{:U('course/Video/index',array_merge($default_params,['vtype'=>6]))}">班级</a></dt>
</dl>
</div>
<div>
<dl class="margin-left">
<dt>排序:</dt>
<dt <eq name="orderBy" value="new">class="on"</eq>><a href="{:U('course/Video/index',array_merge($default_params,['orderBy'=>'new']))}">最新</a></dt>
<dt <eq name="orderBy" value="scoredesc">class="on"</eq>><a href="{:U('course/Video/index',array_merge($default_params,['orderBy'=>'scoredesc']))}">评分</a>
</dt>
<php>if($orderBy == 't_price'){</php>
<dt <eq name="orderBy" value="t_price">class="on"</eq>><a href="{:U('course/Video/index',array_merge($default_params,['orderBy'=>'t_price_down']))}">价格
<i class="icon-01"></i></a></dt>
<php>}else{</php>
<dt <eq name="orderBy" value="t_price_down">class="on"</eq>><a href="{:U('course/Video/index',array_merge($default_params,['orderBy'=>'t_price']))}">价格
<i class="icon-01"></i></a></dt>
<php>}</php>
<dt class="max_wid_padding">价格区间 <i class="icon-02"></i></dt>
</dl>
</div>
<div class="max_wid_pad_box" style="border: 0;" name="group-list">
<a href="{:U('course/Video/index',array_merge($default_params,['lower'=>'']))}" <eq name="lower" value="1">class="on"</eq>>不限</a>
<a href="{:U('course/Video/index',array_merge($default_params,['lower'=>'0,99']))}" <eq name="Think.get.lower"
value="0,99">class="on"</eq>>¥99以下<span class="icon-ck"></span></a>
<a href="{:U('course/Video/index',array_merge($default_params,['lower'=>'100,499']))}" <eq name="Think.get.lower"
value="100,499">class="on"</eq>>¥100-499<span class="icon-ck"></span></a>
<a href="{:U('course/Video/index',array_merge($default_params,['lower'=>'500,1000']))}" <eq name="Think.get.lower"
value="500,1000">class="on"</eq>>¥500,1000<span class="icon-ck"></span></a>
<a href="{:U('course/Video/index',array_merge($default_params,['lower'=>'1000,']))}" <eq name="Think.get.lower"
value="1000,">class="on"</eq>">¥1000以上<span class="icon-ck"></span></a>
</div>
<div class="setmonry max_wid_pad_box" style="display: none;">
<label for="">自定义价格:</label> <input name="lower" placeholder="最低价" type="text"> - <input name="toper" placeholder="最高价"
type="text">
</div>
<div class="jiujiunone">
<php>if($default_params){</php>
<div style="line-height: 32px"><a class="fl screen prevValue" href="{:U('course/Video/index')}">清空条件</a></div>
<php>}</php>
<span class="jiujiunone_span posabs_span">课程分类</span>
<div class="clickoffon" onclick="clickoffon(this)">筛选</div>
</div>
</div> -->
<!-- <php>if($cateId){</php>
<div class="searchdiv">在“<span>{:mStr(t($title),10)}</span>”分类下,找到{$list_data.count}门课程</div>
<php>}</php>
<ul class="classlist clearfix" style="float:left;width:100%">
<php>if($list_data['data']){</php>
<volist name="list_data['data']" id="vo">
<li>
<a href="{$vo['view_url']}">
<strong>
<if condition="$vo['event_type_info']">
<span class="huodong">{$vo['event_type_info']['text']}</span>
</if>
<img class="lazyload" data-original="{:getCover($vo['cover'],580 , 320)}" alt="">
<php>if($vo['type'] == 1 && $vo['is_buy_video']){</php>
<span class="hasbuy">已购买</span>
<php>}</php>
<php>if($vo['type'] == 2 && $vo['is_buy_live']){</php>
<span class="hasbuy">已购买</span>
<php>}</php>
</strong>
<span>
<h4>
{$vo['video_title']}
</h4>
<div class="clearfix">
<em>
<php>if($vo['mz_price']['price'] == 0) {</php>
<i style="color: #39b75d;">免费</i>
<php>} else {</php>
<i style="color: #ff4000;">¥{$vo['mz_price']['price']}</i>
<php>}</php>
</em>
<em>
<php>if($marketConf['order_switch'] == 1) {</php>{$vo['video_order_count_mark']}<php>}else{</php>{$vo['video_order_count']}<php>}</php>人在学
</em>
</div>
</span>
</a>
</li>
</volist>
<php>}else{</php>
<include file="__THEME__/no_data_w3g" />
<php>}</php>
</ul>
</div>
<php>if($list_data['data']){</php>
<div class="loadding">
<if condition="$list_data['nowPage'] eq $list_data['totalPages']">
<div>再拉也没有了</div>
<else />正在加载更多。。
</if>
</div>
<a class="backtop"></a>
<php>}</php>
</div>-->
<script>
...
...
@@ -414,192 +219,5 @@
}
})
function
clickoffon
(
a
)
{
var
_this
=
$
(
a
)
if
(
_this
.
html
()
==
"收起"
)
{
_this
.
html
(
"筛选"
);
$
(
".prevValue"
).
css
(
"display"
,
"none"
)
$
(
".clickoffon"
).
css
(
"background"
,
"none"
);
$
(
".clickoffon"
).
css
(
"color"
,
"#979797"
);
$
(
".clickoffon"
).
css
(
"marginRight"
,
"0"
);
$
(
".clickoffon"
).
css
(
"padding"
,
"0 0"
);
$
(
".jiujiunone_span"
).
css
(
"display"
,
"inline"
);
$
(
".selectdiv>div"
).
css
(
"display"
,
"none"
);
$
(
".jiujiunone"
).
css
(
"display"
,
"block"
);
$
(
".selebox"
).
hide
()
$
(
"body"
).
css
(
"overflow-y"
,
"auto"
)
}
else
{
_this
.
html
(
"收起"
);
$
(
".prevValue"
).
css
(
"display"
,
"block"
);
$
(
".clickoffon"
).
css
(
"backgroundColor"
,
"#00BED4"
);
$
(
".clickoffon"
).
css
(
"color"
,
"white"
);
$
(
".clickoffon"
).
css
(
"marginRight"
,
"0"
);
$
(
".clickoffon"
).
css
(
"padding"
,
"0 10px"
);
$
(
".jiujiunone_span"
).
css
(
"display"
,
"none"
);
$
(
".selectdiv>div"
).
css
(
"display"
,
"block"
);
$
(
".max_wid_pad_box"
).
hide
()
$
(
".selebox"
).
show
()
$
(
"body"
).
css
(
"overflow-y"
,
"hidden"
)
$
(
".jiujiunone"
).
css
(
"display"
,
"block"
);
}
}
$
(
function
()
{
setsearchUrl
=
window
.
location
.
search
;
function
removeByValue
(
arr
,
val
)
{
for
(
var
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
if
(
arr
[
i
]
==
val
)
{
arr
.
splice
(
i
,
1
);
break
;
}
}
}
$
(
".hd"
).
click
(
function
()
{
if
(
$
(
".maskbox"
).
css
(
"display"
)
==
"none"
)
{
$
(
".maskbox"
).
css
({
"display"
:
"block"
});
}
else
{
$
(
".maskbox"
).
css
({
"display"
:
"none"
});
}
});
var
p
=
1
;
$
(
window
).
scroll
(
function
()
{
var
scrollTop
=
$
(
this
).
scrollTop
();
var
scrollHeight
=
$
(
document
).
height
();
var
windowHeight
=
$
(
this
).
height
();
if
(
scrollHeight
-
(
scrollTop
+
windowHeight
)
<
60
)
{
if
(
!
p
||
p
>=
parseInt
(
"{$list_data['totalPages']}"
))
{
$
(
'.loadding'
).
html
(
'<div>再拉也没有了</div>'
);
return
false
;
}
else
{
p
=
p
+
1
;
ajaxBang
();
}
}
});
//请求事件
/*if ($("body").height() < $(window).height()) {
ajaxBang()
}*/
function
ajaxBang
()
{
$
.
ajax
({
type
:
"GET"
,
url
:
"{:U('course/Video/index')}"
,
data
:
"p="
+
p
+
"&orderBy={$_GET['orderBy']}&cateId={$_GET['cateId']}&vtype={$_GET['vtype']}&charge={$_GET['charge']}&videofile={$_GET['videofile']}&eaxm_id={$_GET['eaxm_id']}&lower={$_GET['lower']}&mhm_id={$_GET['mhm_id']}&best={$_GET['best']}&vip_id={$_GET['vip_id']}"
,
dataType
:
"json"
,
success
:
function
(
data
)
{
$
(
".classlist"
).
append
(
data
.
data
)
if
(
!
p
||
p
>=
data
.
totalPages
)
{
$
(
'.loadding'
).
html
(
'<div>再拉也没有了</div>'
)
return
false
;
}
else
{
p
=
data
.
nowPage
+
1
;
//下一页
}
}
});
}
});
function
replaceParamVal
(
paramName
,
replaceWith
)
{
var
oUrl
=
this
.
location
.
href
.
toString
();
var
re
=
eval
(
'/('
+
paramName
+
'=)([^&]*)/gi'
);
var
nUrl
=
oUrl
.
replace
(
re
,
paramName
+
'='
+
replaceWith
);
this
.
location
=
nUrl
;
window
.
location
.
href
=
nUrl
}
$
(
"input[name='toper'],input[name='lower'"
).
blur
(
function
()
{
if
(
$
(
"input[name='toper']"
).
val
()
==
""
||
$
(
"input[name='lower']"
).
val
()
==
""
)
{
return
;
}
var
up
=
$
(
"input[name='lower']"
).
val
();
var
down
=
$
(
"input[name='toper']"
).
val
();
if
(
up
.
match
(
/^
\d
+$/
)
&&
down
.
match
(
/^
\d
+$/
))
{
value
=
up
+
','
+
down
;
}
else
{
ui
.
error
(
"请输入数字"
);
return
false
;
}
if
(
window
.
location
.
href
.
indexOf
(
"lower"
)
==
-
1
)
{
window
.
location
.
href
=
window
.
location
.
href
+
"?lower="
+
up
+
","
+
down
;
}
else
{
replaceParamVal
(
"lower"
,
up
+
","
+
down
)
}
});
if
(
$
(
".clickoffon"
).
html
()
==
"收起"
)
{
}
else
{
$
(
".prevValue"
).
css
(
"display"
,
"none"
)
}
</script>
<!-- <script type="text/javascript">
$(document).ready(function() {
$(".nav_list ul li:eq(1)").addClass("on");
});
$(".max_wid_padding").on("click", function() {
if ($(".max_wid_pad_box").css("display") == "none") {
$(".max_wid_pad_box").css("display", "flex")
} else {
$(".max_wid_pad_box").css("display", "none")
}
})
$(".intent .intent-info span").click(function() {
$(".intent .intent-info span").removeClass("active");
$(this).addClass("active");
$(".intent .intent-btn").addClass("active");
});
// 课程分类
$(".jiujiunone .jiujiunone_span").click(function() {
$(this).addClass("active");
$(".jiujiunone-class").show()
$(".jiujiunone-class-bg").show()
});
// 确定
$(".jiujiunone-class .jiujiunone-class-dete").click(function() {
$(".jiujiunone .jiujiunone_span").removeClass("active");
$(".jiujiunone-class").hide()
$(".jiujiunone-class-bg").hide()
let url = $(".jiujiunone-class-id.active").data("url");
if(url){
window.location.href = url;
}else{
window.location.reload();
}
});
// 清空条件
$(".jiujiunone-class .jiujiunone-class-del").click(function() {
$(".jiujiunone .jiujiunone_span").removeClass("active");
$(".jiujiunone-class").hide()
$(".jiujiunone-class-bg").hide()
$(".jiujiunone-class-id").removeClass("active");
});
// 点击背景关闭
$(".jiujiunone-class-bg").click(function(){
$(".jiujiunone .jiujiunone_span").removeClass("active");
$(".jiujiunone-class").hide()
$(".jiujiunone-class-bg").hide()
})
// 选中
$(".jiujiunone-class-id").click(function(e){
e.preventDefault();
$(".jiujiunone-class-id").removeClass("active");
$(this).addClass("active");
})
</script> -->
<include
file=
"__THEME__/public_footer_w3g"
/>
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