Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
educationStu
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
向伟
educationStu
Commits
7948207f
Commit
7948207f
authored
Jan 14, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
b42c30ac
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
389 additions
and
394 deletions
+389
-394
activityList.vue
src/pages/activity/activityList.vue
+1
-1
askForLeaveList.vue
src/pages/course/askForLeaveList.vue
+240
-251
examPaperList.vue
src/pages/exam/examPaperList.vue
+2
-2
learningGardenList.vue
src/pages/learningGarden/learningGardenList.vue
+146
-140
No files found.
src/pages/activity/activityList.vue
View file @
7948207f
...
...
@@ -344,9 +344,9 @@ export default {
lower
(
e
)
{
if
(
data
.
msg
.
pageIndex
<
data
.
PageCount
)
{
data
.
pageState
=
"loading"
;
data
.
msg
.
pageIndex
++
;
if
(
data
.
timer
)
clearTimeout
(
data
.
timer
);
data
.
timer
=
setTimeout
(()
=>
{
data
.
msg
.
pageIndex
++
;
that
.
getList
();
},
1000
);
}
else
{
...
...
src/pages/course/askForLeaveList.vue
View file @
7948207f
This diff is collapsed.
Click to expand it.
src/pages/exam/examPaperList.vue
View file @
7948207f
...
...
@@ -140,9 +140,9 @@ export default {
lower
(
e
)
{
if
(
data
.
msg
.
PageIndex
<
data
.
PageCount
)
{
data
.
pageState
=
"loading"
;
data
.
msg
.
PageIndex
++
;
if
(
data
.
timer
)
clearTimeout
(
data
.
timer
);
data
.
timer
=
setTimeout
(()
=>
{
data
.
msg
.
PageIndex
++
;
that
.
getList
();
},
1000
);
}
else
{
...
...
@@ -158,7 +158,7 @@ export default {
if
(
data
.
msg
.
PageIndex
===
1
)
{
data
.
examList
=
res
.
Data
.
PageData
;
}
else
{
data
.
examList
=
[...
res
.
Data
.
PageData
,
...
data
.
examList
];
data
.
examList
=
[...
data
.
examList
,...
res
.
Data
.
PageData
];
}
if
(
data
.
msg
.
PageIndex
>=
res
.
Data
.
PageCount
)
{
data
.
pageState
=
"none"
;
...
...
src/pages/learningGarden/learningGardenList.vue
View file @
7948207f
<
template
>
<view
class=
""
>
<van-toast
id=
"van-toast"
/>
<view
class=
"list-con"
>
<van-empty
description=
"暂无数据"
v-if=
"dataList.length === 0"
/>
<scroll-view
:scroll-top=
"0"
scroll-y=
"true"
class=
"scroll-box"
@
scrolltolower=
"lower"
v-if=
"dataList.length > 0"
>
<view
v-for=
"(item, index) in dataList"
:key=
"index"
class=
"list-item flex flex_between_center"
@
click=
"jumpPage(item.Id)"
>
<image
class=
"left"
:src=
"item.Img"
></image>
<view
class=
"right"
>
<view
class=
"one_line title"
>
{{
item
.
Title
}}
</view>
<view
class=
"one_line digest"
>
{{
item
.
Digest
}}
</view>
</view>
</view>
<Loadmore
:state=
"pageState"
/>
</scroll-view>
</view>
</view>
<view
class=
""
>
<van-toast
id=
"van-toast"
/>
<view
class=
"list-con"
>
<van-empty
description=
"暂无数据"
v-if=
"dataList.length === 0"
/>
<scroll-view
:scroll-top=
"0"
scroll-y=
"true"
class=
"scroll-box"
@
scrolltolower=
"lower"
v-if=
"dataList.length > 0"
>
<view
v-for=
"(item, index) in dataList"
:key=
"index"
class=
"list-item flex flex_between_center"
@
click=
"jumpPage(item.Id)"
>
<image
class=
"left"
:src=
"item.Img"
></image>
<view
class=
"right"
>
<view
class=
"one_line title"
>
{{
item
.
Title
}}
</view>
<view
class=
"one_line digest"
>
{{
item
.
Digest
}}
</view>
</view>
</view>
<Loadmore
:state=
"pageState"
/>
</scroll-view>
</view>
</view>
</
template
>
<
script
>
import
{
reactive
,
toRefs
,
getCurrentInstance
,
onMounted
}
from
"vue"
;
import
{
getLearningGardenList
}
from
"../../api/index"
;
import
{
debounce
}
from
"../../utils/index"
;
import
Loadmore
from
"../../components/loadmore.vue"
;
export
default
{
components
:
{
Loadmore
,
},
setup
(
props
,
context
)
{
let
data
=
reactive
({
pageTitle
:
"日语学习园地"
,
msg
:
{
PageIndex
:
1
,
PageSize
:
10
,
rowsPerPage
:
10
,
Title
:
""
,
},
dataList
:
[],
pageState
:
"more"
,
pageCount
:
0
,
timer
:
null
,
//防抖
});
let
methods
=
{
back
()
{
uni
.
navigateBack
();
},
jumpPage
(
id
)
{
uni
.
navigateTo
({
url
:
"/pages/learningGarden/learningGardenDetails?Id="
+
id
,
});
},
async
getList
()
{
let
res
=
await
getLearningGardenList
(
data
.
msg
);
if
(
res
)
{
if
(
data
.
timer
)
data
.
timer
=
null
;
if
(
data
.
msg
.
PageIndex
===
1
)
{
data
.
dataList
=
res
.
Data
.
PageData
;
}
else
{
data
.
dataList
=
[...
res
.
Data
.
PageData
,
...
data
.
dataList
];
}
data
.
pageCount
=
res
.
Data
.
PageCount
;
if
(
data
.
msg
.
PageIndex
>=
res
.
Data
.
PageCount
)
{
data
.
pageState
=
"none"
;
}
else
{
data
.
pageState
=
"more"
;
}
}
},
lower
(
e
)
{
if
(
data
.
msg
.
PageIndex
<
data
.
pageCount
)
{
data
.
pageState
=
"loading"
;
data
.
msg
.
PageIndex
++
;
if
(
data
.
timer
)
clearTimeout
(
data
.
timer
);
data
.
timer
=
setTimeout
(()
=>
{
that
.
getList
();
},
1000
);
}
else
{
data
.
pageState
=
"none"
;
}
},
};
onMounted
(()
=>
{
that
.
getList
();
});
let
that
=
methods
;
return
{
...
toRefs
(
data
),
...
methods
,
};
},
onLoad
()
{
uni
.
setNavigationBarTitle
({
title
:
this
.
pageTitle
,
});
},
};
import
{
reactive
,
toRefs
,
getCurrentInstance
,
onMounted
}
from
"vue"
;
import
{
getLearningGardenList
}
from
"../../api/index"
;
import
{
debounce
}
from
"../../utils/index"
;
import
Loadmore
from
"../../components/loadmore.vue"
;
export
default
{
components
:
{
Loadmore
,
},
setup
(
props
,
context
)
{
let
data
=
reactive
({
pageTitle
:
"日语学习园地"
,
msg
:
{
PageIndex
:
1
,
PageSize
:
10
,
rowsPerPage
:
10
,
Title
:
""
,
},
dataList
:
[],
pageState
:
"more"
,
pageCount
:
0
,
timer
:
null
,
//防抖
});
let
methods
=
{
back
()
{
uni
.
navigateBack
();
},
jumpPage
(
id
)
{
uni
.
navigateTo
({
url
:
"/pages/learningGarden/learningGardenDetails?Id="
+
id
,
});
},
async
getList
()
{
let
res
=
await
getLearningGardenList
(
data
.
msg
);
if
(
res
)
{
if
(
data
.
timer
)
data
.
timer
=
null
;
if
(
data
.
msg
.
PageIndex
===
1
)
{
data
.
dataList
=
res
.
Data
.
PageData
;
}
else
{
data
.
dataList
=
[...
data
.
dataList
,
...
res
.
Data
.
PageData
];
}
data
.
pageCount
=
res
.
Data
.
PageCount
;
if
(
data
.
msg
.
PageIndex
>=
res
.
Data
.
PageCount
)
{
data
.
pageState
=
"none"
;
}
else
{
data
.
pageState
=
"more"
;
}
}
},
lower
(
e
)
{
if
(
data
.
msg
.
PageIndex
<
data
.
pageCount
)
{
data
.
pageState
=
"loading"
;
if
(
data
.
timer
)
clearTimeout
(
data
.
timer
);
data
.
timer
=
setTimeout
(()
=>
{
data
.
msg
.
PageIndex
++
;
that
.
getList
();
},
1000
);
}
else
{
data
.
pageState
=
"none"
;
}
},
};
onMounted
(()
=>
{
that
.
getList
();
});
let
that
=
methods
;
return
{
...
toRefs
(
data
),
...
methods
,
};
},
onLoad
()
{
uni
.
setNavigationBarTitle
({
title
:
this
.
pageTitle
,
});
},
};
</
script
>
<
style
scoped
>
.list-con
{
height
:
calc
(
100vh
-
20
rpx
);
box-sizing
:
border-box
;
padding
:
15
rpx
30
rpx
;
margin-top
:
10
rpx
;
}
.scroll-box
{
height
:
100%
;
width
:
100%
;
}
.list-item
{
margin
:
20
rpx
0
;
}
.left
{
width
:
220
rpx
;
height
:
120
rpx
;
border-radius
:
20
rpx
;
box-shadow
:
0
rpx
10
rpx
30
rpx
0
rpx
rgba
(
36
,
36
,
36
,
0.2
);
}
.right
{
width
:
440
rpx
;
height
:
120
rpx
;
}
.right
.title
{
font-size
:
30
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
color
:
#111111
;
line-height
:
70
rpx
;
}
.right
.digest
{
font-size
:
24
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#999999
;
line-height
:
30
rpx
;
}
.list-con
{
height
:
calc
(
100vh
-
20
rpx
);
box-sizing
:
border-box
;
padding
:
15
rpx
30
rpx
;
margin-top
:
10
rpx
;
}
.scroll-box
{
height
:
100%
;
width
:
100%
;
}
.list-item
{
margin
:
20
rpx
0
;
}
.left
{
width
:
220
rpx
;
height
:
120
rpx
;
border-radius
:
20
rpx
;
box-shadow
:
0
rpx
10
rpx
30
rpx
0
rpx
rgba
(
36
,
36
,
36
,
0.2
);
}
.right
{
width
:
440
rpx
;
height
:
120
rpx
;
}
.right
.title
{
font-size
:
30
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
color
:
#111111
;
line-height
:
70
rpx
;
}
.right
.digest
{
font-size
:
24
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#999999
;
line-height
:
30
rpx
;
}
</
style
>
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