学员端小程序
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.

61 lines
1.2 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" ></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. <view class="img" v-for="(img, imgIndex) in item.images" :key="imgIndex">
  14. <image :src="img" mode=""></image>
  15. </view>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. export default {
  21. props: ['item']
  22. }
  23. </script>
  24. <style lang="scss" scoped>
  25. .flex-b {
  26. align-items: center;
  27. .name {
  28. font-weight: 600;
  29. font-size: 32rpx;
  30. color: #333;
  31. }
  32. .date {
  33. font-size: 24rpx;
  34. color: #686B73;
  35. }
  36. }
  37. .starBox {
  38. padding: 10rpx 0 24rpx 0;
  39. }
  40. .text {
  41. font-size: 24rpx;
  42. }
  43. .imgBox {
  44. display: flex;
  45. flex-wrap: wrap;
  46. padding-top: 20rpx;
  47. .img {
  48. margin-top: 20rpx;
  49. width: 160rpx;
  50. height: 160rpx;
  51. border-radius: 8rpx;
  52. overflow: hidden;
  53. margin-right: 24rpx;
  54. }
  55. }
  56. </style>