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
d0c0241d
Commit
d0c0241d
authored
Jan 20, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
92dfb942
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
login.vue
src/pages/login/login.vue
+6
-4
timeTable.vue
src/pages/timetable/timeTable.vue
+3
-1
No files found.
src/pages/login/login.vue
View file @
d0c0241d
...
...
@@ -28,7 +28,7 @@
</view>
</indexassembly>
</view>
<view
class=
"visitor"
@
click=
"show=true"
>
<view
class=
"visitor"
@
click=
"show=true"
v-if=
"showVisitor"
>
游客登录
</view>
<van-toast
id=
"van-toast"
/>
...
...
@@ -76,7 +76,8 @@
phoneNum
:
""
,
openid
:
""
,
code
:
""
,
show
:
false
show
:
false
,
showVisitor
:
false
,
});
let
methods
=
{
...
...
@@ -199,7 +200,7 @@
}
else
{
uni
.
showToast
({
icon
:
"none"
,
title
:
"
请先点击授权登录按钮授权
"
,
title
:
"
未授权电话,请先点击授权按钮
"
,
duration
:
2000
,
})
// setTimeout(()=>{
...
...
@@ -226,7 +227,8 @@
};
},
onLoad
()
{
// uni.clearStorage();
//审核用
this
.
showVisitor
=
new
Date
().
getTime
()
>
new
Date
(
'2022-01-21'
).
getTime
()
}
};
</
script
>
...
...
src/pages/timetable/timeTable.vue
View file @
d0c0241d
...
...
@@ -188,6 +188,7 @@
let
methods
=
{
// 获取当天数据
async
getData
()
{
if
(
data
.
msg
.
ClassId
<=
0
)
return
data
.
loading
=
true
let
res
=
await
getStundentPlanStatistical
(
data
.
msg
);
data
.
loading
=
false
...
...
@@ -197,6 +198,7 @@
},
//获取当月数据
async
getAllData
()
{
if
(
data
.
msg
.
ClassId
<=
0
)
return
let
res
=
await
getStundentPlanStatistical
(
data
.
msg
);
if
(
res
)
{
data
.
allData
=
res
.
Data
;
...
...
@@ -293,7 +295,7 @@
this
.
msg
.
ClassId
=
indexData
.
ClassId
this
.
msg
.
StartTime
=
getToday
(
'y'
,
'm'
)
+
'-01'
;
this
.
msg
.
EndTime
=
getToday
(
'y'
,
'm'
)
+
'-'
+
getMonthMaxDay
();
if
(
this
.
$isLogin
())
{
if
(
this
.
$isLogin
()
&&
this
.
msg
.
ClassId
>
0
)
{
this
.
getData
()
this
.
getAllData
()
}
...
...
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