jys.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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 class="image" src="../../static/jys/jys.png" mode=""></image>
  9. <view class="text">
  10. <!-- <view class="text_title">
  11. <text class="manage">类型</text>
  12. <text class="t1">这里是教研室名22222称</text>
  13. </view> -->
  14. <view class="text_title">
  15. <view class="manage bqZ-font">类型</view>
  16. <view class="t1 bmTit-font">这里是教研室名这里是教研室名这里是教研室名这里是教研室名</view>
  17. </view>
  18. <view class="">
  19. 负责人:xxx
  20. </view>
  21. <view class="">
  22. 教研室标签:
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </uni-card>
  28. <uni-card :is-shadow="false">
  29. <view class="uni-body">
  30. <view class="card2">
  31. <view class="hdxx">
  32. <view class="hd btn-font">活动信息</view>
  33. <view class="textcolor">
  34. <view class="name fz-font">
  35. 姓名:
  36. <text class="name1 fz-font">李某某</text>
  37. </view>
  38. <view class="name fz-font">
  39. 联系方式:
  40. <text class="lx1 fz-font">172xxxxx5678</text>
  41. </view>
  42. <view class="name fz-font">
  43. 单位:
  44. <text class="dw1 fz-font">xx实验中学学校</text>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. </uni-card>
  51. <view class="buttons">
  52. <view class="button-container">
  53. <button @click="button1Action" class="btn1 sZw-font">清空填写信息</button>
  54. <!-- <text class="button-spacing"></text> -->
  55. <!-- 添加间距 -->
  56. <button @click="button2Action" class="btn2 sZw-font">申请加入</button>
  57. </view>
  58. </view>
  59. </view>
  60. </template>
  61. <script>
  62. export default {
  63. data() {
  64. return {
  65. navBarData: {
  66. title: '教研室报名',
  67. btn: 1
  68. }
  69. };
  70. },
  71. methods: {
  72. button1Action() {
  73. // 这里添加按钮1点击后触发的动作
  74. console.log('Button 1 clicked');
  75. },
  76. button2Action() {
  77. // 这里添加按钮2点击后触发的动作
  78. console.log('Button 2 clicked');
  79. }
  80. }
  81. };
  82. </script>
  83. <style lang="scss" scoped>
  84. .main {
  85. .card {
  86. display: flex;
  87. justify-content: flex-start;
  88. .image {
  89. flex-shrink: 0;
  90. width: 160rpx;
  91. height: 160rpx;
  92. border-radius: 4px;
  93. }
  94. .text {
  95. margin-left: 10px; // 增加一点空间
  96. display: flex;
  97. flex-direction: column;
  98. justify-content: space-between;
  99. // line-height: 35px; // 根据你的需求调整,使/文本与图片保持
  100. .text_title {
  101. display: flex;
  102. // align-items: center;
  103. .manage {
  104. // flex-shrink: 0;
  105. padding:0 10rpx;
  106. // font-size: 25rpx;
  107. // width: 40rpx;
  108. // height: 24rpx;
  109. display: flex;
  110. align-items: center;
  111. min-width: 50rpx;
  112. color: #00b2b6;
  113. border: 1px solid #00b2b6;
  114. border-radius: 3px;
  115. margin-right: 10rpx;
  116. }
  117. .t1 {
  118. // font-size: 35rpx;
  119. color: black;
  120. width: 350rpx;
  121. font-weight: 550;
  122. overflow:hidden;
  123. text-overflow:ellipsis;
  124. white-space:nowrap;
  125. }
  126. }
  127. }
  128. }
  129. .hdxx {
  130. .hd {
  131. color: black;
  132. // font-size: 18px;
  133. font-weight: 400px;
  134. line-height: 42px;
  135. }
  136. .textcolor {
  137. color: #999999;
  138. line-height: 42px;
  139. .name {
  140. display: flex;
  141. justify-content: space-between;
  142. margin-bottom: 20rpx;
  143. }
  144. }
  145. }
  146. .buttons {
  147. background-color: white;
  148. position: fixed;
  149. bottom: 0;
  150. left: 0;
  151. width: 100%;
  152. display: flex;
  153. justify-content: space-around;
  154. box-sizing: border-box;
  155. padding: 30rpx 0;
  156. padding-bottom: 50rpx;
  157. // font-size: 30rpx;
  158. .button-container {
  159. width: 100%;
  160. display: flex;
  161. justify-content: space-around;
  162. .btn1{
  163. width: 45%;
  164. border: 1px solid #666666;
  165. border-radius: 50px;
  166. height: 70rpx;
  167. line-height: 70rpx;
  168. // font-size: 35rpx;
  169. color: #666666;
  170. }
  171. .btn2{
  172. width: 45%;
  173. background-color: #0056a8;
  174. border-radius: 50px;
  175. height: 70rpx;
  176. line-height: 70rpx;
  177. // font-size: 35rpx;
  178. color: #ffffff;
  179. }
  180. }
  181. }
  182. }
  183. </style>