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
cb8c786f
Commit
cb8c786f
authored
May 31, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
d097ac5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
+21
-7
setComments.vue
src/pages/setComments/setComments.vue
+21
-7
No files found.
src/pages/setComments/setComments.vue
View file @
cb8c786f
...
...
@@ -13,22 +13,26 @@
<van-image
class=
"img"
width=
"29rpx"
height=
"29rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653977710000_475.png"
/>
</view>
<view
class=
"setComments-setType-text flex"
>
<text>
使用默认配置
</text>
<view>
从自动评价规则进入修改
</view>
<text>
<template
v-if=
"courseRule&&courseRule.Id>0"
>
自定义评价
</
template
>
<
template
v-else
>
使用默认配置
</
template
>
</text>
<view>
<
template
v-if=
"courseRule&&courseRule.Id>0"
>
从自定义评价规则进入修改
</
template
>
<
template
v-else
>
不喜欢默认配置可自行设置
</
template
>
</view>
</view>
</view>
<view
class=
"setComments-setType-right flex"
@
click=
"goRules"
>
<view>
<text>
自定义评价
规则
</text>
<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>
<setComments
:CourseCommentTimesList=
"courseTimeList"
@
refreshData=
"getCourseCommentTimes"
></setComments>
</view>
</view>
</template>
<
script
>
...
...
@@ -83,6 +87,7 @@
CourseId
:
''
,
},
courseTimeList
:
[],
//课程自动生成评论次数
courseRule
:
{},
//课程评价规则
});
let
methods
=
{
back
()
{
...
...
@@ -102,9 +107,17 @@
}
})
},
//获取课程评价规则信息
getCourseRule
()
{
proxy
.
$request
(
"/Teacher/GetCourseComment"
,
data
.
Msg
).
then
(
res
=>
{
if
(
res
)
{
data
.
courseRule
=
res
.
Data
;
}
})
},
goRules
()
{
uni
.
navigateTo
({
url
:
'/pages/setComments/commentRulesList?CourseId='
+
data
.
Msg
.
CourseId
url
:
'/pages/setComments/commentRulesList?CourseId='
+
data
.
Msg
.
CourseId
})
}
};
...
...
@@ -116,6 +129,7 @@
},
onLoad
(
option
)
{
this
.
Msg
.
CourseId
=
option
.
CourseId
;
this
.
getCourseRule
();
this
.
getCourseCommentTimes
();
},
...
...
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