activityDetail.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <template>
  2. <!-- 教研室详情 -->
  3. <view class="activityDetail">
  4. <statusBar :item="navbar"></statusBar>
  5. <!-- 顶部 -->
  6. <view class="backPic">
  7. <image src="http://43.139.158.220:5007/img/static/yym/Rectangle 40.png" mode="aspectFill"></image>
  8. <view style="padding: 0 30rpx;margin-bottom: 20px;">
  9. <view class="card">
  10. <view class="cardTop three-font">
  11. 2023年全国国际银行分行“防范灾害风险护航高质量发展”防灾减灾志愿宣传活动
  12. </view>
  13. <view class="col fz-font">
  14. 活动日期:<text>5.12~5.13</text>
  15. </view>
  16. <view class="col fz-font">
  17. 招募人数:<text>23/50</text>
  18. </view>
  19. <view class="col fz-font">
  20. 活动地址:<text>龙岗将军帽路一号深圳技师学院</text>
  21. <uni-icons type="location" color="#0056a8" style="position: absolute;right: 10px;top: 0;width: 32rpx;height: 45rpx;"></uni-icons>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. <!-- 创建者用户名 -->
  27. <view style="padding: 0 30rpx;">
  28. <view class="creator">
  29. <image src="http://43.139.158.220:5007/img/static/mine/Avatar.png" mode="aspectFill"></image>
  30. <view class="creName btn-font">
  31. 发起者爱谁谁
  32. </view>
  33. </view>
  34. </view>
  35. <!-- 活动详情 -->
  36. <view class="" style="padding: 0 30rpx;">
  37. <detailBlock :item='judge'></detailBlock>
  38. </view>
  39. <!-- 当前成员 -->
  40. <view style="padding: 0 30rpx;">
  41. <view class="member">
  42. <view class="memberTop">
  43. <view class="btn-font">报名情况(已报名23人)</view>
  44. <view class="fz-font" style="color: #666666;display: flex;align-items: center;" @click="perList">
  45. 查看更多
  46. <uni-icons type="right"></uni-icons>
  47. </view>
  48. </view>
  49. <view class="pers">
  50. <view class="per" v-for="i in 6">
  51. <image src="http://43.139.158.220:5007/img/static/mine/Avatar.png" mode="aspectFill"></image>
  52. <view class="perName fz-font">
  53. 袁一鸣
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. <!-- 申请加入 -->
  60. <view class="btnBlock">
  61. <button class="btn" @click="gotoAdd">立即报名</button>
  62. </view>
  63. </view>
  64. </template>
  65. <script>
  66. export default {
  67. data() {
  68. return {
  69. navbar:{
  70. title:'活动详情',
  71. btn:1
  72. },
  73. judge:{
  74. isShow:1
  75. }
  76. };
  77. },
  78. methods:{
  79. perList(){
  80. uni.navigateTo({
  81. url:'/pages/dy/dy'
  82. })
  83. },
  84. gotoAdd(){
  85. uni.navigateTo({
  86. url:'/pages/hd/hd'
  87. })
  88. }
  89. }
  90. }
  91. </script>
  92. <style lang="scss">
  93. .activityDetail{
  94. padding-bottom: 80px;
  95. .backPic{
  96. width: 750rpx;
  97. position: relative;
  98. image{
  99. width: 100%;
  100. display: block;
  101. }
  102. .card{
  103. position: absolute;
  104. width: 690rpx;
  105. // height: 150px;
  106. bottom: -20px;
  107. left: 50%;
  108. // padding: 30rpx 16px;
  109. padding: 30rpx;
  110. border-radius: 10px;
  111. background-color: #ffffff;
  112. transform: translate(-50%,0);
  113. .cardTop{
  114. // display: flex;
  115. // justify-content: center;
  116. // padding-bottom: 5px;
  117. margin-bottom: 5px;
  118. // font-size: 18px;
  119. font-weight: bold;
  120. display: -webkit-box;
  121. word-break: break-all;
  122. text-overflow: ellipsis;
  123. overflow: hidden;
  124. -webkit-box-orient: vertical;
  125. -webkit-line-clamp:2;/*设置 需要显示的行数*/
  126. .title{
  127. font-weight: bold;
  128. }
  129. }
  130. .col{
  131. position: relative;
  132. margin-bottom: 10rpx;
  133. color: #999999;
  134. padding-right: 40px;
  135. // font-size: 14px;
  136. width: 100%;
  137. display: -webkit-box;
  138. word-break: break-all;
  139. text-overflow: ellipsis;
  140. overflow: hidden;
  141. -webkit-box-orient: vertical;
  142. -webkit-line-clamp:2;/*设置 需要显示的行数*/
  143. text{
  144. color: #333333;
  145. }
  146. }
  147. .tag{
  148. display: flex;
  149. }
  150. }
  151. // background-image: url(http://43.139.158.220:5007/img/static/resource/jqr.png);
  152. }
  153. .creator{
  154. display: flex;
  155. // padding: 10px 30px;
  156. padding: 30rpx 20rpx;
  157. background-color: #ffffff;
  158. align-items: center;
  159. margin-top: 30px;
  160. margin-bottom: 20rpx;
  161. border-radius: 10px;
  162. image{
  163. width: 96rpx;
  164. height: 96rpx;
  165. border-radius: 50%;
  166. margin-right: 20rpx;
  167. }
  168. .creName{
  169. font-weight: bold;
  170. }
  171. }
  172. .member{
  173. background-color: #ffffff;
  174. margin-top: 20rpx;
  175. // padding: 10px 10px;
  176. padding: 30rpx;
  177. // border: 10px;
  178. border-radius: 10px;
  179. .memberTop{
  180. display: flex;
  181. justify-content: space-between;
  182. margin-bottom: 10px;
  183. }
  184. .pers{
  185. display: flex;
  186. justify-content: space-between;
  187. align-items: center;
  188. .per{
  189. // display: inline-block;
  190. display: flex;
  191. flex-direction: column;
  192. // justify-content: center;
  193. align-items: center;
  194. image{
  195. width: 72rpx;
  196. height: 72rpx;
  197. border-radius: 50%;
  198. }
  199. .perName{
  200. // font-size: 14px;
  201. text-align: center;
  202. }
  203. }
  204. }
  205. }
  206. .btnBlock{
  207. position: fixed;
  208. bottom: 0;
  209. width: 750rpx;
  210. background-color: #ffffff;
  211. // padding: 20px 0;
  212. padding: 2vh 0;
  213. .btn{
  214. width: 432rpx;
  215. height: 88rpx;
  216. font-weight: 500;
  217. display: flex;
  218. justify-content: center;
  219. align-items: center;
  220. margin: auto;
  221. background-color: #0056a8;
  222. color: #ffffff;
  223. }
  224. }
  225. }
  226. </style>