activityDetail.vue 4.6 KB

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