dy.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <template>
  2. <view>
  3. <statusBar :item="navBarData"></statusBar>
  4. <view class="main_part">
  5. <view class="content">
  6. <!-- <img class="image" src="../../static/logo.png" alt="" /> -->
  7. <image class="image" src="../../static/mine/Avatar.png" mode=""></image>
  8. <view class="text">
  9. <p class="t1">橘子很橘子</p>
  10. <p class="dy">订阅了您的教研室&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2023-04-01</p>
  11. </view>
  12. <button class="btn">回粉</button>
  13. </view>
  14. <view class="content">
  15. <!-- <img class="image" src="../../static/logo.png" alt="" /> -->
  16. <image class="image" src="../../static/mine/Avatar.png" mode=""></image>
  17. <view class="text">
  18. <p class="t1">橘子很橘子</p>
  19. <p class="dy">订阅了您的教研室&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2023-04-01</p>
  20. </view>
  21. <button class="btn">回粉</button>
  22. </view>
  23. <view class="content">
  24. <!-- <img class="image" src="../../static/logo.png" alt="" /> -->
  25. <image class="image" src="../../static/mine/Avatar.png" mode=""></image>
  26. <view class="text">
  27. <p class="t1">橘子很橘子</p>
  28. <p class="dy">订阅了您的教研室&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2023-04-01</p>
  29. </view>
  30. <button class="btn">+关注</button>
  31. </view>
  32. <view class="content">
  33. <!-- <img class="image" src="../../logo.png" alt="" /> -->
  34. <image class="image" src="../../static/mine/Avatar.png" mode=""></image>
  35. <view class="text">
  36. <p class="t1">橘子很橘子</p>
  37. <p class="dy">订阅了您的教研室&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2023-04-01</p>
  38. </view>
  39. <button class="btn">互相关注</button>
  40. </view>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. export default {
  46. data() {
  47. return {
  48. navBarData: {
  49. title: '新增订阅',
  50. btn: 1
  51. }
  52. };
  53. }
  54. };
  55. </script>
  56. <style lang="scss" scoped>
  57. .content {
  58. // margin-top: 5px;
  59. background-color: white;
  60. display: flex;
  61. flex-direction: row; /* 使内容垂直排列 */
  62. padding: 10px;
  63. .image {
  64. width: 58px;
  65. height: 58px;
  66. border-radius: 50%;
  67. }
  68. .text {
  69. flex-grow: 1; /* 填充剩余空间,并根据其内容自适应宽度 */
  70. padding: 5px;
  71. line-height: 25px;
  72. .t1,
  73. .dy {
  74. white-space: nowrap;
  75. }
  76. .t1 {
  77. font-weight: 600px;
  78. font-size: 16px;
  79. color: black;
  80. }
  81. .dy {
  82. font-size: 12px;
  83. color: #999999;
  84. }
  85. }
  86. .btn {
  87. // flex-grow: 1; /* 填充剩余空间 */
  88. // display: flex;
  89. // justify-content: center; /* 水平居中 */
  90. // align-items: center; /* 垂直居中 */
  91. background-color: #adadad;
  92. width: 90px;
  93. height: 35px;
  94. border-radius: 42px;
  95. margin-top: 15px;
  96. // margin-left: 25px;
  97. font-size: 14px;
  98. text-align: center;
  99. // line-height: 35px;
  100. color: white;
  101. }
  102. }
  103. </style>