Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
thinkApp
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
游洁
thinkApp
Commits
bebef5b6
Commit
bebef5b6
authored
May 26, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
28290ae8
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
171 additions
and
24 deletions
+171
-24
JobComponents.vue
src/components/index/JobComponents.vue
+11
-2
commentsComponents.vue
src/components/index/commentsComponents.vue
+3
-2
examComponents.vue
src/components/index/examComponents.vue
+2
-1
index.vue
src/pages/index/index.vue
+1
-0
workSituation.vue
src/pages/index/workSituation.vue
+149
-19
common.css
src/static/css/common.css
+5
-0
No files found.
src/components/index/JobComponents.vue
View file @
bebef5b6
...
...
@@ -9,7 +9,7 @@
<view
class=
"JobComponents-point"
></view>
</view>
</view>
<view
class=
"JobComponents-center-box"
>
<view
class=
"JobComponents-center-box"
@
click=
"JobDetails"
>
<view
class=
"JobComponents-center-line"
></view>
<view
class=
"JobComponents-center flex"
>
<view
class=
"JobComponents-left"
>
...
...
@@ -62,8 +62,16 @@
showPhone
:
false
,
showLogin
:
true
,
//多次点击
});
let
methods
=
{
JobDetails
(){
uni
.
reLaunch
({
url
:
'/pages/index/workSituation'
});
}
}
return
{
...
toRefs
(
data
),
...
methods
};
},
};
...
...
@@ -157,13 +165,14 @@
font-weight
:
500
;
}
.JobComponents-left
{
flex
:
1
;
flex-grow
:
1
;
}
.JobComponents-center
{
justify-content
:
space-between
;
}
.JobComponents-center-line
{
width
:
4px
;
width
:
4
r
px
;
height
:
23px
;
background
:
#FEFEFE
;
position
:
absolute
;
...
...
src/components/index/commentsComponents.vue
View file @
bebef5b6
...
...
@@ -88,6 +88,7 @@
flex-shrink
:
0
;
}
.CommentsComponents-left
{
flex
:
1
;
flex-grow
:
1
;
margin-top
:
-5
rpx
;
margin-bottom
:
10
rpx
;
...
...
@@ -96,8 +97,8 @@
flex-direction
:
column
;
}
.CommentsComponents-center-line
{
width
:
4px
;
height
:
23px
;
width
:
4
r
px
;
height
:
23
r
px
;
background
:
#FEFEFE
;
position
:
absolute
;
left
:
0
;
...
...
src/components/index/examComponents.vue
View file @
bebef5b6
...
...
@@ -133,13 +133,14 @@
margin-bottom
:
20
rpx
;
}
.examComponents-left
{
flex
:
1
;
flex-grow
:
1
;
}
.examComponents-center
{
flex-direction
:
column
;
}
.examComponents-center-line
{
width
:
4px
;
width
:
4
r
px
;
height
:
23px
;
background
:
#FEFEFE
;
position
:
absolute
;
...
...
src/pages/index/index.vue
View file @
bebef5b6
...
...
@@ -325,6 +325,7 @@
padding
:
0
50
rpx
45
rpx
;
}
.index-student-information
{
min-height
:
500
rpx
;
background
:
rgba
(
255
,
255
,
255
,
.7
);
border-radius
:
50
rpx
50
rpx
0
0
;
padding
:
71
rpx
0
0
0
;
...
...
src/pages/index/workSituation.vue
View file @
bebef5b6
<
template
>
<view
class=
"workSituationpage"
>
<navbar
class=
"navbarSticky"
bg=
"#F6F6F6"
>
<view
class=
"index-header-box"
>
<view
class=
"index-header-img"
>
<van-image
width=
"100%"
height=
"100%"
fit=
"cover"
class=
"img"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_713.png"
/>
</view>
<view
class=
"index-header-tetx"
>
<view
class=
"index-header-title"
>
welcome
</view>
<view
class=
"index-header-name"
>
周一围
</view>
</view>
</view>
</navbar>
<view
style=
"margin: 40rpx 0 10rpx 0;"
>
<view
style=
"padding:0 50rpx;font-weight: 800;color: #282828;"
>
<view
style=
"font-size: 36rpx;"
>
Good afternoon,
</view>
<view
style=
"font-size: 50rpx;"
>
李老师
</view>
</view>
</view>
<course-card></course-card>
<view
class=
"index-student-information"
>
<view
class=
"workSituation-title-box flex"
>
<view
class=
"workSituation-title flex"
:class=
"tabNme==t.name?'active':''"
v-for=
"(t,index) in titleList"
:key=
"index"
@
click=
"toggleTitle(t.name)"
>
<text
class=
"name"
>
{{
t
.
name
}}
</text>
<view
class=
"num"
>
(
{{
t
.
num
}}
)
</view>
<view
class=
"current-title-box flex"
v-show=
"tabNme==t.name"
>
<text
class=
"name"
>
{{
t
.
name
}}
</text>
<view
class=
"num"
>
(
{{
t
.
num
}}
)
</view>
</view>
</view>
</view>
<operation
v-if=
"tabNme=='作业情况'"
></operation>
<studentList
v-if=
"tabNme=='学生列表'"
></studentList>
<examList
v-if=
"tabNme=='考试信息'"
></examList>
</view>
</view>
</
template
>
<
script
>
// import analysisTest from '@/components/index/scoreDetails/analysisTest'
import
courseCard
from
'../../components/index/course-card'
import
operation
from
'@/components/index/workSituation/operation'
import
studentList
from
'@/components/index/workSituation/studentList'
import
examList
from
'@/components/index/workSituation/examList'
import
vue
,
{
ref
,
reactive
,
...
...
@@ -31,28 +72,22 @@
export
default
{
components
:
{
navbar
,
// analysisTest
courseCard
,
operation
,
studentList
,
examList
},
setup
(
props
)
{
let
{
proxy
}
=
getCurrentInstance
();
let
data
=
reactive
({
ActiveMsg
:
{
pageIndex
:
1
,
pageSize
:
10
,
ActivityType
:
0
,
SelectIsEnd
:
0
,
},
ActivityList
:
[],
pageData
:
{
LearningGardenList
:
[]
},
SurveyObj
:{
ActivitySurveyId
:
0
,
ActivitySurveyGuestId
:
0
,
},
userData
:
{}
titleList
:[
{
name
:
'学生列表'
,
num
:
18
},
{
name
:
'作业情况'
,
num
:
5
},
{
name
:
'考试信息'
,
num
:
18
},
],
tabNme
:
'作业情况'
});
let
methods
=
{
...
...
@@ -61,6 +96,9 @@
url
:
'/pages/index/index'
});
},
toggleTitle
(
t
)
{
data
.
tabNme
=
t
}
};
onMounted
(()
=>
{
...
...
@@ -92,7 +130,99 @@
</
script
>
<
style
scoped
>
.num
{
font-size
:
20
rpx
;
display
:
inline-block
;
margin-top
:
5
rpx
;
}
.current-title-box
{
color
:
#FFFFFF
;
background
:
#282828
;
padding
:
26
rpx
36
rpx
;
width
:
80%
;
position
:
absolute
;
left
:
-18%
;
right
:
0
;
top
:
-28
rpx
;
border-radius
:
39
rpx
;
justify-content
:
center
;
}
.workSituation-title.active
{
position
:
relative
;
}
.workSituation-title
{
flex
:
1
;
color
:
#282828
;
font-size
:
26
rpx
;
font-weight
:
bold
;
align-items
:
center
;
letter-spacing
:
1px
;
}
.workSituation-title-box
{
margin-bottom
:
50
rpx
;
margin
:
0
50
rpx
50
rpx
;
padding
:
17
rpx
0
17
rpx
28
rpx
;
background
:
#F0F0F0
;
border-radius
:
30
rpx
;
}
.index-student-information
{
min-height
:
500
rpx
;
background
:
rgba
(
255
,
255
,
255
,
.7
);
border-radius
:
50
rpx
50
rpx
0
0
;
padding
:
50
rpx
0
30
rpx
0
;
}
.index-header-name
{
font-size
:
30
rpx
;
color
:
#474747
;
}
.index-header-tetx
{
color
:
#D0D0D0
;
font-size
:
24
rpx
;
}
.index-header-img
.img
{
display
:
block
;
border
:
2
rpx
solid
rgba
(
164
,
164
,
164
,
0.32
);
border-radius
:
50%
;
overflow
:
hidden
;
width
:
60
rpx
;
height
:
60
rpx
;
box-sizing
:
border-box
;
margin
:
4
rpx
;
}
.index-header-img
{
width
:
68
rpx
;
height
:
68
rpx
;
border-radius
:
50%
;
overflow
:
hidden
;
text-align
:
center
;
margin-right
:
20
rpx
;
background
:
#FFFFFF
;
}
.workSituationpage
{
min-height
:
100vh
;
background-color
:
#f6f6f6
;
box-sizing
:
border-box
;
background-image
:
url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_398.png')
;
background-position
:
0
200
rpx
;
background-repeat
:
no-repeat
;
background-size
:
100%
auto
;
}
.index-header-box
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
padding
:
0
rpx
42
rpx
;
}
.index-header-box
.index-header-title
{
font-size
:
24
rpx
;
font-weight
:
400
;
color
:
#B8B8B8
;
}
.index-header-box
.index-header-name
{
font-size
:
30
rpx
;
font-weight
:
800
;
color
:
#282828
;
}
.navbarSticky
{
display
:
sticky
;
top
:
0
;
...
...
src/static/css/common.css
View file @
bebef5b6
...
...
@@ -121,4 +121,9 @@
left
:
50vw
;
transform
:
translate
(
-50%
,
-50%
);
z-index
:
999
;
}
.noData
{
font-size
:
26
rpx
;
text-align
:
center
;
padding
:
50
rpx
;
}
\ No newline at end of file
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