activityDetail.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  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" @click="gotoAdd">立即报名</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. gotoAdd(){
  83. uni.navigateTo({
  84. url:'/pages/hd/hd'
  85. })
  86. }
  87. }
  88. }
  89. </script>
  90. <style lang="scss">
  91. .activityDetail{
  92. padding-bottom: 80px;
  93. .backPic{
  94. width: 750rpx;
  95. position: relative;
  96. image{
  97. width: 100%;
  98. display: block;
  99. }
  100. .card{
  101. position: absolute;
  102. width: 650rpx;
  103. // height: 150px;
  104. bottom: -20px;
  105. left: 50%;
  106. padding: 30rpx 20rpx;
  107. border-radius: 10px;
  108. background-color: #ffffff;
  109. transform: translate(-50%,0);
  110. .cardTop{
  111. // display: flex;
  112. // justify-content: center;
  113. // padding-bottom: 5px;
  114. margin-bottom: 5px;
  115. // font-size: 18px;
  116. font-weight: bold;
  117. display: -webkit-box;
  118. word-break: break-all;
  119. text-overflow: ellipsis;
  120. overflow: hidden;
  121. -webkit-box-orient: vertical;
  122. -webkit-line-clamp:2;/*设置 需要显示的行数*/
  123. .title{
  124. font-weight: bold;
  125. }
  126. }
  127. .col{
  128. position: relative;
  129. margin-bottom: 10rpx;
  130. color: #999999;
  131. padding-right: 40px;
  132. font-size: 14px;
  133. width: 100%;
  134. display: -webkit-box;
  135. word-break: break-all;
  136. text-overflow: ellipsis;
  137. overflow: hidden;
  138. -webkit-box-orient: vertical;
  139. -webkit-line-clamp:2;/*设置 需要显示的行数*/
  140. text{
  141. color: #333333;
  142. }
  143. }
  144. .tag{
  145. display: flex;
  146. }
  147. }
  148. // background-image: url(../../static/resource/jqr.png);
  149. }
  150. .creator{
  151. display: flex;
  152. padding: 10px 30px;
  153. background-color: #ffffff;
  154. align-items: center;
  155. margin-top: 30px;
  156. border-radius: 10px;
  157. image{
  158. width: 60px;
  159. height: 60px;
  160. border-radius: 50%;
  161. margin-right: 20rpx;
  162. }
  163. .creName{
  164. font-weight: bold;
  165. }
  166. }
  167. .member{
  168. background-color: #ffffff;
  169. margin-top: 20px;
  170. padding: 10px 10px;
  171. border: 10px;
  172. border-radius: 10px;
  173. .memberTop{
  174. display: flex;
  175. justify-content: space-between;
  176. margin-bottom: 10px;
  177. }
  178. .pers{
  179. display: flex;
  180. justify-content: space-around;
  181. align-items: center;
  182. .per{
  183. display: inline-block;
  184. image{
  185. width: 40px;
  186. height: 40px;
  187. border-radius: 50%;
  188. }
  189. .perName{
  190. font-size: 14px;
  191. text-align: center;
  192. }
  193. }
  194. }
  195. }
  196. .btnBlock{
  197. position: fixed;
  198. bottom: 0;
  199. width: 750rpx;
  200. background-color: #ffffff;
  201. // padding: 20px 0;
  202. padding: 2vh 0;
  203. .btn{
  204. width: 50%;
  205. margin: auto;
  206. background-color: #0056a8;
  207. color: #ffffff;
  208. font-size: 14px;
  209. }
  210. }
  211. }
  212. </style>