Commit e564b053 authored by youjie's avatar youjie

Merge branch 'master' of http://gitlab.oytour.com/youjie/thinkapp

parents 8feb3f06 ea0a030e
<template>
<view class="commentDetailsList-box">
<view class="commentDetailsList-add" @click="goAdd">
<van-icon name="plus" /><text>增加评论</text> </view>
<van-icon name="plus" />
<text>增加评论</text>
</view>
<view class="index-student-information">
<view class="commentDetailsList-content">
<view class="commentDetailsList-list" v-for="(item,index) in CourseCommentTimesList" :key="index">
......@@ -30,7 +32,6 @@
<template v-show="show">
<commentDetailsPopu ref="getcommentPopup" @change="changeData"></commentDetailsPopu>
</template>
</view>
</template>
<script>
......@@ -46,25 +47,29 @@
} from "vue";
import navbar from '../../components/navbar.vue'
export default {
props: ["CourseCommentTimesList"],
props: ["CourseCommentTimesList", "qMsg"],
emits: ['refreshData'],
components: {
navbar,
commentDetailsPopu
},
setup(props, context) {
let { refs } = getCurrentInstance();
let {
refs
} = getCurrentInstance();
let {
proxy
} = getCurrentInstance();
let data = reactive({
dataList: [],
show:false
show: false
});
let methods = {
goAdd(){
goAdd() {
let url = '/pages/setComments/addComment?CourseId=' + this.qMsg.CourseId + "&CommentTimes=" + this.qMsg.CommentTimes;
console.log("url", url);
uni.navigateTo({
url: '/pages/setComments/addComment'
url: url
})
},
back() {
......@@ -72,25 +77,25 @@
delta: 1
})
},
addRules(){//添加规则
addRules() { //添加规则
data.show = true
refs.getcommentPopup.$vm.showFun()
},
editRules(item){//编辑规则
editRules(item) { //编辑规则
data.show = true
refs.getcommentPopup.$vm.showFun(item)
},
deleteRules (){//删除规则
deleteRules() { //删除规则
uni.showModal({
title: '提示',
content: '将删除该评价,是否继续',
success: function (res) {
success: function(res) {
if (res.confirm) {
console.log('---')
} else if (res.cancel) {
uni.showToast({
title:'已取消',
icon:'none',
title: '已取消',
icon: 'none',
duration: 500
})
}
......@@ -101,7 +106,7 @@
item.optionsShow = !item.optionsShow;
},
//实在评价可见性
clickoptions(item,subItem) {
clickoptions(item, subItem) {
let showTypeMsg = {
CourseId: item.CourseId,
Times: item.Times,
......@@ -118,8 +123,7 @@
context.emit('refreshData');
},
//刷新数据
changeData()
{
changeData() {
//调用父组件方法
context.emit('refreshData');
}
......@@ -144,7 +148,7 @@
};
</script>
<style scoped>
.noData {
.noData {
text-align: center;
flex: 1;
width: 100%;
......
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