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

78 lines
1.5 KiB

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