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
64e1e4c4
Commit
64e1e4c4
authored
May 31, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
23df5cc0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
327 additions
and
3 deletions
+327
-3
setComments.vue
src/components/setComments/setComments.vue
+210
-0
pages.json
src/pages.json
+5
-0
workSituation.vue
src/pages/index/workSituation.vue
+7
-3
index.vue
src/pages/setComments/index.vue
+105
-0
No files found.
src/components/setComments/setComments.vue
0 → 100644
View file @
64e1e4c4
<
template
>
<view
class=
"setComments-box"
>
<view
class=
"setComments-add"
><van-icon
name=
"plus"
/><text>
创建评价
</text>
</view>
<view
class=
"index-student-information"
>
<view
class=
"setComments-content-box"
>
<view
class=
"setComments-content"
>
<view
class=
"center-line"
></view>
<view
class=
"setComments-title flex"
>
<text
class=
"setComments-title-left"
>
第一次评价
</text>
<view
class=
"setComments-title-right"
>
<view
class=
"setComments-options flex"
>
<view
class=
"setComments-options-title flex"
@
click=
"clickOptionsShow"
>
<view
class=
"point"
></view>
<text>
{{
optionsObj
.
text
?
optionsObj
.
text
:
'选择'
}}
</text>
<van-icon
:name=
"optionsShow?'arrow-down':'arrow'"
/>
</view>
<view
v-if=
"optionsShow"
class=
"setComments-options-text flex"
>
<text
v-for=
"(item,index) in optionsList"
:key=
"index"
@
click=
"clickoptions(item)"
>
{{
item
.
text
}}
</text>
</view>
</view>
</view>
</view>
<view
class=
"flex"
>
<text>
来源: 5555
</text>
<view>
时间:2022-05-30
</view>
</view>
<view
class=
"flex"
>
<text>
学员评价
</text>
<text>
评价规则
</text>
</view>
</view>
</view>
</view>
</view>
</
template
>
<
script
>
import
{
reactive
,
toRefs
,
onMounted
,
getCurrentInstance
,
inject
}
from
"vue"
;
import
navbar
from
'../../components/navbar.vue'
export
default
{
props
:
{
},
components
:
{
navbar
,
},
setup
()
{
let
{
proxy
}
=
getCurrentInstance
();
let
data
=
reactive
({
optionsObj
:{
text
:
''
,
value
:
''
},
optionsShow
:
false
,
optionsList
:[
{
text
:
'部分可见'
,
value
:
0
},
{
text
:
'可见'
,
value
:
1
},
{
text
:
'不可见'
,
value
:
2
},
],
radioList
:[
{
name
:
'使用默认配置'
,
id
:
1
,
checked
:
true
},
{
name
:
'自定义评价'
,
id
:
2
}
],
checked
:
'1'
,
obj
:{},
Msg
:
{
HomeWorkId
:
''
,
},
showPhone
:
false
,
showLogin
:
true
,
//多次点击
HomeWorkId
:
''
,
jobDetails
:
{},
dataList
:[],
pageState
:
'more'
});
let
methods
=
{
back
(){
uni
.
navigateBack
({
delta
:
1
})
},
clickOptionsShow
(){
data
.
optionsShow
=!
data
.
optionsShow
},
clickoptions
(
item
){
data
.
optionsObj
=
item
data
.
optionsShow
=
false
}
}
return
{
...
toRefs
(
data
),
...
methods
};
},
onLoad
(
option
)
{
this
.
Msg
.
HomeWorkId
=
option
.
HomeWorkId
},
};
</
script
>
<
style
scoped
>
.point
{
width
:
8
rpx
;
height
:
8
rpx
;
background
:
#E64150
;
border-radius
:
50%
;
}
.setComments-options-title
,
.setComments-options-text
{
font-size
:
24
rpx
;
font-weight
:
500
;
color
:
#CE8086
;
text-align
:
center
;
font-weight
:
bold
;
}
.setComments-options-text
text
{
padding
:
5
rpx
0
;
}
.setComments-options-text
{
flex-direction
:
column
;
margin-top
:
10
rpx
;
position
:
absolute
;
left
:
0
;
right
:
0
;
top
:
35
rpx
;
background
:
#FCEEEF
;
padding
:
20
rpx
0
20
rpx
0
;
border-radius
:
0
0
25
rpx
25
rpx
;
}
.setComments-options-title
text
{
margin-right
:
10
rpx
;
margin-left
:
10
rpx
;
}
.setComments-options-title
{
justify-content
:
center
;
align-items
:
center
;
}
.setComments-options
{
flex-grow
:
1
;
border-radius
:
25
rpx
;
background
:
#FCEEEF
;
flex-direction
:
column
;
padding
:
14
rpx
17
rpx
15
rpx
17
rpx
;
letter-spacing
:
1
rpx
;
position
:
relative
;
}
.setComments-title-right
{
width
:
170
rpx
;
flex-shrink
:
0
;
}
.setComments-title-left
{
letter-spacing
:
1
rpx
;
flex-grow
:
1
;
color
:
#282828
;
font-size
:
26
rpx
;
font-weight
:
bold
;
margin-right
:
20
rpx
;
}
.center-line
{
position
:
absolute
;
left
:
0
;
top
:
30
rpx
;
width
:
4
rpx
;
height
:
23
rpx
;
background
:
#282828
;
}
.setComments-content
{
position
:
relative
;
background
:
#FFFFFF
;
padding
:
21
rpx
27
rpx
0
22
rpx
;
box-shadow
:
0px
6px
29px
0px
rgba
(
76
,
76
,
76
,
0.09
);
border-radius
:
30px
;
}
.setComments-content-box
{
padding
:
0
50
rpx
;
}
.setComments-add
van-icon
{
font-size
:
25
rpx
;
margin-right
:
20
rpx
;
}
.setComments-add
{
width
:
190
rpx
;
margin
:
auto
;
border-radius
:
27
rpx
;
border
:
1
rpx
solid
#FB6087
;
color
:
#FB6087
;
font-size
:
24
rpx
;
letter-spacing
:
1
rpx
;
padding
:
10
rpx
0
;
text-align
:
center
;
}
.index-student-information
{
min-height
:
800
rpx
;
background
:
#FFFFFF
;
border-radius
:
50
rpx
50
rpx
0
0
;
padding
:
71
rpx
0
30
rpx
0
;
flex-direction
:
column
;
}
</
style
>
src/pages.json
View file @
64e1e4c4
...
...
@@ -46,6 +46,11 @@
"style"
:
{
"navigationStyle"
:
"custom"
}
},{
"path"
:
"pages/setComments/setComments"
,
"style"
:
{
"navigationStyle"
:
"custom"
}
}
],
...
...
src/pages/index/workSituation.vue
View file @
64e1e4c4
...
...
@@ -18,7 +18,9 @@
<view
style=
"padding:0 50rpx;font-weight: 800;color: #282828;"
>
<view
style=
"font-size: 36rpx;"
>
Hi,
</view>
<view
style=
"font-size: 50rpx;"
>
{{
userData
.
AccountName
}}
老师
</view>
</view>
<view
@
click=
"goSet"
>
设置评语
</view>
</view>
<courseCard
@
change=
"changeCourseHandler"
></courseCard>
<view
class=
"index-student-information"
>
...
...
@@ -29,7 +31,6 @@
@
click=
"toggleTitle(t.name)"
>
<text
class=
"name"
>
{{
t
.
name
}}
</text>
<view
class=
"num"
>
(
{{
t
.
num
}}
)
</view>
</view>
</view>
<van-empty
description=
"暂无数据"
v-if=
"currentCourseId === 0"
/>
...
...
@@ -43,8 +44,6 @@
<operation
v-if=
"tabNme=='作业情况'"
:dataList=
"homeWorks"
></operation>
<studentList
@
selected=
"selectStuHandler"
v-if=
"tabNme=='学生列表'"
:dataList=
"students"
></studentList>
<examList
v-if=
"tabNme=='考试信息'"
:dataList=
"exams"
></examList>
<!--
<Loadmore
:state=
"pageState"
/>
-->
</scroll-view>
<Loadmore
:state=
"pageState"
/>
</view>
...
...
@@ -120,6 +119,11 @@
});
data
.
userData
=
uni
.
getStorageSync
(
"userInfo"
)
let
methods
=
{
goSet
(){
uni
.
navigateTo
({
url
:
'/pages/setComments/setComments'
})
},
back
(){
uni
.
navigateBack
({
delta
:
1
...
...
src/pages/setComments/index.vue
0 → 100644
View file @
64e1e4c4
<
template
>
<view
class=
"setComments-index-box"
>
<navbar
class=
"navbarSticky"
bg=
"#F6F6F6"
>
<view
class=
"setComments-index-header-box flex"
>
<van-icon
class=
"setComments-index-header-left"
name=
"arrow-left"
@
click=
"back"
/>
<text
class=
"setComments-index-header-title"
>
设置评语
</text>
</view>
</navbar>
<view
class=
"setComments-index-content"
>
<view>
<view>
</view>
<view>
<view>
<text>
自定义评价
</text>
<view>
从自动评价规则进入修改
</view>
</view>
<view>
<text>
自动评价规则
</text>
</view>
</view>
</view>
<setComments></setComments>
</view>
</view>
</
template
>
<
script
>
import
setComments
from
'@/components/setComments/setComments'
import
{
reactive
,
toRefs
,
onMounted
,
getCurrentInstance
,
inject
}
from
"vue"
;
import
navbar
from
'../../components/navbar.vue'
export
default
{
props
:
{
},
components
:
{
navbar
,
setComments
},
setup
()
{
let
{
proxy
}
=
getCurrentInstance
();
let
data
=
reactive
({
value
:
1
,
optionsList
:[
{
text
:
'部分可见'
,
value
:
0
},
{
text
:
'可见不可见'
,
value
:
1
},
{
text
:
'活动商品'
,
value
:
2
},
],
radioList
:[
{
name
:
'使用默认配置'
,
id
:
1
,
checked
:
true
},
{
name
:
'自定义评价'
,
id
:
2
}
],
checked
:
'1'
,
obj
:{},
Msg
:
{
HomeWorkId
:
''
,
},
showPhone
:
false
,
showLogin
:
true
,
//多次点击
HomeWorkId
:
''
,
jobDetails
:
{},
dataList
:[],
pageState
:
'more'
});
let
methods
=
{
back
(){
uni
.
navigateBack
({
delta
:
1
})
},
radioChange
(
e
){
console
.
log
(
"打印国家名称"
,
e
.
target
.
value
)
}
}
return
{
...
toRefs
(
data
),
...
methods
};
},
onLoad
(
option
)
{
this
.
Msg
.
HomeWorkId
=
option
.
HomeWorkId
},
};
</
script
>
<
style
scoped
>
.setComments-index-box
{
background
:
#F6F6F6
;
}
.navbarSticky
{
display
:
sticky
;
top
:
0
;
z-index
:
9
;
}
</
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