message.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <view class="message">
  3. <view class="header">
  4. <view class="title">
  5. 消息
  6. </view>
  7. <view class="tabs">
  8. <view class="tab-item active">收益消息</view>
  9. <view class="tab-item">其他消息</view>
  10. </view>
  11. </view>
  12. <view class="msg-list">
  13. <view>
  14. <view class="time">
  15. 2021-07-02 11:25
  16. </view>
  17. <view class="msg">
  18. <view class="title">收益通知</view>
  19. <view class="content">您好,您的粉丝给您贡献了一笔0.00元的收益。请注意查收</view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. data() {
  28. return {
  29. }
  30. },
  31. methods: {
  32. }
  33. }
  34. </script>
  35. <style lang="scss">
  36. .message{
  37. overflow: hidden;
  38. }
  39. .header {
  40. margin: 20upx;
  41. background: white;
  42. text-align: center;
  43. border-radius: 20upx;
  44. .title {
  45. height: 100upx;
  46. font-size: 32upx;
  47. line-height: 100upx;
  48. // font-weight: bold;
  49. }
  50. .tabs {
  51. display: flex;
  52. justify-content: space-between;
  53. .tab-item {
  54. flex: 1;
  55. padding: 10upx 0;
  56. font-size: 28upx;
  57. color: #999999;
  58. &.active {
  59. background: $primary-color;
  60. color: white;
  61. border-radius: 20upx;
  62. }
  63. }
  64. }
  65. }
  66. .msg-list{
  67. .time{
  68. text-align: center;
  69. font-size: 24upx;
  70. color: #999999;
  71. }
  72. .msg{
  73. margin: 20upx;
  74. background: white;
  75. padding: 20upx;
  76. .title{
  77. text-align: center;
  78. font-size: 28upx;
  79. padding-bottom: 20upx;
  80. border-bottom: 2upx solid #EEEEEE;
  81. }
  82. .content{
  83. margin-top: 20upx;
  84. font-size: 26upx;
  85. }
  86. }
  87. }
  88. </style>