activityDetail.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  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. 创业意识与商机识别
  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"
  22. style="position: absolute;right: 10px;top: 0;width: 32rpx;height: 45rpx;"></uni-icons>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. <!-- 创建者用户名 -->
  28. <view style="padding: 0 30rpx;">
  29. <view class="creator">
  30. <image src="https://file.icve.com.cn/file_doc_public/86/519/15A81C36346AC850A5F0FD456F759D1A.jpg" mode="aspectFill"></image>
  31. <view class="creName btn-font">
  32. 曾秀臻
  33. </view>
  34. </view>
  35. </view>
  36. <!-- 活动详情 -->
  37. <view class="" style="padding: 0 30rpx;">
  38. <detailBlock :item='judge'></detailBlock>
  39. </view>
  40. <!-- 当前成员 -->
  41. <view style="padding: 0 30rpx;">
  42. <view class="member">
  43. <view class="memberTop">
  44. <view class="btn-font">报名情况(已报名23人)</view>
  45. <view class="fz-font" style="color: rgba(0, 0, 0, 0.4);display: flex;align-items: center;" @click="perList">
  46. <text>查看更多</text>
  47. <image src="http://43.139.158.220:5007/img/static/mine/arrow-right.png" style="width: 32rpx;height: 32rpx;" mode="aspectFill"></image>
  48. <!-- <uni-icons type="right"></uni-icons> -->
  49. </view>
  50. </view>
  51. <view class="pers">
  52. <view class="per" v-for="(item,index) in perNum">
  53. <image :src="item.img"></image>
  54. <view class="perName fz-font">
  55. {{item.Name}}
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. <!-- 申请加入 -->
  62. <view class="btnBlock">
  63. <button class="btn" @click="gotoAdd">立即报名</button>
  64. </view>
  65. </view>
  66. </template>
  67. <script>
  68. export default {
  69. data() {
  70. return {
  71. navbar: {
  72. title: '活动详情',
  73. btn: 1
  74. },
  75. judge: {
  76. isShow: 1,
  77. info:'你对创业感兴趣吗?想初步了解创业吗?你是否对确定创业方向和创业机会有选择的困惑呢?在创新创业的大氛围下,课堂上常常强调要以项目为中心,你却苦于迟迟无法最终确定具体的项目?那么,《创业意识与商机识别》这门课程可以帮助你。'
  78. },
  79. perNum: [{
  80. Name: '陈芬',img:'http://43.139.158.220:5007/img/static/yym/Ellipse 4 (3).png'
  81. },
  82. {
  83. Name: '贺豪杰',img:'http://43.139.158.220:5007/img/static/yym/Ellipse 4 (4).png'
  84. },
  85. {
  86. Name: '张孝迪',img:'http://43.139.158.220:5007/img/static/yym/Ellipse 4.png'
  87. },
  88. {
  89. Name: '马冬梅',img:'http://43.139.158.220:5007/img/static/yym/Ellipse 4 (2).png'
  90. },
  91. {
  92. Name: '康雯妍',img:'http://43.139.158.220:5007/img/static/yym/Ellipse 4 (1).png'
  93. },
  94. {
  95. Name: '张燕琴',img:'http://43.139.158.220:5007/img/static/mine/Avatar.png'
  96. }]
  97. };
  98. },
  99. methods: {
  100. perList() {
  101. uni.navigateTo({
  102. url: '/pages/dy/dy'
  103. })
  104. },
  105. gotoAdd() {
  106. uni.navigateTo({
  107. url: '/pages/hd/hd'
  108. })
  109. }
  110. }
  111. }
  112. </script>
  113. <style lang="scss">
  114. .activityDetail {
  115. padding-bottom: 80px;
  116. .backPic {
  117. width: 750rpx;
  118. position: relative;
  119. image {
  120. width: 100%;
  121. display: block;
  122. }
  123. .card {
  124. position: absolute;
  125. width: 690rpx;
  126. // height: 150px;
  127. bottom: -20px;
  128. left: 50%;
  129. // padding: 30rpx 16px;
  130. padding: 30rpx;
  131. border-radius: 10px;
  132. background-color: #ffffff;
  133. transform: translate(-50%, 0);
  134. .cardTop {
  135. // display: flex;
  136. // justify-content: center;
  137. // padding-bottom: 5px;
  138. margin-bottom: 5px;
  139. // font-size: 18px;
  140. font-weight: bold;
  141. display: -webkit-box;
  142. word-break: break-all;
  143. text-overflow: ellipsis;
  144. overflow: hidden;
  145. -webkit-box-orient: vertical;
  146. -webkit-line-clamp: 2;
  147. /*设置 需要显示的行数*/
  148. .title {
  149. font-weight: bold;
  150. }
  151. }
  152. .col {
  153. position: relative;
  154. margin-bottom: 10rpx;
  155. color: #999999;
  156. padding-right: 40px;
  157. // font-size: 14px;
  158. width: 100%;
  159. display: -webkit-box;
  160. word-break: break-all;
  161. text-overflow: ellipsis;
  162. overflow: hidden;
  163. -webkit-box-orient: vertical;
  164. -webkit-line-clamp: 2;
  165. /*设置 需要显示的行数*/
  166. text {
  167. color: #333333;
  168. }
  169. }
  170. .tag {
  171. display: flex;
  172. }
  173. }
  174. // background-image: url(http://43.139.158.220:5007/img/static/resource/jqr.png);
  175. }
  176. .creator {
  177. display: flex;
  178. // padding: 10px 30px;
  179. padding: 30rpx 20rpx;
  180. background-color: #ffffff;
  181. align-items: center;
  182. margin-top: 30px;
  183. margin-bottom: 20rpx;
  184. border-radius: 10px;
  185. image {
  186. width: 96rpx;
  187. height: 96rpx;
  188. border-radius: 50%;
  189. margin-right: 20rpx;
  190. }
  191. .creName {
  192. font-weight: bold;
  193. }
  194. }
  195. .member {
  196. background-color: #ffffff;
  197. margin-top: 20rpx;
  198. padding: 30rpx;
  199. border-radius: 10px;
  200. margin-bottom: 30rpx;
  201. .memberTop {
  202. display: flex;
  203. justify-content: space-between;
  204. margin-bottom: 10px;
  205. }
  206. .pers {
  207. display: flex;
  208. justify-content: space-between;
  209. align-items: center;
  210. .per {
  211. // display: inline-block;
  212. display: flex;
  213. flex-direction: column;
  214. // justify-content: center;
  215. align-items: center;
  216. image {
  217. width: 72rpx;
  218. height: 72rpx;
  219. border-radius: 50%;
  220. }
  221. .perName {
  222. // font-size: 14px;
  223. text-align: center;
  224. }
  225. }
  226. }
  227. }
  228. .btnBlock {
  229. position: fixed;
  230. bottom: 0;
  231. width: 750rpx;
  232. background-color: #ffffff;
  233. // padding: 20px 0;
  234. padding: 2vh 0;
  235. .btn {
  236. width: 432rpx;
  237. height: 88rpx;
  238. font-weight: 500;
  239. display: flex;
  240. justify-content: center;
  241. align-items: center;
  242. margin: auto;
  243. background-color: #0056a8;
  244. color: #ffffff;
  245. }
  246. }
  247. }
  248. </style>