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

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