Commit e0fa7335 authored by liudong1993's avatar liudong1993

1

parent 36783d93
...@@ -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>
......
...@@ -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) {
......
...@@ -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.getCourseCommentTimes(); this.getStuCommentList();
}, },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment