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
994389c4
Commit
994389c4
authored
May 21, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A
parent
31ca24a1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
131 additions
and
0 deletions
+131
-0
addons/theme/stv1/empty_view_w3g.html
+2
-0
apps/home/Tpl/default/Home/collect_w3g_old.html
+129
-0
apps/home/Tpl/default/Home/order_w3g_old.html
+0
-0
No files found.
addons/theme/stv1/empty_view_w3g.html
0 → 100644
View file @
994389c4
<div
v-if=
"showEmpty"
class=
"empty_container text_12_400 color_999999"
>
暂无内容
</div>
\ No newline at end of file
apps/home/Tpl/default/Home/collect_w3g_old.html
0 → 100644
View file @
994389c4
<include
file=
"__THEME__/public_header_w3g"
/>
<script
src=
"__THEMEW3G__/js/flexible.js"
></script>
<link
rel=
"stylesheet"
href=
"__APP__/css/collect_w3g.css"
>
<div
class=
"bar-nav"
>
<a
href=
"{:U('home/User/index')}"
class=
"bar-btn eduline-v4 v4-iconfont-houtui"
></a>
<div
class=
"bar-title"
>
我的收藏
</div>
</div>
<div
class=
"page"
>
<div
class=
"navbar"
>
<div
class=
"tab-item <if condition="
$
_GET
['
tab
']
eq
null
"
>
is-selected
</if>
"
onclick="window.location.href='{:U('home/Home/collect')}'">资讯
</div>
<php>
if(OPEN_SCHOOL){
</php>
<div
class=
"tab-item <if condition="
$
_GET
['
tab
']
eq
1
"
>
is-selected
</if>
"
onclick="window.location.href='{:U('home/Home/collect',['tab'=>1])}'">机构
</div>
<php>
}
</php>
</div>
<div
class=
"collect"
>
<if
condition=
"$data['data'] eq null"
>
<include
file=
"__THEME__/no_data"
/>
<else/>
<div
class=
"collect-institut"
>
<if
condition=
"$_GET['tab'] eq null"
>
<!-- 资讯 -->
<foreach
name=
"data['data']"
item=
"l"
key=
"k"
>
<div
class=
"informat-item"
>
<div
class=
"pic"
>
<img
class=
"lazyload"
data-original=
""
alt=
""
src=
"{:getCover($l['image'],150,90)}"
>
</div>
<div
class=
"info"
>
<div
class=
"name"
><a
href=
"{:U('news/Topic/view',array('id'=>$l['source_id']))}"
>
{$l.topictitle|mStr=28}
</a></div>
<div
class=
"cancel"
>
<span
class=
"time"
>
{$l.ctime|friendlyDate}
</span>
<span
class=
"browse"
>
<i
class=
"eduline-v4 v4-iconfont-liulan1"
></i>
{$l.commentcount}
</span>
</div>
</div>
</div>
</foreach>
<else/>
<!-- 机构 -->
<foreach
name=
"data['data']"
item=
"l"
key=
'k'
>
<div
class=
"institut-item"
>
<div
class=
"pic"
>
<img
class=
"lazyload"
data-original=
""
alt=
""
src=
"{:getCover($l['cover'],60,60)}"
>
</div>
<div
class=
"name"
>
{$l.title}
</div>
<div
class=
"cancel"
><a
href=
"javascript:;"
onclick=
"delCollect('{$l[\'collection_id\']}','school')"
>
取消收藏
</a></div>
</div>
</foreach>
</if>
</div>
<if
condition=
"$data['data']"
>
<div
class=
"loadding"
>
<if
condition=
"$data['nowPage'] eq $data['totalPages']"
>
<div>
再拉也没有了
</div><else/>
正在加载更多。。
</if>
</div>
<a
class=
"backtop"
></a>
</if>
</if>
</div>
</div>
<script>
$
(
function
()
{
var
p
=
1
;
var
tab
=
"{$_GET['tab']}"
;
$
(
window
).
scroll
(
function
()
{
var
scrollTop
=
$
(
this
).
scrollTop
();
var
scrollHeight
=
$
(
document
).
height
();
var
windowHeight
=
$
(
this
).
height
();
if
(
scrollHeight
-
(
scrollTop
+
windowHeight
)
<
60
)
{
if
(
!
p
||
p
>=
parseInt
(
"{$data['totalPages']}"
)){
$
(
'.loadding'
).
html
(
'<div>再拉也没有了</div>'
);
return
false
;
}
else
{
p
=
p
+
1
;
ajaxData
();
}
}
});
//请求事件
function
ajaxData
(){
$
.
ajax
({
type
:
"GET"
,
url
:
"{:U('home/Home/collect')}"
,
data
:
"p="
+
p
+
"&tab="
+
tab
,
dataType
:
"json"
,
success
:
function
(
data
){
$
(
".collect-institut"
).
append
(
data
.
data
);
if
(
!
p
||
p
>=
data
.
totalPages
){
$
(
'.loadding'
).
html
(
'<div>再拉也没有了</div>'
)
return
false
;
}
else
{
p
=
data
.
nowPage
;
//下一页
}
}
});
}
});
//取消收藏
function
delCollect
(
collection_id
,
tableName
){
ui
.
confirm
(
'确定要取消收藏机构吗?'
,
{
yes
:
function
()
{
$
.
post
(
"{:U('home/Home/delCollect')}"
,
{
id
:
collection_id
,
tableName
:
tableName
},
function
(
res
){
if
(
res
==
200
){
ui
.
success
(
"取消收藏成功"
,
{
end
:
function
()
{
location
.
reload
();
}
});
return
false
;
}
else
{
ui
.
error
(
"取消收藏失败请重试!"
);
return
false
;
}
});
}
});
}
</script>
<include
file=
"__THEME__/public_footer_w3g"
/>
apps/home/Tpl/default/Home/order_w3g_old.html
0 → 100644
View file @
994389c4
This diff is collapsed.
Click to expand it.
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