<template>
    <div style="background-color: #f0f2f5; padding-bottom: 20px; min-height: 100%; " >
      <div style="padding: 20px; background-color: #fff;">
         课程评价详情
      </div>
      <div class="contentx" v-if="item!=null">
        <div class="desct"> 课程评价信息</div>
        <el-descriptions title="" :column="3" border>
          <el-descriptions-item label="用户昵称"><span v-if="item!=null">{{item.nickName}}</span></el-descriptions-item>
          <el-descriptions-item label="用户电话"><span v-if="item!=null">{{item.phone}}</span></el-descriptions-item>
          <el-descriptions-item label="回复数量"><span v-if="item!=null">{{item.replyCount}}</span></el-descriptions-item>
          <el-descriptions-item label="点赞数"><span v-if="item!=null">{{item.likes}}</span></el-descriptions-item>
          <el-descriptions-item label="评论类型"><span v-if="item!=null"> <dict-tag :options="typeOptions" :value="item.type"/></span></el-descriptions-item>
          <el-descriptions-item label="评论内容"><span v-if="item!=null">{{item.content}}</span></el-descriptions-item>
        </el-descriptions>
      </div>
      <div class="contentx" v-if="item!=null">
        <div class="desct"> 评论详情</div>
      </div>
    </div>
</template>

<script>
import { listUserCourseComment, getUserCourseComment, delUserCourseComment, addUserCourseComment, updateUserCourseComment, exportUserCourseComment } from "@/api/course/userCourseComment";
  export default {
    name: "userCourseOrderDetails",
    data() {
      return {
        item:null,
        typeOptions:[],

      }
    },
    created() {
      this.getDicts("sys_video_comment_type").then(response => {
        this.typeOptions = response.data;
      });
    },
    methods: {
      getDetails(orderId) {
        this.item=null;
        getUserCourseComment(orderId).then(response => {
            this.item = response.data;

        });
      },
    }
  }
</script>
<style>
  .contentx{
      height: 100%;
      background-color: #fff;
      padding: 0px 20px 20px;


      margin: 20px;
  }
  .el-descriptions-item__label.is-bordered-label{
    font-weight: normal;
  }
  .el-descriptions-item__content {
    max-width: 150px;
    min-width: 100px;
  }
  .desct{
      padding-top: 20px;
      padding-bottom: 20px;
      color: #524b4a;
      font-weight: bold;
    }

</style>
