hd.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <template>
  2. <view class="main">
  3. <statusBar :item="navBarData"></statusBar>
  4. <uni-card :is-shadow="false">
  5. <view class="uni-body">
  6. <view class="card">
  7. <!-- <img src="../../static/jys/jys.png" alt="" class="image" /> -->
  8. <image src="../../static/jys/jys.png" class="image" mode="aspectFill"></image>
  9. <view class="text">
  10. <p>
  11. <span class="manage">类型</span>
  12. <span class="t1">这里是活动名称</span>
  13. </p>
  14. <view class="fzr">
  15. <p>活动日期:5.12~5.20</p>
  16. <p>招募人数:23/50</p>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </uni-card>
  22. <uni-card :is-shadow="false">
  23. <view class="uni-body">
  24. <view class="card2">
  25. <view class="hdxx">
  26. <p class="hd">活动信息</p>
  27. <view class="textcolor">
  28. <p class="name">
  29. 姓名:
  30. <span class="name1"></span>
  31. </p>
  32. <p class="name">
  33. 联系方式:
  34. <span class="lx1">172xxxxx5678</span>
  35. </p>
  36. <p class="name">
  37. 单位:
  38. <span class="dw1">xx实验中学学校</span>
  39. </p>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </uni-card>
  45. <view class="buttons safe-area-bottom">
  46. <button @click="button1Action" class="btn1">清空填写信息</button>
  47. <button @click="button2Action" class="btn2">确认报名</button>
  48. </view>
  49. </view>
  50. </template>
  51. <script>
  52. export default {
  53. data() {
  54. return {
  55. navBarData: {
  56. title: '活动报名',
  57. btn: 1
  58. }
  59. };
  60. },
  61. methods: {
  62. button1Action() {
  63. // 这里添加按钮1点击后触发的动作
  64. console.log('Button 1 clicked');
  65. },
  66. button2Action() {
  67. // 这里添加按钮2点击后触发的动作
  68. console.log('Button 2 clicked');
  69. }
  70. }
  71. };
  72. </script>
  73. <style lang="scss" scoped>
  74. .main {
  75. .card {
  76. display: flex;
  77. // align-items: center; // 如果需要垂直居中
  78. justify-content: flex-start;
  79. .image {
  80. width: 100px;
  81. height: 100px;
  82. border-radius: 4px;
  83. object-fit: cover; // 使图片保持原有比例填充整个元素
  84. }
  85. .text {
  86. margin-left: 10px; // 增加一点空间
  87. line-height: 35px; // 根据你的需求调整,使文本与图片保持
  88. .manage {
  89. padding: 2px;
  90. padding-left: 5px;
  91. padding-right: 5px;
  92. // font-size: 12px;
  93. color: #00b2b6;
  94. border: 1px solid #00b2b6;
  95. border-radius: 3px;
  96. // margin-left: 5px;
  97. }
  98. .t1 {
  99. font-size: 18px;
  100. color: black;
  101. font-weight: 550;
  102. }
  103. .fzr {
  104. p {
  105. margin-left: 5px;
  106. color: #999999;
  107. }
  108. }
  109. }
  110. }
  111. .hdxx {
  112. .hd {
  113. color: black;
  114. font-size: 18px;
  115. font-weight: 400px;
  116. line-height: 42px;
  117. }
  118. .textcolor {
  119. color: #999999;
  120. line-height: 42px;
  121. .name {
  122. display: flex;
  123. justify-content: space-between;
  124. }
  125. }
  126. }
  127. .buttons {
  128. bottom: 42px;
  129. position: fixed;
  130. // width: 100%;
  131. display: flex;
  132. justify-content: space-between;
  133. // padding-left: 25px;
  134. // padding-right: 25px;
  135. button {
  136. font-size: 16px;
  137. color: #999999;
  138. width: 180px; /* 设置按钮宽度 */
  139. border-radius: 50px; /* 设置圆角 */
  140. }
  141. .btn1 {
  142. margin-left: 10px;
  143. border: 1px solid #999999;
  144. }
  145. .btn2 {
  146. color: white;
  147. margin-left: 50px;
  148. background-color: #0056a8;
  149. }
  150. }
  151. }
  152. </style>