Commit d7d016df authored by 黄奎's avatar 黄奎

111

parent 38c048d7
......@@ -120,8 +120,10 @@
data.userData=uni.getStorageSync("userInfo")
let methods = {
goSet(){
let url='/pages/setComments/setComments?CourseId='+data.currentCourseId;
console.log("url",url);
uni.navigateTo({
url:'/pages/setComments/setComments'
url:url
})
},
back(){
......
......@@ -2,32 +2,31 @@
<view class="setComments-index-box">
<navbar class="navbarSticky" bg="#F6F6F6">
<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>
</view>
</navbar>
<view class="setComments-index-content">
<view>
<view>
</view>
<view>
<view>
<text>自定义评价</text>
<view>从自动评价规则进入修改</view>
</view>
<view>
<text>自动评价规则</text>
</view>
</view>
</view>
<setComments></setComments>
</view>
<view class="setComments-index-content">
<view>
<view>
</view>
<view>
<view>
<text>自定义评价</text>
<view>从自动评价规则进入修改</view>
</view>
<view>
<text>自动评价规则</text>
</view>
</view>
</view>
<setComments :commentList="courseCommentList"></setComments>
</view>
</view>
</template>
<script>
import setComments from '@/components/setComments/setComments'
import setComments from '@/components/setComments/setComments'
import {
reactive,
toRefs,
......@@ -37,67 +36,84 @@
} from "vue";
import navbar from '../../components/navbar.vue'
export default {
props: {
},
props: {},
components: {
navbar,
setComments
},
setComments
},
setup() {
let {
let {
proxy
} = getCurrentInstance();
let data = reactive({
value:1,
optionsList:[
{ text: '部分可见', value: 0 },
{ text: '可见不可见', value: 1 },
{ text: '活动商品', value: 2 },
],
radioList:[
{name:'使用默认配置',id:1,checked:true},
{name:'自定义评价',id:2}
],
checked:'1',
obj:{},
value: 1,
optionsList: [{
text: '部分可见',
value: 0
},
{
text: '可见不可见',
value: 1
},
{
text: '活动商品',
value: 2
},
],
radioList: [{
name: '使用默认配置',
id: 1,
checked: true
},
{
name: '自定义评价',
id: 2
}
],
checked: '1',
Msg: {
HomeWorkId: '',
CourseId: '',
},
showPhone: false,
showLogin: true, //多次点击
HomeWorkId:'',
jobDetails: {},
dataList:[],
pageState:'more'
//课程评论列表
courseCommentList: [],
});
let methods = {
back(){
let methods = {
back() {
uni.navigateBack({
delta: 1
})
},
radioChange (e){
console.log("打印国家名称",e.target.value)
}
}
},
radioChange(e) {
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 {
...toRefs(data),
...methods
...methods
};
},
onLoad(option) {
this.Msg.HomeWorkId = option.HomeWorkId
onLoad(option) {
this.Msg.CourseId = option.CourseId;
this.getCourseRule();
},
};
</script>
<style scoped>
.setComments-index-box{
background: #F6F6F6;
}
.navbarSticky {
.setComments-index-box {
background: #F6F6F6;
}
.navbarSticky {
display: sticky;
top: 0;
z-index: 9;
......
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