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
337c8164
Commit
337c8164
authored
Jan 19, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
92d2c7ad
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
435 additions
and
431 deletions
+435
-431
indexassembly.vue
src/pages/index/components/indexassembly.vue
+3
-3
courseList.vue
src/pages/study/courseList.vue
+6
-3
timeTable-item.vue
src/pages/timetable/timeTable-item.vue
+10
-2
timeTable.vue
src/pages/timetable/timeTable.vue
+392
-421
wordStudy.vue
src/pages/word/wordStudy.vue
+14
-2
date.js
src/utils/date.js
+10
-0
No files found.
src/pages/index/components/indexassembly.vue
View file @
337c8164
...
...
@@ -187,7 +187,9 @@
res
.
Data
.
Account
=
data
.
obj
.
phoneNum
;
uni
.
setStorageSync
(
"userInfo"
,
res
.
Data
);
Toast
.
success
(
"登录成功"
);
emit
(
'success'
)
setTimeout
(()
=>
{
emit
(
'success'
)
},
1000
)
data
.
showPhone
=
false
uni
.
showTabBar
()
}
else
{
...
...
@@ -198,13 +200,11 @@
}
uni
.
hideLoading
();
if
(
res
.
Data
.
Error
==
-
1
)
{
//如果没找到电话号码 就跳入登录
// setTimeout(() => {
// uni.reLaunch({
// url: '/pages/login/login'
// });
// }, 1000);
}
}
...
...
src/pages/study/courseList.vue
View file @
337c8164
...
...
@@ -107,14 +107,15 @@
</
style
>
<
template
>
<view
class=
"studyCourse"
>
<div
class=
"loading"
v-if=
"isShowLoad"
>
<van-loading
type=
"spinner"
color=
"#fff"
/>
</div>
<template
v-if=
"ChapterList.length>0"
>
<view
class=
"Course_Top"
>
<view
class=
"CourseBan"
>
《
{{
CourseName
}}
》
</view>
<view
class=
"CourseTotal"
v-if=
"TotalHours>0"
>
共
{{
TotalHours
}}
课
</view>
</view>
<div
class=
"loading"
v-if=
"isShowLoad"
>
<van-loading
type=
"spinner"
color=
"#fff"
/>
</div>
<view
class=
"Course_Bottom"
>
<view
class=
"Course_List"
v-for=
"(item,index) in ChapterList"
:key=
"index"
>
<view
class=
"CourseList_One"
@
click=
"getReview(index)"
>
...
...
@@ -216,6 +217,8 @@
x
.
isShow
=
false
})
}
}).
catch
(
err
=>
{
data
.
isShowLoad
=
false
;
});
},
getSpeed
(
score
)
{
...
...
src/pages/timetable/timeTable-item.vue
View file @
337c8164
...
...
@@ -6,7 +6,15 @@
:key=
"index"
>
<view
class=
"flex flex_start_center title-row"
>
<view
class=
"class-time"
>
{{
item
.
StartTime
}}
</view>
<view
class=
"class-time"
>
<view
class=
""
style=
"font-size: 22rpx;font-weight: 400;color: #111111;"
>
{{
data
.
DateMonth
}}
-
{{
data
.
DateDay
}}
</view>
<view
class=
""
>
{{
item
.
StartTime
}}
</view>
</view>
<view
class=
"circle"
></view>
<view
class=
"class-title one_line flex"
>
{{
data
.
ClassName
}}
...
...
@@ -65,7 +73,7 @@ import {
}
from
"vue"
;
export
default
{
name
:
""
,
props
:
{
data
:
Object
},
props
:
{
data
:
Object
},
components
:
{},
setup
(
props
)
{
let
methods
=
{
...
...
src/pages/timetable/timeTable.vue
View file @
337c8164
This diff is collapsed.
Click to expand it.
src/pages/word/wordStudy.vue
View file @
337c8164
<
template
>
<view
class=
"word"
>
<swiper
class=
"swiper"
next-margin=
"60rpx"
@
change=
"swiperChange"
:current=
"current"
>
<van-skeleton
title
row=
"10"
v-if=
"loading"
/>
<van-empty
description=
"暂无数据"
v-if=
"nodata"
/>
<swiper
class=
"swiper"
next-margin=
"60rpx"
@
change=
"swiperChange"
:current=
"current"
v-if=
"!loading&&!nodata"
>
<swiper-item
v-for=
"(item,index) in StudyList"
v-if=
"Type==2"
:key=
"index"
class=
"swiper-item"
>
<Pronunciation
:item=
"item"
:cur=
"index+1"
:total=
"StudyList.length"
></Pronunciation>
</swiper-item>
...
...
@@ -57,14 +59,24 @@
},
Type
:
1
,
//1复习 2 单词
TotalHours
:
0
,
CourseName
:
''
CourseName
:
''
,
loading
:
false
,
nodata
:
false
,
})
let
methods
=
{
getData
()
{
data
.
loading
=
true
proxy
.
$request
(
'/AppletWords/GetStudyWords'
,
data
.
msg
).
then
(
res
=>
{
data
.
loading
=
false
data
.
StudyList
=
res
.
Data
.
StudyList
data
.
ReviewList
=
res
.
Data
.
ReviewList
;
data
.
current
=
0
if
(
data
.
StudyList
.
length
===
0
&&
data
.
ReviewList
.
length
==
0
)
{
data
.
nodata
=
true
}
}).
catch
(
err
=>
{
data
.
loading
=
false
data
.
nodata
=
true
})
},
swiperChange
(
val
)
{
...
...
src/utils/date.js
View file @
337c8164
...
...
@@ -24,6 +24,16 @@ export let getWeek = (year, month) => {
return
arr
}
export
let
getMonthMaxDay
=
(
y
,
m
)
=>
{
let
maxDay
=
30
if
(
y
&&
m
){
maxDay
=
new
Date
(
y
,
m
,
"0"
).
getDate
();
}
else
{
const
d
=
new
Date
()
maxDay
=
new
Date
(
d
.
getFullYear
(),
d
.
getMonth
()
+
1
,
0
).
getDate
();
}
return
maxDay
}
export
let
getToday
=
(
y
,
m
,
d
)
=>
{
let
date
=
new
Date
()
let
year
=
date
.
getFullYear
()
...
...
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