photoAlbum.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <template>
  2. <view class="album">
  3. <view v-for="(item,index) in list" :key="index" class="album-item">
  4. <view class="album-item-title">
  5. <view class="album-item-title-left">
  6. {{item.name}}
  7. </view>
  8. <view class="album-item-title-right">
  9. 创建时间 {{item.date}}
  10. </view>
  11. </view>
  12. <view class="album-item-img">
  13. <imgList @click='goPhoto' :list='item.img' />
  14. </view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. import imgList from '@/components/imgList.vue'
  20. export default {
  21. name: "photoAlbum",
  22. components: {
  23. imgList
  24. },
  25. props: {
  26. list: {
  27. type: Array,
  28. default: () => []
  29. }
  30. },
  31. data() {
  32. return {
  33. };
  34. },
  35. methods:{
  36. goPhoto(){
  37. uni.navigateTo({
  38. url: '/pages/photoAlbum/photoAlbum'
  39. })
  40. }
  41. }
  42. }
  43. </script>
  44. <style lang="scss" scoped>
  45. .album {
  46. width: 100%;
  47. box-sizing: border-box;
  48. font-family: "PingFang";
  49. .album-item {
  50. width: 100%;
  51. box-sizing: border-box;
  52. background: #ffffff;
  53. border-radius: 10rpx;
  54. padding: 32rpx;
  55. box-shadow: 0px 0px 6.67px 0px rgba(147, 147, 147, 0.20);
  56. margin-bottom: 32rpx;
  57. .album-item-title {
  58. display: flex;
  59. justify-content: space-between;
  60. padding-bottom: 24rpx;
  61. border-bottom: 1px solid #f2f2f2;
  62. margin-bottom: 32rpx;
  63. .album-item-title-left {
  64. font-size: 32rpx;
  65. font-weight: 700;
  66. }
  67. .album-item-title-right {
  68. font-size: 24rpx;
  69. color: #999;
  70. }
  71. }
  72. }
  73. }
  74. </style>