学员端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.4 KiB

1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="box">
  3. <view class="flex-b">
  4. <view class="name">{{ item.studentName}}</view>
  5. <view class="date">{{ $u.date(item.createTime ,'yyyy/mm/dd' ) }}</view>
  6. </view>
  7. <view class="starBox">
  8. <u-rate active-color="#1989FA" inactive-color="#1989FA" gutter="1" :size="16" :value="item.stars" :count="5" :readonly="true" allowHalf></u-rate>
  9. <view class="num">{{ item.stars }}</view>
  10. </view>
  11. <view class="text">{{ item.description }}</view>
  12. <view class="imgBox" v-if="item.images&&item.images.length">
  13. <u-album :urls="item.images" :multipleSize="'160rpx'"></u-album>
  14. </view>
  15. <view class="vdo" v-if="item.videoUrl">
  16. <video :src="item.videoUrl" controls></video>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. props: ['item']
  23. }
  24. </script>
  25. <style lang="scss" scoped>
  26. .flex-b {
  27. align-items: center;
  28. .name {
  29. font-weight: 600;
  30. font-size: 32rpx;
  31. color: #333;
  32. }
  33. .date {
  34. font-size: 24rpx;
  35. color: #686B73;
  36. }
  37. }
  38. .vdo {
  39. width: 360rpx;
  40. margin-top: 12rpx;
  41. video {
  42. width: 100%;
  43. height: 180rpx;
  44. display: block;
  45. }
  46. }
  47. .starBox {
  48. padding: 10rpx 0 24rpx 0;
  49. }
  50. .text {
  51. font-size: 24rpx;
  52. }
  53. .imgBox {
  54. display: flex;
  55. flex-wrap: wrap;
  56. padding-top: 20rpx;
  57. .img {
  58. margin-top: 20rpx;
  59. width: 160rpx;
  60. height: 160rpx;
  61. border-radius: 8rpx;
  62. overflow: hidden;
  63. margin-right: 24rpx;
  64. }
  65. }
  66. </style>