activityDetail.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. <template>
  2. <!-- 教研室详情 -->
  3. <view class="activityDetail">
  4. <statusBar :item="navbar"></statusBar>
  5. <!-- 顶部 -->
  6. <view class="backPic">
  7. <image src="../../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;margin-bottom: 20px;">
  28. <view class="creator">
  29. <image src="../../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="../../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. border-radius: 10px;
  110. background-color: #ffffff;
  111. transform: translate(-50%,0);
  112. .cardTop{
  113. // display: flex;
  114. // justify-content: center;
  115. // padding-bottom: 5px;
  116. margin-bottom: 5px;
  117. // font-size: 18px;
  118. font-weight: bold;
  119. display: -webkit-box;
  120. word-break: break-all;
  121. text-overflow: ellipsis;
  122. overflow: hidden;
  123. -webkit-box-orient: vertical;
  124. -webkit-line-clamp:2;/*设置 需要显示的行数*/
  125. .title{
  126. font-weight: bold;
  127. }
  128. }
  129. .col{
  130. position: relative;
  131. margin-bottom: 10rpx;
  132. color: #999999;
  133. padding-right: 40px;
  134. // font-size: 14px;
  135. width: 100%;
  136. display: -webkit-box;
  137. word-break: break-all;
  138. text-overflow: ellipsis;
  139. overflow: hidden;
  140. -webkit-box-orient: vertical;
  141. -webkit-line-clamp:2;/*设置 需要显示的行数*/
  142. text{
  143. color: #333333;
  144. }
  145. }
  146. .tag{
  147. display: flex;
  148. }
  149. }
  150. // background-image: url(../../static/resource/jqr.png);
  151. }
  152. .creator{
  153. display: flex;
  154. padding: 10px 30px;
  155. background-color: #ffffff;
  156. align-items: center;
  157. margin-top: 30px;
  158. border-radius: 10px;
  159. image{
  160. width: 96rpx;
  161. height: 96rpx;
  162. border-radius: 50%;
  163. margin-right: 20rpx;
  164. }
  165. .creName{
  166. font-weight: bold;
  167. }
  168. }
  169. .member{
  170. background-color: #ffffff;
  171. margin-top: 20px;
  172. padding: 10px 10px;
  173. border: 10px;
  174. border-radius: 10px;
  175. .memberTop{
  176. display: flex;
  177. justify-content: space-between;
  178. margin-bottom: 10px;
  179. }
  180. .pers{
  181. display: flex;
  182. justify-content: space-around;
  183. align-items: center;
  184. .per{
  185. // display: inline-block;
  186. display: flex;
  187. flex-direction: column;
  188. // justify-content: center;
  189. align-items: center;
  190. image{
  191. width: 72rpx;
  192. height: 72rpx;
  193. border-radius: 50%;
  194. }
  195. .perName{
  196. // font-size: 14px;
  197. text-align: center;
  198. }
  199. }
  200. }
  201. }
  202. .btnBlock{
  203. position: fixed;
  204. bottom: 0;
  205. width: 750rpx;
  206. background-color: #ffffff;
  207. // padding: 20px 0;
  208. padding: 2vh 0;
  209. .btn{
  210. width: 432rpx;
  211. height: 88rpx;
  212. font-weight: 500;
  213. display: flex;
  214. justify-content: center;
  215. align-items: center;
  216. margin: auto;
  217. background-color: #0056a8;
  218. color: #ffffff;
  219. }
  220. }
  221. }
  222. </style>