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
c12ff145
Commit
c12ff145
authored
Jun 01, 2022
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/youjie/thinkapp
parents
1bced2d0
3d8b5a9a
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
495 additions
and
190 deletions
+495
-190
addComment.vue
src/components/setComments/addComment.vue
+0
-0
commentDetails.vue
src/components/setComments/commentDetails.vue
+16
-21
commentDetailsPopu.vue
src/components/setComments/commentDetailsPopu.vue
+97
-120
studentsPopu.vue
src/components/setComments/studentsPopu.vue
+203
-0
workSituation.vue
src/pages/index/workSituation.vue
+37
-36
addComment.vue
src/pages/setComments/addComment.vue
+136
-10
commentDetails.vue
src/pages/setComments/commentDetails.vue
+2
-2
commentRulesList.vue
src/pages/setComments/commentRulesList.vue
+4
-1
No files found.
src/components/setComments/addComment.vue
0 → 100644
View file @
c12ff145
src/components/setComments/commentDetails.vue
View file @
c12ff145
...
@@ -5,14 +5,14 @@
...
@@ -5,14 +5,14 @@
<view
class=
"index-student-information"
>
<view
class=
"index-student-information"
>
<view
class=
"commentDetailsList-content"
>
<view
class=
"commentDetailsList-content"
>
<view
class=
"commentDetailsList-list"
v-for=
"(item,index) in CourseCommentTimesList"
:key=
"index"
>
<view
class=
"commentDetailsList-list"
v-for=
"(item,index) in CourseCommentTimesList"
:key=
"index"
>
<view
class=
"commentDetailsList-cross"
@
click=
"deleteRules"
>
<
!--
<
view
class=
"commentDetailsList-cross"
@
click=
"deleteRules"
>
<van-icon
name=
"cross"
/>
<van-icon
name=
"cross"
/>
</view>
</view>
-->
<view
class=
"commentDetailsList-img flex"
>
<view
class=
"commentDetailsList-img flex"
>
<view>
{{
item
.
StuName
}}
</view>
<view>
{{
item
.
StuName
}}
</view>
<view
class=
"flex"
>
<view
class=
"flex"
>
<text>
{{
item
.
ShowTypeStr
}}
</text>
<text>
{{
item
.
ShowTypeStr
}}
</text>
<van-image
@
click=
"editRules"
class=
"img"
width=
"31rpx"
height=
"30rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653980151000_180.png"
/>
<van-image
@
click=
"editRules
(item)
"
class=
"img"
width=
"31rpx"
height=
"30rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653980151000_180.png"
/>
</view>
</view>
<view
class=
"Wire"
></view>
<view
class=
"Wire"
></view>
</view>
</view>
...
@@ -27,7 +27,10 @@
...
@@ -27,7 +27,10 @@
<view>
暂无评论规则数据
</view>
<view>
暂无评论规则数据
</view>
</view>
</view>
</view>
</view>
<commentDetailsPopu
ref=
"getcommentPopup"
></commentDetailsPopu>
<template
v-show=
"show"
>
<commentDetailsPopu
ref=
"getcommentPopup"
@
change=
"changeData"
></commentDetailsPopu>
</
template
>
</view>
</view>
</template>
</template>
<
script
>
<
script
>
...
@@ -55,20 +58,6 @@
...
@@ -55,20 +58,6 @@
proxy
proxy
}
=
getCurrentInstance
();
}
=
getCurrentInstance
();
let
data
=
reactive
({
let
data
=
reactive
({
optionsList
:
[{
text
:
'可见'
,
value
:
1
},
{
text
:
'部分可见'
,
value
:
2
},
{
text
:
'不可见'
,
value
:
3
},
],
dataList
:
[],
dataList
:
[],
show
:
false
show
:
false
});
});
...
@@ -87,9 +76,9 @@
...
@@ -87,9 +76,9 @@
data
.
show
=
true
data
.
show
=
true
refs
.
getcommentPopup
.
$vm
.
showFun
()
refs
.
getcommentPopup
.
$vm
.
showFun
()
},
},
editRules
(){
//编辑规则
editRules
(
item
){
//编辑规则
data
.
show
=
true
data
.
show
=
true
refs
.
getcommentPopup
.
$vm
.
showFun
()
refs
.
getcommentPopup
.
$vm
.
showFun
(
item
)
},
},
deleteRules
(){
//删除规则
deleteRules
(){
//删除规则
uni
.
showModal
({
uni
.
showModal
({
...
@@ -111,8 +100,8 @@
...
@@ -111,8 +100,8 @@
clickOptionsShow
(
item
)
{
clickOptionsShow
(
item
)
{
item
.
optionsShow
=
!
item
.
optionsShow
;
item
.
optionsShow
=
!
item
.
optionsShow
;
},
},
//实在评价可见性
clickoptions
(
item
,
subItem
)
{
clickoptions
(
item
,
subItem
)
{
let
showTypeMsg
=
{
let
showTypeMsg
=
{
CourseId
:
item
.
CourseId
,
CourseId
:
item
.
CourseId
,
Times
:
item
.
Times
,
Times
:
item
.
Times
,
...
@@ -125,6 +114,12 @@
...
@@ -125,6 +114,12 @@
})
})
item
.
optionsShow
=
false
;
item
.
optionsShow
=
false
;
//调用父组件方法
context
.
emit
(
'refreshData'
);
},
//刷新数据
changeData
()
{
//调用父组件方法
//调用父组件方法
context
.
emit
(
'refreshData'
);
context
.
emit
(
'refreshData'
);
}
}
...
...
src/components/setComments/commentDetailsPopu.vue
View file @
c12ff145
<
template
>
<
template
>
<view
class=
"commentPopup-box"
>
<view
class=
"commentPopup-box"
>
<van-popup
:show=
"show"
:round=
"true"
@
close=
"closepopup"
>
<van-popup
:show=
"show"
:round=
"true"
@
close=
"closepopup"
>
<view
class=
"commentPopup-box"
>
<view
class=
"commentPopup-box"
>
<van-icon
class=
"commentPopup-closure"
name=
"cross"
@
click=
"closepopup"
/>
<van-icon
class=
"commentPopup-closure"
name=
"cross"
@
click=
"closepopup"
/>
<view
class=
"commentPopup-title"
>
修改评语
</view>
<view
class=
"commentPopup-title"
>
修改评语
</view>
<view
class=
"commentPopup-content"
>
<view
class=
"commentPopup-content"
>
<textarea
placeholder=
"请填写评语内容
"
></textarea>
<textarea
placeholder=
"请填写评语内容"
v-model=
"stuCommentObj.Info
"
></textarea>
</view>
</view>
<view
class=
"commentPopup-save flex"
>
<view
class=
"commentPopup-save flex"
>
<view
@
click=
"save"
>
确认
</view>
<view
@
click=
"save"
>
确认
</view>
</view>
</view>
</view>
</view>
</van-popup>
</van-popup>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
import
{
ref
,
ref
,
reactive
,
reactive
,
toRefs
,
toRefs
,
onMounted
,
onMounted
,
getCurrentInstance
,
getCurrentInstance
,
inject
,
inject
,
watch
watch
}
from
"vue"
;
}
from
"vue"
;
import
{
uploadFile
}
from
"@/utils/index"
;
import
{
uploadFile
}
from
"@/utils/index"
;
export
default
{
export
default
{
props
:
{
props
:
{
},
},
components
:
{},
components
:
{},
setup
(
props
,
ctx
)
{
emits
:
[
'change'
],
// 双滑块模式时,值必须是数组
setup
(
props
,
ctx
)
{
const
value
=
ref
([
10
,
50
]);
// 双滑块模式时,值必须是数组
let
{
const
value
=
ref
([
10
,
50
]);
let
{
proxy
proxy
}
=
getCurrentInstance
();
}
=
getCurrentInstance
();
let
data
=
reactive
({
let
data
=
reactive
({
valueNum
:
ref
([
0
,
0
]),
show
:
false
,
show
:
false
,
loading
:
false
,
loading
:
false
,
stuCommentObj
:
{
Id
:
0
,
Info
:
""
}
});
});
let
methods
=
{
let
methods
=
{
showFun
(){
showFun
(
item
)
{
data
.
show
=
true
if
(
item
)
{
},
data
.
stuCommentObj
.
Id
=
item
.
Id
;
closepopup
(){
data
.
stuCommentObj
.
Info
=
item
.
Info
;
data
.
show
=
false
}
},
data
.
show
=
true
onChange
(
value
){
},
console
.
log
(
value
)
closepopup
()
{
// data.valueNum = value
data
.
show
=
false
// console.log(data.valueNum)
},
},
save
()
{
save
(){
proxy
.
$request
(
"/Teacher/SetStuCommentInfo"
,
data
.
stuCommentObj
).
then
(
res
=>
{
data
.
show
=
false
if
(
res
.
Code
==
1
)
{
}
uni
.
showToast
({
};
icon
:
'none'
,
duration
:
500
});
}
});
ctx
.
emit
(
"change"
);
data
.
show
=
false
}
};
let
that
=
methods
;
let
that
=
methods
;
return
{
return
{
...
toRefs
(
data
),
...
toRefs
(
data
),
value
,
value
,
...
methods
...
methods
};
};
},
},
onLoad
()
{
onLoad
()
{
},
},
onShow
()
{
onShow
()
{
}
}
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.custom-button
{
.commentPopup-content
{
width
:
26
rpx
;
background
:
#F7F7F7
;
color
:
#fff
;
border-radius
:
30
rpx
;
font-size
:
20
rpx
;
min-height
:
152
rpx
;
line-height
:
36
rpx
;
padding
:
37
rpx
43
rpx
;
text-align
:
center
;
}
background-color
:
#ee0a24
;
border-radius
:
100
rpx
;
.commentPopup-save
view
{
}
background
:
#C91727
;
.commentPopup-content
{
font-size
:
30
rpx
;
background
:
#F7F7F7
;
font-weight
:
bold
;
border-radius
:
30
rpx
;
letter-spacing
:
1
rpx
;
min-height
:
152
rpx
;
width
:
260
rpx
;
padding
:
37
rpx
43
rpx
;
line-height
:
88
rpx
;
}
border-radius
:
44
rpx
;
.commentPopup-save
view
{
background
:
#C91727
;
font-size
:
30
rpx
;
font-weight
:
bold
;
letter-spacing
:
1
rpx
;
width
:
260
rpx
;
line-height
:
88
rpx
;
border-radius
:
44
rpx
;
text-align
:
center
;
color
:
#FFFFFF
;
}
.commentPopup-save
{
justify-content
:
center
;
margin-top
:
40
rpx
;
}
.commentPopup-box
.noData
{
text-align
:
center
;
text-align
:
center
;
flex
:
1
;
color
:
#FFFFFF
;
}
.commentPopup-title
{
width
:
100%
;
width
:
100%
;
text-align
:
center
;
font-size
:
30
rpx
;
font-weight
:
500
;
margin-bottom
:
73
rpx
;
letter-spacing
:
1
rpx
;
}
}
.commentPopup-box
.noData
image
{
width
:
200
rpx
;
.commentPopup-closure
{
margin-bottom
:
40
rpx
;
position
:
absolute
;
right
:
31
rpx
;
top
:
31
rpx
;
color
:
#282828
;
font-size
:
38
rpx
;
}
}
.commentPopup-box
.noData
view
{
font-size
:
24
rpx
;
.commentPopup-box
{
color
:
#cecece
;
position
:
relative
;
text-align
:
center
;
width
:
548
rpx
;
padding
:
48
rpx
55
rpx
60
rpx
55
rpx
;
}
}
.commentPopup-name
{
background-color
:
#F7F7F7
;
.commentPopup-box
{}
text-align
:
center
;
border
:
1px
solid
#F7F7F7
;
height
:
88
rpx
;
line-height
:
88
rpx
;
padding
:
0
10
rpx
;
border-radius
:
44
rpx
;
font-size
:
30
rpx
;
letter-spacing
:
1
rpx
;
}
.commentPopup-title
{
width
:
100%
;
text-align
:
center
;
font-size
:
30
rpx
;
font-weight
:
500
;
margin-bottom
:
73
rpx
;
letter-spacing
:
1
rpx
;
}
.commentPopup-closure
{
position
:
absolute
;
right
:
31
rpx
;
top
:
31
rpx
;
color
:
#282828
;
font-size
:
38
rpx
;
}
.commentPopup-box
{
position
:
relative
;
width
:
548
rpx
;
padding
:
48
rpx
55
rpx
60
rpx
55
rpx
;
}
.commentPopup-box
{
}
</
style
>
</
style
>
src/components/setComments/studentsPopu.vue
0 → 100644
View file @
c12ff145
<
template
>
<van-popup
:show=
"show"
:round=
"true"
position=
"bottom"
custom-style=
"height: 80%"
@
close=
"closepopup"
>
<view
class=
"studentsPopu-box flex"
>
<view
class=
"studentsPopu-title"
>
选择学员
<text>
(2/50)
</text></view>
<view
class=
"studentsPopu-search flex"
>
<van-search
:value=
"Keywords"
shape=
"round"
style=
"border-radius: 20rpx;width: 100%;"
input-align=
"center"
background=
"#F6F6F6"
@
change=
"searchKeywords"
placeholder=
"请输入搜索关键词"
/>
</view>
<view
class=
"studentsPopuImg"
>
<view
class=
"studentsPopu-img-box flex"
>
<view
class=
"studentsPopu-img-list active flex"
@
click=
"clickChoose"
>
<view
class=
"studentsPopu-imgbox flex"
>
<view
class=
"studentsPopu-img flex"
>
<view>
<van-image
width=
"119rpx"
height=
"119rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653894197000_691.png"
/>
</view>
</view>
</view>
<text
class=
"studentsPopu-text"
>
学员名称
</text>
</view>
<view
class=
"studentsPopu-img-list flex"
@
click=
"clickChoose"
>
<view
class=
"studentsPopu-imgbox flex"
>
<view
class=
"studentsPopu-img flex"
>
<view>
<van-image
width=
"119rpx"
height=
"119rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653894197000_691.png"
/>
</view>
</view>
</view>
<text
class=
"studentsPopu-text"
>
学员名称
</text>
</view>
</view>
</view>
<view
class=
"footer"
>
<view
class=
"studentsPopu-save flex"
>
<view
@
click=
"save"
>
确认
</view>
</view>
</view>
</view>
</van-popup>
</
template
>
<
script
>
import
{
ref
,
reactive
,
toRefs
,
onMounted
,
getCurrentInstance
,
inject
,
watch
}
from
"vue"
;
import
{
uploadFile
}
from
"@/utils/index"
;
export
default
{
props
:
{
},
components
:
{},
setup
(
props
,
ctx
)
{
let
{
proxy
}
=
getCurrentInstance
();
let
data
=
reactive
({
show
:
false
,
loading
:
false
,
Keywords
:
''
});
let
methods
=
{
// 选中
clickChoose
(){
},
// 搜索
searchKeywords
(){
},
showFun
(){
data
.
show
=
true
},
closepopup
(){
data
.
show
=
false
},
save
(){
data
.
show
=
false
}
};
let
that
=
methods
;
return
{
...
toRefs
(
data
),
...
methods
};
},
onLoad
(){
},
onShow
()
{
}
};
</
script
>
<
style
scoped
>
.studentsPopu-text
{
text-align
:
center
;
font-weight
:
500
;
font-size
:
26
rpx
;
color
:
#282828
;
letter-spacing
:
1
rpx
;
margin-top
:
15
rpx
;
}
.studentsPopu-img
view
{
width
:
119
rpx
;
height
:
119
rpx
;
/* border: 1rpx solid #E5E5E5; */
background
:
#E5E5E5
;
border-radius
:
50%
;
overflow
:
hidden
;
}
.studentsPopu-img-list.active
.studentsPopu-img
{
background
:
#C91928
;
box-shadow
:
0
rpx
0
rpx
59
rpx
0
rpx
rgba
(
201
,
23
,
39
,
0.34
);
}
.studentsPopu-img
{
width
:
130
rpx
;
height
:
130
rpx
;
background
:
#FFFFFF
;
box-shadow
:
0
rpx
6
rpx
29
rpx
0
rpx
rgba
(
76
,
76
,
76
,
0.09
);
border-radius
:
50%
;
justify-content
:
center
;
align-items
:
center
;
}
.studentsPopu-imgbox
{
justify-content
:
center
;
}
.studentsPopu-img-list
{
flex
:
0
0
25%
;
flex-direction
:
column
;
}
.studentsPopu-img-box
{
height
:
90%
;
padding
:
40
rpx
25
rpx
;
flex-wrap
:
wrap
;
margin-bottom
:
100
rpx
;
overflow-y
:
auto
;
}
.studentsPopuImg
{
max-height
:
670
rpx
;
overflow
:
hidden
;
}
.studentsPopu-search
{
padding
:
30
rpx
27
rpx
5
rpx
27
rpx
;
}
.studentsPopu-title
text
{
font-size
:
26
rpx
;
color
:
#949494
;
font-weight
:
400
;
margin-left
:
20
rpx
;
}
.studentsPopu-title
{
font-size
:
36
rpx
;
font-weight
:
800
;
color
:
#282828
;
letter-spacing
:
1
rpx
;
padding
:
48
rpx
55
rpx
0
55
rpx
;
}
.studentsPopu-save
view
{
background
:
#C91727
;
font-size
:
30
rpx
;
font-weight
:
bold
;
letter-spacing
:
1
rpx
;
width
:
260
rpx
;
line-height
:
88
rpx
;
border-radius
:
44
rpx
;
text-align
:
center
;
color
:
#FFFFFF
;
}
.studentsPopu-save
{
justify-content
:
center
;
margin-top
:
40
rpx
;
margin-bottom
:
40
rpx
;
}
.studentsPopu-box
{
background
:
#f6f6f6
;
/* padding: 48rpx 0 60rpx 0; */
flex-direction
:
column
;
height
:
100%
;
overflow
:
hidden
;
}
.footer
{
position
:
fixed
;
left
:
0
;
right
:
0
;
bottom
:
0
;
}
</
style
>
src/pages/index/workSituation.vue
View file @
c12ff145
...
@@ -14,13 +14,18 @@
...
@@ -14,13 +14,18 @@
</view>
</view>
</view>
</view>
</navbar>
</navbar>
<view
style=
"margin: 40rpx 0 10rpx 0;"
>
<view
style=
"margin: 40rpx 0 10rpx 0;"
class=
"workSituationAccountName flex"
>
<view
style=
"padding:0 50rpx;font-weight: 800;color: #282828;"
>
<view
style=
"padding:0 50rpx;font-weight: 800;color: #282828;"
>
<view
style=
"font-size: 36rpx;"
>
Hi,
</view>
<view
style=
"font-size: 36rpx;"
>
Hi,
</view>
<view
style=
"font-size: 50rpx;"
>
{{
userData
.
AccountName
}}
老师
</view>
<view
style=
"font-size: 50rpx;"
>
{{
userData
.
AccountName
}}
老师
</view>
</view>
</view>
<view
@
click=
"goSet"
>
设置评语
</view>
<view
class=
"set-text"
>
<view
class=
"flex"
@
click=
"goSet"
>
<text>
设置评语
</text>
<van-image
class=
"img"
width=
"14rpx"
height=
"13rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653977684000_601.png"
/>
</view>
</view>
</view>
</view>
<courseCard
@
change=
"changeCourseHandler"
></courseCard>
<courseCard
@
change=
"changeCourseHandler"
></courseCard>
<view
class=
"index-student-information"
>
<view
class=
"index-student-information"
>
...
@@ -113,7 +118,7 @@
...
@@ -113,7 +118,7 @@
homeWorks
:[],
homeWorks
:[],
exams
:[],
exams
:[],
pageState
:
"more"
,
pageState
:
"more"
,
currentCourseId
:
189666293
,
currentCourseId
:
45329247
,
userData
:{},
userData
:{},
loading
:
false
loading
:
false
});
});
...
@@ -137,10 +142,9 @@
...
@@ -137,10 +142,9 @@
})
})
},
},
changeCourseHandler
(
id
){
changeCourseHandler
(
id
){
console
.
log
(
id
,
'........................'
)
data
.
Msg
.
courseId
=
45329247
data
.
Msg
.
courseId
=
189666293
data
.
OperationMsg
.
courseId
=
45329247
data
.
OperationMsg
.
courseId
=
189666293
data
.
currentCourseId
=
45329247
data
.
currentCourseId
=
189666293
methods
.
getCourseStuList
()
methods
.
getCourseStuList
()
methods
.
getExamPageList
()
methods
.
getExamPageList
()
methods
.
getCourseHomeWorkList
()
methods
.
getCourseHomeWorkList
()
...
@@ -150,14 +154,6 @@
...
@@ -150,14 +154,6 @@
},
},
toggleTitle
(
t
)
{
toggleTitle
(
t
)
{
data
.
tabNme
=
t
data
.
tabNme
=
t
// if(t=='学生列表'){
// this.getCourseStuList()
// }else if(data.tabNme=='作业情况'){
// this.getCourseHomeWorkList()
// }else{
// this.getExamPageList()
// }
},
},
//获取学生列表
//获取学生列表
getCourseStuList
(){
getCourseStuList
(){
...
@@ -244,31 +240,13 @@
...
@@ -244,31 +240,13 @@
};
};
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
// this.tabNme = option.tabNme
// this.OperationMsg.courseId = option.courseId
// this.Msg.courseId = option.courseId
},
},
onShow
()
{
onShow
()
{
// if(this.tabNme=='学生列表'){
// this.getCourseStuList()
// }else if(this.tabNme=='作业情况'){
// this.getGetCourseHomeWorkList()
// }else{
// this.getExamPageList()
// }
// this.tabNme = option.tabNme?option.tabNme:'作业情况'
// this.OperationMsg.courseId = option.courseId
// this.Msg.CourseId = option.courseId
},
},
onShow
()
{
onShow
()
{
// this.dataList = []
// if(this.tabNme=='学生列表'){
// this.getCourseStuList()
// }else if(this.tabNme=='作业情况'){
// this.getCourseHomeWorkList()
// }else{
// this.getExamPageList()
// }
},
},
...
@@ -290,6 +268,29 @@
...
@@ -290,6 +268,29 @@
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.set-text
view
.img
{
margin-left
:
10
rpx
;
}
.set-text
view
{
width
:
160
rpx
;
line-height
:
50
rpx
;
background
:
#FFFFFF
;
border
:
1
rpx
solid
#E6A9AE
;
border-radius
:
25
rpx
;
justify-content
:
center
;
font-size
:
24
rpx
;
font-weight
:
bold
;
color
:
#C91727
;
letter-spacing
:
1
rpx
;
}
.set-text
{
width
:
160
rpx
;
flex-shrink
:
0
;
margin-right
:
50
rpx
;
}
.workSituationAccountName
{
justify-content
:
space-between
;
}
.num
{
.num
{
font-size
:
20
rpx
;
font-size
:
20
rpx
;
display
:
inline-block
;
display
:
inline-block
;
...
...
src/pages/setComments/addComment.vue
View file @
c12ff145
...
@@ -14,23 +14,49 @@
...
@@ -14,23 +14,49 @@
</text>
</text>
</view>
</view>
<view
class=
"addComment-img-box flex"
>
<view
class=
"addComment-img-box flex"
>
<view
class=
"addComment-img-list flex"
>
<view
class=
"addComment-img-list activeOne flex"
@
click=
"selectStudents"
>
<view
class=
"addComment-img"
>
<view
class=
"addComment-imgbox flex"
>
<view>
<view
class=
"addComment-img"
>
<van-icon
name=
"plus"
/>
<view>
<van-icon
name=
"plus"
/>
</view>
</view>
</view>
</view>
</view>
<text
class=
"addComment-text"
>
添加学员
</text>
<text
class=
"addComment-text"
>
添加学员
</text>
</view>
</view>
<view
class=
"addComment-img-list flex"
>
<view
class=
"addComment-imgbox flex"
>
<view
class=
"addComment-img"
>
<view>
<van-image
width=
"119rpx"
height=
"119rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653894197000_691.png"
/>
</view>
</view>
</view>
<text
class=
"addComment-text"
>
学员名称
</text>
</view>
</view>
</view>
<!--
<setComments
:CourseCommentTimesList=
"courseTimeList"
@
refreshData=
"getCourseCommentTimes"
></setComments>
-->
<view
class=
"addComment-textarea-box"
>
<view
class=
"content-textarea-box"
>
<textarea
placeholder=
"请填写评论内容"
></textarea>
</view>
<view
class=
"Sure-button flex"
>
<view
v-if=
"clickShow"
@
click=
"clickSure"
>
确定
</view>
<view
v-else
class=
"active"
>
确定
</view>
</view>
</view>
<template
v-show=
"show"
>
<studentsPopu
ref=
"getstudentsPopup"
></studentsPopu>
</
template
>
</view>
</view>
<view
class=
"addComment-bj"
></view>
</view>
</view>
</template>
</template>
<
script
>
<
script
>
import
s
etComments
from
'@/components/setComments/setComments
'
import
s
tudentsPopu
from
'@/components/setComments/studentsPopu
'
import
{
import
{
ref
,
reactive
,
reactive
,
toRefs
,
toRefs
,
onMounted
,
onMounted
,
...
@@ -44,9 +70,12 @@
...
@@ -44,9 +70,12 @@
},
},
components
:
{
components
:
{
navbar
,
navbar
,
s
etComments
s
tudentsPopu
},
},
setup
()
{
setup
()
{
let
{
refs
}
=
getCurrentInstance
();
let
{
let
{
proxy
proxy
}
=
getCurrentInstance
();
}
=
getCurrentInstance
();
...
@@ -81,6 +110,8 @@
...
@@ -81,6 +110,8 @@
},
},
courseTimeList
:
[],
//课程自动生成评论次数
courseTimeList
:
[],
//课程自动生成评论次数
courseRule
:
{},
//课程评价规则
courseRule
:
{},
//课程评价规则
clickShow
:
true
,
show
:
false
});
});
let
methods
=
{
let
methods
=
{
back
()
{
back
()
{
...
@@ -89,6 +120,19 @@
...
@@ -89,6 +120,19 @@
})
})
},
},
// 点击弹出学员列表
selectStudents
(){
data
.
show
=
true
setTimeout
(()
=>
{
refs
.
getstudentsPopup
.
$vm
.
showFun
()
},
500
)
},
// 点击确定
clickSure
(){
data
.
clickShow
=
false
console
.
log
(
data
.
clickShow
)
},
radioChange
(
e
)
{
radioChange
(
e
)
{
console
.
log
(
"打印国家名称"
,
e
.
target
.
value
)
console
.
log
(
"打印国家名称"
,
e
.
target
.
value
)
},
},
...
@@ -129,12 +173,81 @@
...
@@ -129,12 +173,81 @@
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.Sure-button
view
.active
{
background-color
:
#F6F6F6
;
color
:
#C91727
;
}
.Sure-button
view
{
width
:
359
rpx
;
line-height
:
88
rpx
;
background-color
:
#C91727
;
border-radius
:
44
rpx
;
color
:
#FFFFFF
;
font-size
:
30
rpx
;
font-weight
:
bold
;
text-align
:
center
;
letter-spacing
:
1
rpx
;
}
.Sure-button
{
justify-content
:
center
;
margin-top
:
67
rpx
;
}
.content-textarea-box
textarea
{
width
:
100%
;
}
.content-textarea-box
{
background
:
#F6F6F6
;
border-radius
:
30
rpx
;
padding
:
33
rpx
37
rpx
;
min-height
:
537
rpx
;
}
.addComment-textarea-box
{
border-radius
:
50
rpx
50
rpx
0
0
;
/* background: #FFFFFF; */
background
:
url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1654049334000_485.png')
no-repeat
top
0
center
#FFFFFF
;
background-size
:
141
rpx
41
rpx
;
padding
:
50
rpx
50
rpx
37
rpx
50
rpx
;
}
.addComment-text
{
text-align
:
center
;
font-weight
:
500
;
font-size
:
26
rpx
;
color
:
#282828
;
letter-spacing
:
1
rpx
;
margin-top
:
15
rpx
;
}
.addComment-img-list.activeOne
.addComment-img
view
{
text-align
:
center
;
line-height
:
123
rpx
;
color
:
#DCDCDC
;
font-weight
:
bold
;
font-size
:
50
rpx
;
}
.addComment-img
view
{
width
:
119
rpx
;
height
:
119
rpx
;
border
:
1
rpx
solid
#DBDBDB
;
border-radius
:
50%
;
margin
:
5
rpx
;
overflow
:
hidden
;
}
.addComment-img
{
width
:
130
rpx
;
height
:
130
rpx
;
background
:
#FFFFFF
;
border-radius
:
50%
;
}
.addComment-imgbox
{
justify-content
:
center
;
}
.addComment-img-list
{
.addComment-img-list
{
flex
:
0
0
25%
;
flex
:
0
0
25%
;
flex-direction
:
column
;
}
}
.addComment-img-box
{
.addComment-img-box
{
padding
:
0
50
rpx
;
padding
:
0
20
rpx
;
justify-content
:
space-between
;
flex-wrap
:
wrap
;
margin-bottom
:
50
rpx
;
}
}
.addComment-title
van-icon
{
.addComment-title
van-icon
{
font-size
:
38
rpx
;
font-size
:
38
rpx
;
...
@@ -165,6 +278,19 @@
...
@@ -165,6 +278,19 @@
position
:
relative
;
position
:
relative
;
z-index
:
3
;
z-index
:
3
;
}
}
.addComment-content
{
position
:
relative
;
z-index
:
1
;
}
.addComment-bj
{
position
:
fixed
;
right
:
0
;
left
:
0
;
top
:
0
;
bottom
:
0
;
z-index
:
0
;
background
:
#F6F6F6
;
}
.navbarSticky
{
.navbarSticky
{
display
:
sticky
;
display
:
sticky
;
top
:
0
;
top
:
0
;
...
...
src/pages/setComments/commentDetails.vue
View file @
c12ff145
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<commentDetails
:CourseCommentTimesList=
"courseTimeList"
@
refreshData=
"get
CourseCommentTimes
"
></commentDetails>
<commentDetails
:CourseCommentTimesList=
"courseTimeList"
@
refreshData=
"get
StuCommentList
"
></commentDetails>
</view>
</view>
...
@@ -96,8 +96,8 @@
...
@@ -96,8 +96,8 @@
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
delta
:
1
})
})
},
},
//获取系统生成学员评价列表
getStuCommentList
(){
getStuCommentList
(){
proxy
.
$request
(
"/Teacher/GetStuCommentList"
,
data
.
Msg
).
then
(
res
=>
{
proxy
.
$request
(
"/Teacher/GetStuCommentList"
,
data
.
Msg
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
...
...
src/pages/setComments/commentRulesList.vue
View file @
c12ff145
...
@@ -38,7 +38,9 @@
...
@@ -38,7 +38,9 @@
<view
class=
"save flex"
><text
v-if=
"!isDefaultRule"
@
click=
"saveRules"
>
保存
</text></view>
<view
class=
"save flex"
><text
v-if=
"!isDefaultRule"
@
click=
"saveRules"
>
保存
</text></view>
</view>
</view>
</view>
</view>
<rulesPopup
ref=
"getrulesPopup"
@
change=
"changeData"
></rulesPopup>
<template
v-show=
"show"
>
<rulesPopup
ref=
"getrulesPopup"
@
change=
"changeData"
></rulesPopup>
</
template
>
</view>
</view>
</template>
</template>
<
script
>
<
script
>
...
@@ -81,6 +83,7 @@
...
@@ -81,6 +83,7 @@
},
//课程规则
},
//课程规则
isDefaultRule
:
true
,
//是否是默认规则(
isDefaultRule
:
true
,
//是否是默认规则(
detailItem
:
{},
//当前编辑项
detailItem
:
{},
//当前编辑项
show
:
false
});
});
let
methods
=
{
let
methods
=
{
back
()
{
back
()
{
...
...
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