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,32 +2,31 @@ ...@@ -2,32 +2,31 @@
<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> <text>自定义评价</text>
<text>自定义评价</text> <view>从自动评价规则进入修改</view>
<view>从自动评价规则进入修改</view> </view>
</view> <view>
<view> <text>自动评价规则</text>
<text>自动评价规则</text>
</view>
</view> </view>
</view> </view>
</view> <setComments :commentList="courseCommentList"></setComments>
<setComments></setComments> </view>
</view>
</view> </view>
</template> </template>
<script> <script>
import setComments from '@/components/setComments/setComments' import setComments from '@/components/setComments/setComments'
import { import {
reactive, reactive,
toRefs, toRefs,
...@@ -37,67 +36,84 @@ ...@@ -37,67 +36,84 @@
} 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
}, },
setup() { setup() {
let { let {
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 }, },
], {
radioList:[ text: '可见不可见',
{name:'使用默认配置',id:1,checked:true}, value: 1
{name:'自定义评价',id:2} },
], {
checked:'1', text: '活动商品',
obj:{}, value: 2
},
],
radioList: [{
name: '使用默认配置',
id: 1,
checked: true
},
{
name: '自定义评价',
id: 2
}
],
checked: '1',
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),
...methods ...methods
}; };
}, },
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;
z-index: 9; 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