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
6f8db03d
Commit
6f8db03d
authored
Feb 11, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
9934466e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
7 deletions
+46
-7
index.vue
src/pages/appointment/index.vue
+29
-2
mySubscribe.vue
src/pages/appointment/mySubscribe.vue
+17
-5
No files found.
src/pages/appointment/index.vue
View file @
6f8db03d
...
...
@@ -4,7 +4,7 @@
<view
class=
"navbar"
>
<van-icon
name=
"arrow-left"
size=
"36rpx"
@
click=
"back"
/>
<i
class=
"iconfont icon-calendar"
style=
"font-size: 60rpx;"
@
click=
"isShowCalendar=true"
></i>
<view
class=
"dateStr"
>
<view
class=
"dateStr"
@
click=
"isShowCalendar=true"
>
{{
dateStr
}}
</view>
<view
class=
"year"
>
...
...
@@ -314,6 +314,32 @@
}
})
},
updateBaseInfo
()
{
proxy
.
$request
(
"/AppletCenter/GetScrollAppointmentBaseInfo"
,
{}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
data
.
basics
=
res
.
Data
;
}
})
},
updateTeacherList
(){
uni
.
showLoading
({
title
:
'加载中...'
})
proxy
.
$request
(
"/AppletCenter/GetScrollAppointmentTeacherList"
,
data
.
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
data
.
teacherList
=
res
.
Data
;
if
(
data
.
teacherList
.
length
>
0
)
{
data
.
courselist
=
data
.
teacherList
[
data
.
current
].
CourseTimeList
data
.
schoolName
=
data
.
teacherList
[
data
.
current
].
SchoolName
data
.
roomName
=
data
.
teacherList
[
data
.
current
].
RoomName
methods
.
courseGroup
()
}
else
{
data
.
courselist
=
[]
}
uni
.
hideLoading
()
}
})
},
goRecord
()
{
uni
.
navigateTo
({
url
:
'/pages/appointment/mySubscribe'
,
...
...
@@ -444,7 +470,8 @@
success
(
res
)
{
proxy
.
$request
(
"/AppletCenter/SetScrollAppointment"
,
obj
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
methods
.
getBaseInfo
()
methods
.
updateBaseInfo
()
methods
.
updateTeacherList
()
data
.
showlay
=
true
}
})
...
...
src/pages/appointment/mySubscribe.vue
View file @
6f8db03d
...
...
@@ -76,6 +76,16 @@
height
:
100
rpx
;
}
.box-item
{
border-radius
:
24
rpx
;
box-sizing
:
border-box
;
padding
:
30
rpx
;
background-color
:
#FFF
;
font-size
:
24
rpx
;
box-shadow
:
2
rpx
4
rpx
40
rpx
0px
rgba
(
212
,
212
,
212
,
0.6
);
position
:
relative
;
}
.listItemBox1
{
width
:
100%
;
display
:
flex
;
...
...
@@ -164,7 +174,8 @@
font-weight
:
500
;
color
:
#111111
;
}
.quxiaoBtn
{
.quxiaoBtn
{
box-sizing
:
border-box
;
padding
:
6
rpx
12
rpx
;
border-radius
:
10
rpx
;
...
...
@@ -254,7 +265,8 @@
</view>
</view>
<view
class=
"stateBox"
>
<view
class=
"StateName"
:style=
"
{color: x.State == 2?'#4C50E7':x.State == 4?'#EF5361':x.State == 5?'#d4d4d4':'#111111'}">
<view
class=
"StateName"
:style=
"
{color: x.State == 2?'#4C50E7':x.State == 4?'#EF5361':x.State == 5?'#d4d4d4':'#111111'}">
{{
x
.
StateName
}}
</view>
</view>
...
...
@@ -518,10 +530,10 @@
this
.
getList
()
data
.
popupshow2
=
false
},
getWeek
(
d
){
const
date
=
new
Date
(
d
)
getWeek
(
d
)
{
const
date
=
new
Date
(
d
)
const
week
=
date
.
getDay
()
let
weekStr
=
""
let
weekStr
=
""
switch
(
week
)
{
case
0
:
weekStr
=
'星期天'
;
...
...
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