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
e0fa7335
Commit
e0fa7335
authored
Jun 01, 2022
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
36783d93
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
21 deletions
+32
-21
commentDetails.vue
src/components/setComments/commentDetails.vue
+4
-5
setComments.vue
src/components/setComments/setComments.vue
+1
-1
commentDetails.vue
src/pages/setComments/commentDetails.vue
+27
-15
No files found.
src/components/setComments/commentDetails.vue
View file @
e0fa7335
...
@@ -4,22 +4,21 @@
...
@@ -4,22 +4,21 @@
<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"
>
<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>
学员1
</view>
<view>
学员1
</view>
<view
class=
"flex"
>
<view
class=
"flex"
>
<text>
可见
</text>
<text>
{{
item
.
ShowType
}}
</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"
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>
<view
class=
"commentDetailsList-comment"
>
<view
class=
"commentDetailsList-comment"
>
这位学员很优秀,平时课上的问题都能积极回
{{
item
.
Info
}}
答,正确率非常高。这次考试得分也很高,希望再接再厉
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -145,7 +144,7 @@
...
@@ -145,7 +144,7 @@
};
};
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
},
},
};
};
</
script
>
</
script
>
...
...
src/components/setComments/setComments.vue
View file @
e0fa7335
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
},
},
goComment
(
item
){
goComment
(
item
){
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/setComments/commentDetails
'
url
:
'/pages/setComments/commentDetails
?comment='
+
encodeURIComponent
(
JSON
.
stringify
(
item
))
})
})
},
},
clickOptionsShow
(
item
)
{
clickOptionsShow
(
item
)
{
...
...
src/pages/setComments/commentDetails.vue
View file @
e0fa7335
...
@@ -10,18 +10,18 @@
...
@@ -10,18 +10,18 @@
<view
class=
"commentDetails-index-setType flex"
>
<view
class=
"commentDetails-index-setType flex"
>
<view
class=
"commentDetails-setType-text flex"
>
<view
class=
"commentDetails-setType-text flex"
>
<view>
<view>
第
一
次评价
第
{{
topData
.
Times
}}
次评价
</view>
</view>
<view
class=
"flex"
>
<view
class=
"flex"
>
<text>
部分可见
</text>
<text>
{{
topData
.
ShowTypeStr
}}
</text>
</view>
</view>
</view>
</view>
<view
class=
"commentDetails-setType-time flex"
@
click=
"goRules"
>
<view
class=
"commentDetails-setType-time flex"
@
click=
"goRules"
>
<view>
<view>
来源:
来源:
{{
topData
.
CreateTypeStr
}}
</view>
</view>
<view>
<view>
时间:
时间:
{{
topData
.
CreateTime
}}
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -81,9 +81,16 @@
...
@@ -81,9 +81,16 @@
checked
:
'1'
,
checked
:
'1'
,
Msg
:
{
Msg
:
{
CourseId
:
''
,
CourseId
:
''
,
CommentTimes
:
1
},
},
courseTimeList
:
[],
//课程自动生成评论次数
courseTimeList
:
[],
//课程自动生成评论次数
courseRule
:
{},
//课程评价规则
courseRule
:
{},
//课程评价规则
topData
:{
ShowTypeStr
:
""
,
Times
:
1
,
CreateTime
:
""
,
CreateTypeStr
:
""
}
});
});
let
methods
=
{
let
methods
=
{
back
()
{
back
()
{
...
@@ -95,14 +102,6 @@
...
@@ -95,14 +102,6 @@
radioChange
(
e
)
{
radioChange
(
e
)
{
console
.
log
(
"打印国家名称"
,
e
.
target
.
value
)
console
.
log
(
"打印国家名称"
,
e
.
target
.
value
)
},
},
//获取课程评论次数列表
getCourseCommentTimes
()
{
proxy
.
$request
(
"/Teacher/GetCourseCommentTimes"
,
data
.
Msg
).
then
(
res
=>
{
if
(
res
)
{
data
.
courseTimeList
=
res
.
Data
;
}
})
},
//获取课程评价规则信息
//获取课程评价规则信息
getCourseRule
()
{
getCourseRule
()
{
proxy
.
$request
(
"/Teacher/GetCourseComment"
,
data
.
Msg
).
then
(
res
=>
{
proxy
.
$request
(
"/Teacher/GetCourseComment"
,
data
.
Msg
).
then
(
res
=>
{
...
@@ -115,6 +114,13 @@
...
@@ -115,6 +114,13 @@
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/setComments/commentRulesList?CourseId='
+
data
.
Msg
.
CourseId
url
:
'/pages/setComments/commentRulesList?CourseId='
+
data
.
Msg
.
CourseId
})
})
},
getStuCommentList
(){
proxy
.
$request
(
"/Teacher/GetStuCommentList"
,
data
.
Msg
).
then
(
res
=>
{
if
(
res
)
{
data
.
courseTimeList
=
res
.
Data
;
}
})
}
}
};
};
...
@@ -123,10 +129,16 @@
...
@@ -123,10 +129,16 @@
...
methods
...
methods
};
};
},
},
onLoad
(
option
)
{
onLoad
(
options
)
{
this
.
Msg
.
CourseId
=
option
.
CourseId
;
let
json
=
JSON
.
parse
(
decodeURIComponent
(
options
.
comment
))
this
.
Msg
.
CourseId
=
json
.
CourseId
;
this
.
topData
.
ShowTypeStr
=
json
.
ShowTypeStr
;
this
.
topData
.
Times
=
json
.
Times
;
this
.
topData
.
CreateTime
=
json
.
CreateTime
;
this
.
topData
.
CreateTypeStr
=
json
.
CreateTypeStr
;
this
.
Msg
.
CommentTimes
=
json
.
Times
;
this
.
getCourseRule
();
this
.
getCourseRule
();
this
.
get
CourseCommentTimes
();
this
.
get
StuCommentList
();
},
},
};
};
...
...
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