dy.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. align-items: center;
  62. // flex-direction: row; /* 使内容垂直排列 */
  63. padding: 10px;
  64. .image {
  65. width: 100rpx;
  66. height: 100rpx;
  67. border-radius: 50%;
  68. }
  69. .text {
  70. flex-grow: 1; /* 填充剩余空间,并根据其内容自适应宽度 */
  71. padding: 5px;
  72. line-height: 25px;
  73. .t1,
  74. .dy {
  75. white-space: nowrap;
  76. }
  77. .t1 {
  78. font-weight: 600px;
  79. font-size: 16px;
  80. color: black;
  81. }
  82. .dy {
  83. font-size: 12px;
  84. color: #999999;
  85. }
  86. }
  87. .btn {
  88. // flex-grow: 1; /* 填充剩余空间 */
  89. // display: flex;
  90. // justify-content: center; /* 水平居中 */
  91. // align-items: center; /* 垂直居中 */
  92. background-color: #adadad;
  93. width: 180rpx;
  94. height: 60rpx;
  95. border-radius: 42px;
  96. // margin-top: 15px;
  97. // margin-left: 25px;
  98. font-size: 28rpx;
  99. text-align: center;
  100. line-height: 60rpx;
  101. color: white;
  102. }
  103. }
  104. </style>