Commit d7d016df authored by 黄奎's avatar 黄奎

111

parent 38c048d7
...@@ -120,8 +120,10 @@ ...@@ -120,8 +120,10 @@
data.userData=uni.getStorageSync("userInfo") data.userData=uni.getStorageSync("userInfo")
let methods = { let methods = {
goSet(){ goSet(){
let url='/pages/setComments/setComments?CourseId='+data.currentCourseId;
console.log("url",url);
uni.navigateTo({ uni.navigateTo({
url:'/pages/setComments/setComments' url:url
}) })
}, },
back(){ back(){
......
...@@ -2,14 +2,13 @@ ...@@ -2,14 +2,13 @@
<view class="setComments-index-box"> <view class="setComments-index-box">
<navbar class="navbarSticky" bg="#F6F6F6"> <navbar class="navbarSticky" bg="#F6F6F6">
<view class="setComments-index-header-box flex"> <view class="setComments-index-header-box flex">
<van-icon class="setComments-index-header-left" name="arrow-left" @click="back"/> <van-icon class="setComments-index-header-left" name="arrow-left" @click="back" />
<text class="setComments-index-header-title">设置评语</text> <text class="setComments-index-header-title">设置评语</text>
</view> </view>
</navbar> </navbar>
<view class="setComments-index-content"> <view class="setComments-index-content">
<view> <view>
<view> <view>
</view> </view>
<view> <view>
<view> <view>
...@@ -22,7 +21,7 @@ ...@@ -22,7 +21,7 @@
</view> </view>
</view> </view>
</view> </view>
<setComments></setComments> <setComments :commentList="courseCommentList"></setComments>
</view> </view>
</view> </view>
</template> </template>
...@@ -37,9 +36,7 @@ ...@@ -37,9 +36,7 @@
} from "vue"; } from "vue";
import navbar from '../../components/navbar.vue' import navbar from '../../components/navbar.vue'
export default { export default {
props: { props: {},
},
components: { components: {
navbar, navbar,
setComments setComments
...@@ -49,37 +46,55 @@ ...@@ -49,37 +46,55 @@
proxy proxy
} = getCurrentInstance(); } = getCurrentInstance();
let data = reactive({ let data = reactive({
value:1, value: 1,
optionsList:[ optionsList: [{
{ text: '部分可见', value: 0 }, text: '部分可见',
{ text: '可见不可见', value: 1 }, value: 0
{ text: '活动商品', value: 2 }, },
{
text: '可见不可见',
value: 1
},
{
text: '活动商品',
value: 2
},
], ],
radioList:[ radioList: [{
{name:'使用默认配置',id:1,checked:true}, name: '使用默认配置',
{name:'自定义评价',id:2} id: 1,
checked: true
},
{
name: '自定义评价',
id: 2
}
], ],
checked:'1', checked: '1',
obj:{},
Msg: { Msg: {
HomeWorkId: '', CourseId: '',
}, },
showPhone: false, //课程评论列表
showLogin: true, //多次点击 courseCommentList: [],
HomeWorkId:'',
jobDetails: {},
dataList:[],
pageState:'more'
}); });
let methods = { let methods = {
back(){ back() {
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1
}) })
}, },
radioChange (e){ radioChange(e) {
console.log("打印国家名称",e.target.value) console.log("打印国家名称", e.target.value)
},
//获取学生列表
getCourseRule() {
data.Msg.CourseId = "";
proxy.$request("/Teacher/GetCourseCommentList", data.Msg).then(res => {
if (res && res.Code == 1) {
data.courseCommentList = res.Data;
} }
})
},
} }
return { return {
...toRefs(data), ...toRefs(data),
...@@ -87,16 +102,17 @@ ...@@ -87,16 +102,17 @@
}; };
}, },
onLoad(option) { onLoad(option) {
this.Msg.HomeWorkId = option.HomeWorkId this.Msg.CourseId = option.CourseId;
this.getCourseRule();
}, },
}; };
</script> </script>
<style scoped> <style scoped>
.setComments-index-box {
.setComments-index-box{
background: #F6F6F6; background: #F6F6F6;
} }
.navbarSticky { .navbarSticky {
display: sticky; display: sticky;
top: 0; top: 0;
......
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