jys.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <template>
  2. <view class="jys">
  3. <statusBar :item="navBarData"></statusBar>
  4. <view class="top">
  5. <view class="card">
  6. <image class="image" src="http://43.139.158.220:5007/img/static/mine/img1.jpg" mode="aspectFill"></image>
  7. <view class="text">
  8. <view class="text_title">
  9. <view class="manage bqZ-font">类型</view>
  10. <view class="t1 bmTit-font">创业者管理能力训练基础</view>
  11. </view>
  12. <view class="col sZw-font">
  13. 活动日期:5.12~5.13
  14. </view>
  15. <view class="col sZw-font">
  16. 招募人数:23/50
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. <!-- <uni-card :is-shadow="false"> -->
  22. <view class="xinxi">
  23. <view class="card2">
  24. <view class="hdxx">
  25. <view class="hd btn-font">活动信息</view>
  26. <view class="textcolor">
  27. <view class="name sZw-font">
  28. 姓名:
  29. <text class="name1 sZw-font">李芳</text>
  30. </view>
  31. <view class="name sZw-font">
  32. 联系方式:
  33. <text class="lx1 sZw-font">172xxxxx5678</text>
  34. </view>
  35. <view class="name sZw-font">
  36. 单位:
  37. <text class="dw1 sZw-font"> 浙江工贸职业技术学院</text>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. <!-- </uni-card> -->
  44. <view class="buttons">
  45. <view class="button-container">
  46. <button @click="button1Action" class="btn1 sZw-font">清空填写信息</button>
  47. <!-- <text class="button-spacing"></text> -->
  48. <!-- 添加间距 -->
  49. <button @click="button2Action" class="btn2 sZw-font">申请加入</button>
  50. </view>
  51. </view>
  52. </view>
  53. </template>
  54. <script>
  55. export default {
  56. data() {
  57. return {
  58. navBarData: {
  59. title: '教研室报名',
  60. btn: 1
  61. }
  62. };
  63. },
  64. methods: {
  65. button1Action() {
  66. // 这里添加按钮1点击后触发的动作
  67. console.log('Button 1 clicked');
  68. },
  69. button2Action() {
  70. // 这里添加按钮2点击后触发的动作
  71. console.log('Button 2 clicked');
  72. }
  73. }
  74. };
  75. </script>
  76. <style lang="scss" scoped>
  77. .jys {
  78. .top{
  79. width: 690rpx;
  80. // height: 192rpx;
  81. background-color: #ffffff;
  82. margin: auto;
  83. margin-top: 30rpx;
  84. padding: 16rpx 24rpx;
  85. border-radius: 10rpx;
  86. .col{
  87. color: #999999;
  88. }
  89. }
  90. .card {
  91. display: flex;
  92. justify-content: flex-start;
  93. .image {
  94. flex-shrink: 0;
  95. width: 160rpx;
  96. height: 160rpx;
  97. border-radius: 4px;
  98. }
  99. .text {
  100. margin-left: 10px; // 增加一点空间
  101. display: flex;
  102. flex-direction: column;
  103. justify-content: space-between;
  104. // line-height: 35px; // 根据你的需求调整,使/文本与图片保持
  105. .text_title {
  106. display: flex;
  107. align-items: center;
  108. .manage {
  109. // padding:4rpx 12rpx 4rpx 12rpx;
  110. display: flex;
  111. align-items: center;
  112. justify-content: center;
  113. width: 68rpx;
  114. // line-height: 68rpx;
  115. height: 36rpx;
  116. font-weight: 600rpx;
  117. // text-align: center;
  118. color: #00b2b6;
  119. border: 1px solid #00b2b6;
  120. border-radius: 5rpx;
  121. margin-right: 10rpx;
  122. }
  123. .t1 {
  124. // font-size: 35rpx;
  125. color: black;
  126. width: 350rpx;
  127. font-weight: 550;
  128. overflow:hidden;
  129. text-overflow:ellipsis;
  130. white-space:nowrap;
  131. }
  132. }
  133. }
  134. }
  135. .xinxi{
  136. background-color: #ffffff;
  137. width: 690rpx;
  138. // height: 272rpx;
  139. margin: auto;
  140. margin-top: 20rpx;
  141. padding: 20rpx 24rpx;
  142. border-radius: 12rpx;
  143. }
  144. .hdxx {
  145. .hd {
  146. color: black;
  147. // font-size: 18px;
  148. font-weight: 400px;
  149. line-height: 42px;
  150. }
  151. .textcolor {
  152. color: #999999;
  153. line-height: 42px;
  154. .name {
  155. display: flex;
  156. justify-content: space-between;
  157. margin-bottom: 20rpx;
  158. }
  159. }
  160. }
  161. .buttons {
  162. background-color: white;
  163. position: fixed;
  164. bottom: 0;
  165. left: 0;
  166. width: 100%;
  167. display: flex;
  168. justify-content: space-around;
  169. align-items: center;
  170. // padding: 30rpx 0;
  171. height: 137rpx;
  172. // padding-bottom: 50rpx;
  173. // font-size: 30rpx;
  174. .button-container {
  175. width: 100%;
  176. display: flex;
  177. justify-content: space-around;
  178. .btn1{
  179. width: 326rpx;
  180. height: 71rpx;
  181. border: 1px solid #666666;
  182. border-radius: 50px;
  183. height: 70rpx;
  184. line-height: 70rpx;
  185. // font-size: 35rpx;
  186. color: #666666;
  187. }
  188. .btn2{
  189. width: 326rpx;
  190. height: 71rpx;
  191. background-color: #0056a8;
  192. border-radius: 50px;
  193. height: 70rpx;
  194. line-height: 70rpx;
  195. // font-size: 35rpx;
  196. color: #ffffff;
  197. }
  198. }
  199. }
  200. }
  201. </style>