江西小程序管理端
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.

75 lines
1.6 KiB

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