Commit cb8c786f authored by 黄奎's avatar 黄奎

页面修改

parent d097ac5a
...@@ -13,22 +13,26 @@ ...@@ -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" /> <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>
<view class="setComments-setType-text flex"> <view class="setComments-setType-text flex">
<text>使用默认配置</text> <text>
<view>从自动评价规则进入修改</view> <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> </view>
<view class="setComments-setType-right flex" @click="goRules"> <view class="setComments-setType-right flex" @click="goRules">
<view> <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" /> <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> </view>
</view> </view>
<setComments :CourseCommentTimesList="courseTimeList" @refreshData="getCourseCommentTimes"></setComments> <setComments :CourseCommentTimesList="courseTimeList" @refreshData="getCourseCommentTimes"></setComments>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
...@@ -83,6 +87,7 @@ ...@@ -83,6 +87,7 @@
CourseId: '', CourseId: '',
}, },
courseTimeList: [], //课程自动生成评论次数 courseTimeList: [], //课程自动生成评论次数
courseRule: {}, //课程评价规则
}); });
let methods = { let methods = {
back() { back() {
...@@ -102,9 +107,17 @@ ...@@ -102,9 +107,17 @@
} }
}) })
}, },
//获取课程评价规则信息
getCourseRule() {
proxy.$request("/Teacher/GetCourseComment", data.Msg).then(res => {
if (res) {
data.courseRule = res.Data;
}
})
},
goRules() { goRules() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/setComments/commentRulesList?CourseId='+data.Msg.CourseId url: '/pages/setComments/commentRulesList?CourseId=' + data.Msg.CourseId
}) })
} }
}; };
...@@ -116,6 +129,7 @@ ...@@ -116,6 +129,7 @@
}, },
onLoad(option) { onLoad(option) {
this.Msg.CourseId = option.CourseId; this.Msg.CourseId = option.CourseId;
this.getCourseRule();
this.getCourseCommentTimes(); this.getCourseCommentTimes();
}, },
......
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