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
e87edc18
Commit
e87edc18
authored
Jun 01, 2022
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/youjie/thinkapp
parents
3a3bf6e0
e564b053
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
350 additions
and
303 deletions
+350
-303
examComponents.vue
src/components/index/examComponents.vue
+5
-3
commentDetails.vue
src/components/setComments/commentDetails.vue
+75
-71
studentsPopu.vue
src/components/setComments/studentsPopu.vue
+161
-151
addComment.vue
src/pages/setComments/addComment.vue
+108
-77
commentDetails.vue
src/pages/setComments/commentDetails.vue
+1
-1
No files found.
src/components/index/examComponents.vue
View file @
e87edc18
...
@@ -225,15 +225,17 @@
...
@@ -225,15 +225,17 @@
border
:
3px
solid
#FFFFFF
;
border
:
3px
solid
#FFFFFF
;
box-shadow
:
0px
0px
12px
0px
rgba
(
255
,
255
,
255
,
0.46
);
box-shadow
:
0px
0px
12px
0px
rgba
(
255
,
255
,
255
,
0.46
);
}
}
.examComponents-center-box
::after
{
/* div是你需要添加背景图片的盒子*/
.examComponents-center-box
::after
{
/* div是你需要添加背景图片的盒子*/
content
:
""
;
content
:
""
;
background-image
:
url(https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1654062518000_33.png)
;
background-image
:
url(https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1654062518000_33.png)
;
background-position
:
30
rpx
bottom
;
background-position
:
right
20
rpx
top
43
rpx
;
background-size
:
74
rpx
auto
;
background-size
:
74
rpx
auto
;
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
opacity
:
1
;
opacity
:
0.3
;
position
:
absolute
;
position
:
absolute
;
top
:
0
rpx
;
top
:
0
;
left
:
0
;
bottom
:
0
;
bottom
:
0
;
right
:
0
;
right
:
0
;
}
}
...
...
src/components/setComments/commentDetails.vue
View file @
e87edc18
<
template
>
<
template
>
<view
class=
"commentDetailsList-box"
>
<view
class=
"commentDetailsList-box"
>
<view
class=
"commentDetailsList-add"
@
click=
"goAdd"
>
<view
class=
"commentDetailsList-add"
@
click=
"goAdd"
>
<van-icon
name=
"plus"
/><text>
增加评论
</text>
</view>
<van-icon
name=
"plus"
/>
<text>
增加评论
</text>
</view>
<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"
>
...
@@ -30,7 +32,6 @@
...
@@ -30,7 +32,6 @@
<template
v-show=
"show"
>
<template
v-show=
"show"
>
<commentDetailsPopu
ref=
"getcommentPopup"
@
change=
"changeData"
></commentDetailsPopu>
<commentDetailsPopu
ref=
"getcommentPopup"
@
change=
"changeData"
></commentDetailsPopu>
</
template
>
</
template
>
</view>
</view>
</template>
</template>
<
script
>
<
script
>
...
@@ -46,25 +47,29 @@
...
@@ -46,25 +47,29 @@
}
from
"vue"
;
}
from
"vue"
;
import
navbar
from
'../../components/navbar.vue'
import
navbar
from
'../../components/navbar.vue'
export
default
{
export
default
{
props
:
[
"CourseCommentTimesList"
],
props
:
[
"CourseCommentTimesList"
,
"qMsg"
],
emits
:
[
'refreshData'
],
emits
:
[
'refreshData'
],
components
:
{
components
:
{
navbar
,
navbar
,
commentDetailsPopu
commentDetailsPopu
},
},
setup
(
props
,
context
)
{
setup
(
props
,
context
)
{
let
{
refs
}
=
getCurrentInstance
();
let
{
refs
}
=
getCurrentInstance
();
let
{
let
{
proxy
proxy
}
=
getCurrentInstance
();
}
=
getCurrentInstance
();
let
data
=
reactive
({
let
data
=
reactive
({
dataList
:
[],
dataList
:
[],
show
:
false
show
:
false
});
});
let
methods
=
{
let
methods
=
{
goAdd
(){
goAdd
()
{
let
url
=
'/pages/setComments/addComment?CourseId='
+
this
.
qMsg
.
CourseId
+
"&CommentTimes="
+
this
.
qMsg
.
CommentTimes
;
console
.
log
(
"url"
,
url
);
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/setComments/addComment'
url
:
url
})
})
},
},
back
()
{
back
()
{
...
@@ -72,25 +77,25 @@
...
@@ -72,25 +77,25 @@
delta
:
1
delta
:
1
})
})
},
},
addRules
(){
//添加规则
addRules
()
{
//添加规则
data
.
show
=
true
data
.
show
=
true
refs
.
getcommentPopup
.
$vm
.
showFun
()
refs
.
getcommentPopup
.
$vm
.
showFun
()
},
},
editRules
(
item
){
//编辑规则
editRules
(
item
)
{
//编辑规则
data
.
show
=
true
data
.
show
=
true
refs
.
getcommentPopup
.
$vm
.
showFun
(
item
)
refs
.
getcommentPopup
.
$vm
.
showFun
(
item
)
},
},
deleteRules
(){
//删除规则
deleteRules
()
{
//删除规则
uni
.
showModal
({
uni
.
showModal
({
title
:
'提示'
,
title
:
'提示'
,
content
:
'将删除该评价,是否继续'
,
content
:
'将删除该评价,是否继续'
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'---'
)
console
.
log
(
'---'
)
}
else
if
(
res
.
cancel
)
{
}
else
if
(
res
.
cancel
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'已取消'
,
title
:
'已取消'
,
icon
:
'none'
,
icon
:
'none'
,
duration
:
500
duration
:
500
})
})
}
}
...
@@ -101,7 +106,7 @@
...
@@ -101,7 +106,7 @@
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
,
...
@@ -118,8 +123,7 @@
...
@@ -118,8 +123,7 @@
context
.
emit
(
'refreshData'
);
context
.
emit
(
'refreshData'
);
},
},
//刷新数据
//刷新数据
changeData
()
changeData
()
{
{
//调用父组件方法
//调用父组件方法
context
.
emit
(
'refreshData'
);
context
.
emit
(
'refreshData'
);
}
}
...
@@ -144,7 +148,7 @@
...
@@ -144,7 +148,7 @@
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.noData
{
.noData
{
text-align
:
center
;
text-align
:
center
;
flex
:
1
;
flex
:
1
;
width
:
100%
;
width
:
100%
;
...
...
src/components/setComments/studentsPopu.vue
View file @
e87edc18
<
template
>
<
template
>
<van-popup
:show=
"show"
:round=
"true"
position=
"bottom"
<van-popup
:show=
"show"
:round=
"true"
position=
"bottom"
custom-style=
"height: 80%"
@
close=
"closepopup"
>
custom-style=
"height: 80%"
@
close=
"closepopup"
>
<view
class=
"studentsPopu-box flex"
>
<view
class=
"studentsPopu-box flex"
>
<view
class=
"studentsPopu-title"
>
选择学员
<text>
(2/50)
</text></view>
<view
class=
"studentsPopu-title"
>
选择学员
<text>
(
{{
chooseStuArray
?
chooseStuArray
.
length
:
0
}}
/
{{
stuList
?
stuList
.
length
:
0
}}
)
</text>
</view>
<view
class=
"studentsPopu-search flex"
>
<view
class=
"studentsPopu-search flex"
>
<van-search
<van-search
:value=
"Keywords"
shape=
"round"
style=
"border-radius: 20rpx;width: 100%;"
input-align=
"center"
:value=
"Keywords"
background=
"#F6F6F6"
@
change=
"searchKeywords"
placeholder=
"请输入搜索关键词"
/>
shape=
"round"
style=
"border-radius: 20rpx;width: 100%;"
input-align=
"center"
background=
"#F6F6F6"
@
change=
"searchKeywords"
placeholder=
"请输入搜索关键词"
/>
</view>
</view>
<view
class=
"studentsPopuImg"
>
<view
class=
"studentsPopuImg"
>
<view
class=
"studentsPopu-img-box flex"
>
<view
class=
"studentsPopu-img-box flex"
>
<view
class=
"studentsPopu-img-list active flex"
@
click=
"clickChoose"
>
<template
v-for=
"(item,index) in stuList"
>
<view
class=
"studentsPopu-imgbox flex"
>
<view
class=
"studentsPopu-img-list active flex"
@
click=
"clickChoose(item)"
>
<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-imgbox flex"
>
<view
class=
"studentsPopu-img flex"
>
<view
class=
"studentsPopu-img flex"
>
<view>
<view>
<van-image
width=
"119rpx"
height=
"119rpx"
fit=
"cover"
<van-image
width=
"119rpx"
height=
"119rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653894197000_691.png"
/>
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653894197000_691.png"
/>
</view>
</view>
</view>
</view>
</view>
</view>
<text
class=
"studentsPopu-text"
>
学员名称
</text>
<text
class=
"studentsPopu-text"
>
{{
item
.
StuName
}}
</text>
</view>
</view>
</
template
>
</view>
</view>
</view>
</view>
<view
class=
"footer"
>
<view
class=
"footer"
>
...
@@ -59,47 +43,59 @@
...
@@ -59,47 +43,59 @@
inject
,
inject
,
watch
watch
}
from
"vue"
;
}
from
"vue"
;
import
{
uploadFile
}
from
"@/utils/index"
;
import
{
uploadFile
}
from
"@/utils/index"
;
export
default
{
export
default
{
props
:
{
props
:
[
"courseStuList"
],
emits
:
[
'getdata'
],
},
components
:
{},
components
:
{},
setup
(
props
,
ctx
)
{
setup
(
props
,
ctx
)
{
let
{
let
{
proxy
proxy
}
=
getCurrentInstance
();
}
=
getCurrentInstance
();
let
data
=
reactive
({
let
data
=
reactive
({
show
:
false
,
show
:
false
,
loading
:
false
,
loading
:
false
,
Keywords
:
''
Keywords
:
''
,
stuList
:
[],
chooseStuArray
:
[]
});
});
let
methods
=
{
let
methods
=
{
// 选中
// 选中
clickChoose
()
{
clickChoose
(
item
)
{
data
.
chooseStuArray
.
push
(
item
);
},
},
// 搜索
// 搜索
searchKeywords
()
{
searchKeywords
()
{
},
},
showFun
()
{
showFun
()
{
data
.
show
=
true
data
.
show
=
true
},
},
closepopup
()
{
closepopup
()
{
data
.
show
=
false
data
.
show
=
false
},
},
save
(){
save
()
{
ctx
.
emit
(
"getdata"
,
data
.
chooseStuArray
);
data
.
show
=
false
data
.
show
=
false
}
}
};
};
//监听属性数组
watch
(()
=>
props
[
"courseStuList"
],
(
newValue
,
oldValue
)
=>
{
if
(
newValue
!=
oldValue
&&
newValue
&&
newValue
.
length
>
0
)
{
data
.
stuList
=
newValue
;
}
},
{
deep
:
true
,
});
let
that
=
methods
;
let
that
=
methods
;
return
{
return
{
...
toRefs
(
data
),
...
toRefs
(
data
),
...
methods
...
methods
};
};
},
},
onLoad
()
{
onLoad
()
{
},
},
onShow
()
{
onShow
()
{
...
@@ -108,7 +104,7 @@
...
@@ -108,7 +104,7 @@
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.studentsPopu-text
{
.studentsPopu-text
{
text-align
:
center
;
text-align
:
center
;
font-weight
:
500
;
font-weight
:
500
;
font-size
:
26
rpx
;
font-size
:
26
rpx
;
...
@@ -116,7 +112,8 @@
...
@@ -116,7 +112,8 @@
letter-spacing
:
1
rpx
;
letter-spacing
:
1
rpx
;
margin-top
:
15
rpx
;
margin-top
:
15
rpx
;
}
}
.studentsPopu-img
view
{
.studentsPopu-img
view
{
width
:
119
rpx
;
width
:
119
rpx
;
height
:
119
rpx
;
height
:
119
rpx
;
/* border: 1rpx solid #E5E5E5; */
/* border: 1rpx solid #E5E5E5; */
...
@@ -124,11 +121,13 @@
...
@@ -124,11 +121,13 @@
border-radius
:
50%
;
border-radius
:
50%
;
overflow
:
hidden
;
overflow
:
hidden
;
}
}
.studentsPopu-img-list.active
.studentsPopu-img
{
.studentsPopu-img-list.active
.studentsPopu-img
{
background
:
#C91928
;
background
:
#C91928
;
box-shadow
:
0
rpx
0
rpx
59
rpx
0
rpx
rgba
(
201
,
23
,
39
,
0.34
);
box-shadow
:
0
rpx
0
rpx
59
rpx
0
rpx
rgba
(
201
,
23
,
39
,
0.34
);
}
}
.studentsPopu-img
{
.studentsPopu-img
{
width
:
130
rpx
;
width
:
130
rpx
;
height
:
130
rpx
;
height
:
130
rpx
;
background
:
#FFFFFF
;
background
:
#FFFFFF
;
...
@@ -137,41 +136,49 @@
...
@@ -137,41 +136,49 @@
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
}
}
.studentsPopu-imgbox
{
.studentsPopu-imgbox
{
justify-content
:
center
;
justify-content
:
center
;
}
}
.studentsPopu-img-list
{
.studentsPopu-img-list
{
flex
:
0
0
25%
;
flex
:
0
0
25%
;
flex-direction
:
column
;
flex-direction
:
column
;
}
}
.studentsPopu-img-box
{
.studentsPopu-img-box
{
height
:
90%
;
height
:
90%
;
padding
:
40
rpx
25
rpx
;
padding
:
40
rpx
25
rpx
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
margin-bottom
:
100
rpx
;
margin-bottom
:
100
rpx
;
overflow-y
:
auto
;
overflow-y
:
auto
;
}
}
.studentsPopuImg
{
.studentsPopuImg
{
max-height
:
670
rpx
;
max-height
:
670
rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
}
}
.studentsPopu-search
{
.studentsPopu-search
{
padding
:
30
rpx
27
rpx
5
rpx
27
rpx
;
padding
:
30
rpx
27
rpx
5
rpx
27
rpx
;
}
}
.studentsPopu-title
text
{
.studentsPopu-title
text
{
font-size
:
26
rpx
;
font-size
:
26
rpx
;
color
:
#949494
;
color
:
#949494
;
font-weight
:
400
;
font-weight
:
400
;
margin-left
:
20
rpx
;
margin-left
:
20
rpx
;
}
}
.studentsPopu-title
{
.studentsPopu-title
{
font-size
:
36
rpx
;
font-size
:
36
rpx
;
font-weight
:
800
;
font-weight
:
800
;
color
:
#282828
;
color
:
#282828
;
letter-spacing
:
1
rpx
;
letter-spacing
:
1
rpx
;
padding
:
48
rpx
55
rpx
0
55
rpx
;
padding
:
48
rpx
55
rpx
0
55
rpx
;
}
}
.studentsPopu-save
view
{
.studentsPopu-save
view
{
background
:
#C91727
;
background
:
#C91727
;
font-size
:
30
rpx
;
font-size
:
30
rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
...
@@ -182,19 +189,22 @@
...
@@ -182,19 +189,22 @@
text-align
:
center
;
text-align
:
center
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
}
}
.studentsPopu-save
{
.studentsPopu-save
{
justify-content
:
center
;
justify-content
:
center
;
margin-top
:
40
rpx
;
margin-top
:
40
rpx
;
margin-bottom
:
40
rpx
;
margin-bottom
:
40
rpx
;
}
}
.studentsPopu-box
{
.studentsPopu-box
{
background
:
#f6f6f6
;
background
:
#f6f6f6
;
/* padding: 48rpx 0 60rpx 0; */
/* padding: 48rpx 0 60rpx 0; */
flex-direction
:
column
;
flex-direction
:
column
;
height
:
100%
;
height
:
100%
;
overflow
:
hidden
;
overflow
:
hidden
;
}
}
.footer
{
.footer
{
position
:
fixed
;
position
:
fixed
;
left
:
0
;
left
:
0
;
right
:
0
;
right
:
0
;
...
...
src/pages/setComments/addComment.vue
View file @
e87edc18
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<view
class=
"addComment-title flex"
>
<view
class=
"addComment-title flex"
>
<van-icon
name=
"friends-o"
/>
<van-icon
name=
"friends-o"
/>
<text>
<text>
选择学员 (
0
)
选择学员 (
{{
postMsg
.
ChooseStuList
?
postMsg
.
ChooseStuList
.
length
:
0
}}
)
</text>
</text>
</view>
</view>
<view
class=
"addComment-img-box flex"
>
<view
class=
"addComment-img-box flex"
>
...
@@ -24,30 +24,32 @@
...
@@ -24,30 +24,32 @@
</view>
</view>
<text
class=
"addComment-text"
>
添加学员
</text>
<text
class=
"addComment-text"
>
添加学员
</text>
</view>
</view>
<template
v-for=
"(item,index) in postMsg.ChooseStuList"
>
<view
class=
"addComment-img-list flex"
>
<view
class=
"addComment-img-list flex"
>
<view
class=
"addComment-imgbox flex"
>
<view
class=
"addComment-imgbox flex"
>
<view
class=
"addComment-img"
>
<view
class=
"addComment-img"
>
<view>
<view>
<van-image
width=
"119rpx"
height=
"119rpx"
fit=
"cover"
<van-image
width=
"119rpx"
height=
"119rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653894197000_691.png"
/>
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653894197000_691.png"
/>
</view>
</view>
</view>
</view>
</view>
</view>
<text
class=
"addComment-text"
>
学员名称
</text>
<text
class=
"addComment-text"
>
{{
item
.
StuName
}}
</text>
</view>
</view>
</
template
>
</view>
</view>
<view
class=
"addComment-textarea-box"
>
<view
class=
"addComment-textarea-box"
>
<view
class=
"content-textarea-box"
>
<view
class=
"content-textarea-box"
>
<textarea
placeholder=
"请填写评论内容"
></textarea>
<textarea
placeholder=
"请填写评论内容"
v-model=
"postMsg.Info"
></textarea>
</view>
</view>
<view
class=
"Sure-button flex"
>
<view
class=
"Sure-button flex"
>
<view
v-if=
"clickShow"
@
click=
"clickSure"
>
确定
</view>
<view
v-if=
"clickShow"
@
click=
"clickSure"
>
确定
</view>
<view
v-else
class=
"active"
>
确定
</view>
<view
v-else
class=
"active"
>
确定
</view>
</view>
</view>
</view>
</view>
<
template
v-show=
"show"
>
<
template
v-show=
"show"
>
<studentsPopu
ref=
"getstudentsPopup"
></studentsPopu>
<studentsPopu
ref=
"getstudentsPopup"
:courseStuList=
"StuList"
@
getdata=
"getChooseStu"
></studentsPopu>
</
template
>
</
template
>
</view>
</view>
<view
class=
"addComment-bj"
></view>
<view
class=
"addComment-bj"
></view>
...
@@ -107,58 +109,67 @@
...
@@ -107,58 +109,67 @@
checked
:
'1'
,
checked
:
'1'
,
Msg
:
{
Msg
:
{
CourseId
:
''
,
CourseId
:
''
,
CommentTimes
:
0
,
//评论次数
},
},
courseTimeList
:
[],
//课程自动生成评论次数
postMsg
:
{
courseRule
:
{},
//课程评价规则
CourseId
:
''
,
clickShow
:
true
,
ChooseStuList
:
[],
show
:
false
Times
:
0
,
Info
:
""
,
//评论内容
},
StuList
:
[],
//课程学员列表
clickShow
:
true
,
show
:
false
});
});
let
methods
=
{
let
methods
=
{
back
()
{
back
()
{
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
delta
:
1
})
})
},
},
// 点击弹出学员列表
// 点击弹出学员列表
selectStudents
(){
selectStudents
()
{
data
.
show
=
true
data
.
show
=
true
setTimeout
(()
=>
{
setTimeout
(()
=>
{
refs
.
getstudentsPopup
.
$vm
.
showFun
()
refs
.
getstudentsPopup
.
$vm
.
showFun
()
},
500
)
},
500
)
},
},
// 点击确定
// 点击确定
clickSure
(){
clickSure
()
{
data
.
clickShow
=
false
data
.
clickShow
=
false
;
console
.
log
(
data
.
clickShow
)
data
.
postMsg
.
Times
=
data
.
Msg
.
CommentTimes
;
},
data
.
postMsg
.
CourseId
=
data
.
Msg
.
CourseId
;
radioChange
(
e
)
{
proxy
.
$request
(
"/Teacher/BatchSetStuComment"
,
data
.
postMsg
).
then
(
res
=>
{
console
.
log
(
"打印国家名称"
,
e
.
target
.
value
)
if
(
res
.
Code
==
1
)
{
},
uni
.
showToast
({
//获取课程评论次数列表
title
:
'操作成功!'
,
getCourseCommentTimes
()
{
icon
:
'none'
,
proxy
.
$request
(
"/Teacher/GetCourseCommentTimes"
,
data
.
Msg
).
then
(
res
=>
{
duration
:
500
if
(
res
)
{
})
data
.
courseTimeList
=
res
.
Data
;
}
}
})
})
},
},
//获取课程评价规则信息
getCourseRule
()
{
//课程学员列表
proxy
.
$request
(
"/Teacher/GetCourseComment"
,
data
.
Msg
).
then
(
res
=>
{
getChooseStu
(
array
)
{
if
(
array
)
{
data
.
postMsg
.
ChooseStuList
=
array
}
},
//根据课程编号获取课程学员
getCourseStu
()
{
let
stuMsg
=
{
courseId
:
data
.
Msg
.
CourseId
};
proxy
.
$request
(
"/Teacher/GetCourseStu"
,
stuMsg
).
then
(
res
=>
{
console
.
log
(
"res"
,
res
);
if
(
res
)
{
if
(
res
)
{
data
.
courseRule
=
res
.
Data
;
data
.
StuList
=
res
.
Data
;
}
}
})
})
},
},
goRules
()
{
uni
.
navigateTo
({
url
:
'/pages/setComments/commentRulesList?CourseId='
+
data
.
Msg
.
CourseId
})
}
};
};
return
{
return
{
...
toRefs
(
data
),
...
toRefs
(
data
),
...
methods
...
methods
...
@@ -166,18 +177,19 @@
...
@@ -166,18 +177,19 @@
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
this
.
Msg
.
CourseId
=
option
.
CourseId
;
this
.
Msg
.
CourseId
=
option
.
CourseId
;
this
.
getCourseRule
()
;
this
.
Msg
.
CommentTimes
=
option
.
CommentTimes
;
this
.
getCourse
CommentTimes
();
this
.
getCourse
Stu
();
},
},
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.Sure-button
view
.active
{
.Sure-button
view
.active
{
background-color
:
#F6F6F6
;
background-color
:
#F6F6F6
;
color
:
#C91727
;
color
:
#C91727
;
}
}
.Sure-button
view
{
.Sure-button
view
{
width
:
359
rpx
;
width
:
359
rpx
;
line-height
:
88
rpx
;
line-height
:
88
rpx
;
background-color
:
#C91727
;
background-color
:
#C91727
;
...
@@ -188,27 +200,32 @@
...
@@ -188,27 +200,32 @@
text-align
:
center
;
text-align
:
center
;
letter-spacing
:
1
rpx
;
letter-spacing
:
1
rpx
;
}
}
.Sure-button
{
.Sure-button
{
justify-content
:
center
;
justify-content
:
center
;
margin-top
:
67
rpx
;
margin-top
:
67
rpx
;
}
}
.content-textarea-box
textarea
{
.content-textarea-box
textarea
{
width
:
100%
;
width
:
100%
;
}
}
.content-textarea-box
{
.content-textarea-box
{
background
:
#F6F6F6
;
background
:
#F6F6F6
;
border-radius
:
30
rpx
;
border-radius
:
30
rpx
;
padding
:
33
rpx
37
rpx
;
padding
:
33
rpx
37
rpx
;
min-height
:
537
rpx
;
min-height
:
537
rpx
;
}
}
.addComment-textarea-box
{
.addComment-textarea-box
{
border-radius
:
50
rpx
50
rpx
0
0
;
border-radius
:
50
rpx
50
rpx
0
0
;
/* background: #FFFFFF; */
/* 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
:
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
;
background-size
:
141
rpx
41
rpx
;
padding
:
50
rpx
50
rpx
37
rpx
50
rpx
;
padding
:
50
rpx
50
rpx
37
rpx
50
rpx
;
}
}
.addComment-text
{
.addComment-text
{
text-align
:
center
;
text-align
:
center
;
font-weight
:
500
;
font-weight
:
500
;
font-size
:
26
rpx
;
font-size
:
26
rpx
;
...
@@ -216,14 +233,16 @@
...
@@ -216,14 +233,16 @@
letter-spacing
:
1
rpx
;
letter-spacing
:
1
rpx
;
margin-top
:
15
rpx
;
margin-top
:
15
rpx
;
}
}
.addComment-img-list.activeOne
.addComment-img
view
{
.addComment-img-list.activeOne
.addComment-img
view
{
text-align
:
center
;
text-align
:
center
;
line-height
:
123
rpx
;
line-height
:
123
rpx
;
color
:
#DCDCDC
;
color
:
#DCDCDC
;
font-weight
:
bold
;
font-weight
:
bold
;
font-size
:
50
rpx
;
font-size
:
50
rpx
;
}
}
.addComment-img
view
{
.addComment-img
view
{
width
:
119
rpx
;
width
:
119
rpx
;
height
:
119
rpx
;
height
:
119
rpx
;
border
:
1
rpx
solid
#DBDBDB
;
border
:
1
rpx
solid
#DBDBDB
;
...
@@ -231,58 +250,69 @@
...
@@ -231,58 +250,69 @@
margin
:
5
rpx
;
margin
:
5
rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
}
}
.addComment-img
{
.addComment-img
{
width
:
130
rpx
;
width
:
130
rpx
;
height
:
130
rpx
;
height
:
130
rpx
;
background
:
#FFFFFF
;
background
:
#FFFFFF
;
border-radius
:
50%
;
border-radius
:
50%
;
}
}
.addComment-imgbox
{
.addComment-imgbox
{
justify-content
:
center
;
justify-content
:
center
;
}
}
.addComment-img-list
{
.addComment-img-list
{
flex
:
0
0
25%
;
flex
:
0
0
25%
;
flex-direction
:
column
;
flex-direction
:
column
;
}
}
.addComment-img-box
{
.addComment-img-box
{
padding
:
0
20
rpx
;
padding
:
0
20
rpx
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
margin-bottom
:
50
rpx
;
margin-bottom
:
50
rpx
;
}
}
.addComment-title
van-icon
{
.addComment-title
van-icon
{
font-size
:
38
rpx
;
font-size
:
38
rpx
;
margin-right
:
20
rpx
;
margin-right
:
20
rpx
;
}
}
.addComment-title
{
.addComment-title
{
font-size
:
30
rpx
;
font-size
:
30
rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#282828
;
color
:
#282828
;
letter-spacing
:
1
rpx
;
letter-spacing
:
1
rpx
;
padding
:
54
rpx
50
rpx
42
rpx
50
rpx
;
padding
:
54
rpx
50
rpx
42
rpx
50
rpx
;
}
}
.addComment-header-box
{
.addComment-header-box
{
padding
:
20
rpx
42
rpx
;
padding
:
20
rpx
42
rpx
;
flex-direction
:
row
;
flex-direction
:
row
;
align-items
:
center
;
align-items
:
center
;
}
}
.addComment-header-title
{
.addComment-header-title
{
font-size
:
32
rpx
;
font-size
:
32
rpx
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#282828
;
color
:
#282828
;
flex
:
1
;
flex
:
1
;
text-align
:
center
;
text-align
:
center
;
padding-right
:
40
rpx
;
padding-right
:
40
rpx
;
}
}
.addComment-header-left
{
.addComment-header-left
{
font-size
:
40
rpx
;
font-size
:
40
rpx
;
position
:
relative
;
position
:
relative
;
z-index
:
3
;
z-index
:
3
;
}
}
.addComment-content
{
.addComment-content
{
position
:
relative
;
position
:
relative
;
z-index
:
1
;
z-index
:
1
;
}
}
.addComment-bj
{
.addComment-bj
{
position
:
fixed
;
position
:
fixed
;
right
:
0
;
right
:
0
;
left
:
0
;
left
:
0
;
...
@@ -291,6 +321,7 @@
...
@@ -291,6 +321,7 @@
z-index
:
0
;
z-index
:
0
;
background
:
#F6F6F6
;
background
:
#F6F6F6
;
}
}
.navbarSticky
{
.navbarSticky
{
display
:
sticky
;
display
:
sticky
;
top
:
0
;
top
:
0
;
...
...
src/pages/setComments/commentDetails.vue
View file @
e87edc18
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<commentDetails
:CourseCommentTimesList=
"courseTimeList"
@
refreshData=
"getStuCommentList"
></commentDetails>
<commentDetails
:
qMsg=
"Msg"
:
CourseCommentTimesList=
"courseTimeList"
@
refreshData=
"getStuCommentList"
></commentDetails>
</view>
</view>
...
...
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