loverecord.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <template>
  2. <view class="content">
  3. <view class="header">
  4. <text class="num">XXX </text>共有<text class="num"> 2 </text>次爱心捐助
  5. </view>
  6. <view class="detail" v-for="item in list" :key="item.id">
  7. <view class="date">
  8. {{ item.date }}
  9. </view>
  10. <view class="main">
  11. <view class="activities">
  12. <view class="title">活动</view>
  13. <view class="info">{{ item.activities}}
  14. </view>
  15. </view>
  16. <view class="activities">
  17. <view class="title">参与</view>
  18. <view class="info">{{ item.join }}
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default{
  27. data(){
  28. return{
  29. list:[
  30. { id:0, date:'2019.4.23 14:10星期二', activities:'小天使在行动·关爱自闭症儿童',money:2000,join:'志愿者'},
  31. { id:1, date:'2019.4.23 14:10星期二', activities:'爱心捐赠',money:2000,join:'参与者'},
  32. { id:2, date:'2019.4.23 14:10星期二', activities:'小天使在行动·关爱自闭症儿童',money:2000,join:'志愿者'},
  33. ]
  34. }
  35. }
  36. }
  37. </script>
  38. <style lang="scss">
  39. .content{
  40. background-color: f8f8f8;
  41. width: 750rpx;
  42. height: 100%;
  43. .header{
  44. background-color: #A31314;
  45. height: 80rpx;
  46. width: 750rpx;
  47. display: flex;
  48. justify-content: center;
  49. align-items: center;
  50. .num{
  51. color: #FFFFFF;
  52. }
  53. }
  54. .detail{
  55. .date{
  56. padding:0 24rpx;
  57. width: 100%;
  58. height: 80rpx;
  59. background-color: #E9E6EA;
  60. display: flex;
  61. // justify-content: center;
  62. align-items: center;
  63. }
  64. .main{
  65. padding:0 24rpx;
  66. .activities{
  67. margin: 44rpx 0;
  68. .title{
  69. color:#CB131C;
  70. font-size: 32rpx;
  71. padding-bottom: 12rpx;
  72. border-bottom: 1rpx solid #E9E6EA;
  73. }
  74. .info{
  75. color:#000000;
  76. font-size: 28rpx;
  77. padding-top: 12rpx;
  78. }
  79. }
  80. }
  81. }
  82. }
  83. </style>