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
45655b08
Commit
45655b08
authored
Jul 01, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
1a8bfce5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
apps/home/Tpl/default/Home/exams_w3g.html
+11
-11
No files found.
apps/home/Tpl/default/Home/exams_w3g.html
View file @
45655b08
...
...
@@ -185,7 +185,7 @@
</div>
<script
type=
"text/javascript"
>
new
Vue
({
el
:
'#app'
,
data
:
function
()
{
...
...
@@ -202,20 +202,20 @@
}
},
created
:
function
()
{
},
mounted
:
function
(){
$
(
"#preloader"
).
hide
();
this
.
onTopTab
(
0
)
var
that
=
this
//滚动条到页面底部加载更多案例
//滚动条到页面底部加载更多案例
$
(
window
).
scroll
(
function
(){
var
scrollTop
=
$
(
this
).
scrollTop
();
//滚动条距离顶部的高度
var
scrollHeight
=
$
(
document
).
height
();
//当前页面的总高度
var
clientHeight
=
$
(
this
).
height
();
//当前可视的页面高度
// console.log("top:"+scrollTop+",doc:"+scrollHeight+",client:"+clientHeight);
if
(
scrollTop
+
clientHeight
>=
scrollHeight
){
//距离顶部+当前高度 >=文档总高度 即代表滑动到底部
if
(
scrollTop
+
clientHeight
>=
scrollHeight
){
//距离顶部+当前高度 >=文档总高度 即代表滑动到底部
//滚动条到达底部
console
.
log
(
"tab:"
+
that
.
tab
)
console
.
log
(
"page:"
+
that
.
page
)
...
...
@@ -230,10 +230,10 @@
//滚动条到达顶部
// alert(4)
//滚动条距离顶部的高度小于等于0 TODO
}
});
},
computed
:
{
currentItems
:
function
()
{
...
...
@@ -361,7 +361,7 @@
let
that
=
this
$
.
ajax
({
type
:
"GET"
,
url
:
"{:U('exams/Index/paper')}"
+
"&api=1&c="
+
that
.
conditionId
+
"&p
age
="
+
this
.
page
,
url
:
"{:U('exams/Index/paper')}"
+
"&api=1&c="
+
that
.
conditionId
+
"&p="
+
this
.
page
,
dataType
:
"json"
,
success
:
function
(
res
)
{
if
(
res
.
status
==
1
)
{
...
...
@@ -396,7 +396,7 @@
let
that
=
this
$
.
ajax
({
type
:
"GET"
,
url
:
"{:U('exams/Index/paper')}"
+
"&api=2&c="
+
that
.
conditionId
+
"&p
age
="
+
this
.
page
,
url
:
"{:U('exams/Index/paper')}"
+
"&api=2&c="
+
that
.
conditionId
+
"&p="
+
this
.
page
,
dataType
:
"json"
,
success
:
function
(
res
)
{
if
(
res
.
status
==
1
)
{
...
...
@@ -432,7 +432,7 @@
let
that
=
this
$
.
ajax
({
type
:
"GET"
,
url
:
"{:U('home/Home/exams')}"
+
"?api=1"
+
"&p
age
="
+
this
.
page
,
url
:
"{:U('home/Home/exams')}"
+
"?api=1"
+
"&p="
+
this
.
page
,
dataType
:
"json"
,
success
:
function
(
res
)
{
if
(
res
.
status
==
1
)
{
...
...
@@ -460,7 +460,7 @@
let
that
=
this
$
.
ajax
({
type
:
"GET"
,
url
:
"{:U('home/Home/exams')}"
+
"?api=1&tab=4
"
,
url
:
"{:U('home/Home/exams')}"
+
"?api=1&tab=4
&p="
+
this
.
page
,
dataType
:
"json"
,
success
:
function
(
res
)
{
if
(
res
.
status
==
1
)
{
...
...
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