index.vue 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. <template>
  2. <view class="content">
  3. <statusBar :item="navBarData"></statusBar>
  4. <view class="top">
  5. <!-- <image src="http://43.139.158.220:5007/img/static/logo.png" mode="aspectFill"></image> -->
  6. <image src="http://43.139.158.220:5007/img/static/yym/Rectangle25.png" mode="aspectFill"></image>
  7. </view>
  8. <viewX-Case class="mid">
  9. <template #title>
  10. <view class="title three-font">精选活动</view>
  11. </template>
  12. <template #lookMore>
  13. <view class="lookMore fz-font" @click="gotoActivity">查看更多</view>
  14. </template>
  15. <template #activeBlock>
  16. <view class="activeData" @click="gotoActivityDetail" v-for="(item,index) in activeList" :key="index">
  17. <image :src="item.img" mode="aspectFill"></image>
  18. <view class="activeTit sBtn-font" style="font-weight: bold;">
  19. {{ item.className }}
  20. </view>
  21. <view class="numData">
  22. <view class="proNum bqZ-font">{{ item.count }} 人报名</view>
  23. <view class="price num-font"> <text class="fz-font">¥</text>299</view>
  24. </view>
  25. <button class="btn sBtn-font" @click.stop="gotoHd">立即报名</button>
  26. </view>
  27. </template>
  28. </viewX-Case>
  29. <viewX-Case>
  30. <template #title>
  31. <view class="title three-font">教研室活动</view>
  32. </template>
  33. <template #lookMore>
  34. <view class="lookMore fz-font" @click="teachmore">查看更多</view>
  35. </template>
  36. <template #teaching>
  37. <teaching-case v-for="(item,index) in classList" :key="index" :classList='item'></teaching-case>
  38. </template>
  39. </viewX-Case>
  40. <view class="" style="height: 30rpx;width: 100%;">
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. export default {
  46. data() {
  47. return {
  48. title: 'Hello',
  49. navBarData: {
  50. title: '首页', //导航栏标题
  51. btn: 0 //是否显示返回按钮 0不显示 1 显示
  52. },
  53. activeList: [{
  54. img: 'http://43.139.158.220:5007/img/static/mine/img10.jpg',
  55. count: '1790',
  56. className: '创新思维开发与落地',
  57. intro: '《暂无简介》'
  58. },
  59. {
  60. img: 'http://43.139.158.220:5007/img/static/mine/img11.jpg',
  61. count: '3842',
  62. className: '创业意识与商机识别',
  63. intro: '在创新创业的大氛围下,课堂上常常强调要以项目为中心,你却苦于迟迟无法最终确定具体的项目?那么,《创业意识与商机识别》这门课程可以帮助你。'
  64. },
  65. {
  66. img: 'http://43.139.158.220:5007/img/static/mine/img12.png',
  67. count: '701',
  68. className: '机电(机械)技术创新创业实务',
  69. intro: '该课程是针对机电、机械行业、企业用户的一门关于创新创业的培训类课程。在国家“大众创业、万众创新”的新时代背景下,创新是引领一个企业发展的第一动力。为推动科技不断进步、促进企业快速健康发展,开发了《机电(机械)技术创新创业实务》课程。计划为36学时,理论讲授30学时,实践案例分析和操作6学时'
  70. },
  71. {
  72. img: 'http://43.139.158.220:5007/img/static/mine/img13.jpg',
  73. count: '823',
  74. className: '打造黄金创始人团队',
  75. intro: '如何摆正自己的工作态度和位置,清醒认识到自己的职责,学会选人用人,努力提高领导力和执行力,带好团队,并最终成为一个卓越的管理者呢?本课程提供给你建议'
  76. },
  77. {
  78. img: 'http://43.139.158.220:5007/img/static/mine/img14.jpg',
  79. count: '2287',
  80. className: '创业素质测评与团队组建',
  81. intro: '本课程采取案例分析、研讨、游戏的方式使同学们的聪明才智能够有发挥的空间,话语权能够得到满足。通过完成团队任务的方式使大家逐渐与陌生人建立良好沟通关系,掌握沟通技巧,使自己具有使命感、懂得感恩。'
  82. },
  83. ],
  84. classList: [{
  85. img: 'http://43.139.158.220:5007/img/static/mine/img1.jpg',
  86. className: '创业者管理能力训练基础',
  87. intro: '《创业者管理能力训练基础》通过管理学、营销学、财税理论、创业基础知识及创业操作实务的提炼,以专题化的形式面向高职类所有专业的学生。本课程一共有三大部分、七个专题。分别为:第一部分,一般管理者能力训练基础,四个专题,即自我管理能力训练、团队管理能力训练、社会关系管理能力训练与团队建设能力训练。第二部分,创业者重要能力的领悟与训练,二个专题,即成功创业者的智力要素、成功创业者商务能力的领悟与训练。第三部分是咖啡厅实践训练。'
  88. },
  89. {
  90. img: 'http://43.139.158.220:5007/img/static/mine/img2.jpg',
  91. className: '创业融资实务',
  92. intro: '本课程是创业管理专业、创业班的核心课程,根据专业培养目标的定位,主要面向创投机构服务专员岗位,培养该岗位应具备的相关创业融资知识和技能。课程主要采用“做中学”体验式的设计理念,引入真实项目进行“理实一体实战训练”。'
  93. },
  94. {
  95. img: 'http://43.139.158.220:5007/img/static/mine/img3.jpg',
  96. className: '创业基础',
  97. intro: '《创业基础》是一门面向高等院校学生与社会青年开设一门必修的基础理论和易于实际操作的创业综合基础课程。旨激发学员创业激情,增强创业意识,培养学员具备创业基础知识与基本能力,为大学生自主创业、拓展就业及开创事业等提供系统的理论与实践支持。是顺应新时代社会经济与高校教育发展的要求,以市场变化及其趋势为前提,从人才培养机理与中小企业成长规律的角度出发,结合教师多年创业教育与企业家人才培养成功经验,运用企业现代管理新观念,让学员掌握中小企业开办与管理全过程的理论和实务的一门创业综合基础课程。'
  98. },
  99. {
  100. img: 'http://43.139.158.220:5007/img/static/mine/img4.jpg',
  101. className: '打造无敌商业计划书',
  102. intro: '暂无简介'
  103. },
  104. {
  105. img: 'http://43.139.158.220:5007/img/static/mine/img5.jpg',
  106. className: '创新思维',
  107. intro: '将创新思维意识与方法技能双元结合,综合微课学习与创造力实践训练融合演进,实现在线学习与配套教材混合驱动。'
  108. },
  109. ]
  110. }
  111. },
  112. onLoad() {
  113. },
  114. methods: {
  115. teachmore() {
  116. uni.navigateTo({
  117. url: "/pages/teachingList/teachingList"
  118. })
  119. },
  120. gotoTeDetail() {
  121. uni.navigateTo({
  122. url: "/pages/teachingDetail/teachingDetail"
  123. })
  124. },
  125. gotoActivity() {
  126. uni.navigateTo({
  127. url: "/pages/activityList/activityList"
  128. })
  129. },
  130. gotoActivityDetail() {
  131. uni.navigateTo({
  132. url: '/pages/activityDetail/activityDetail'
  133. })
  134. },
  135. gotoHd() {
  136. uni.navigateTo({
  137. url: '/pages/hd/hd'
  138. })
  139. },
  140. }
  141. }
  142. </script>
  143. <style lang="scss" scoped>
  144. .content {
  145. // background-color: ;
  146. // background-color: #f0f2f5;
  147. .top {
  148. width: 750rpx;
  149. height: 288rpx;
  150. display: flex;
  151. margin-bottom: 20rpx;
  152. align-items: center;
  153. background-color: #fff;
  154. justify-content: center;
  155. image {
  156. height: 246rpx;
  157. width: 690rpx;
  158. border-radius: 12rpx;
  159. }
  160. }
  161. .mid {
  162. margin: 10px 0;
  163. height: 498rpx;
  164. .activeData {
  165. width: 290rpx;
  166. display: inline-block;
  167. padding-right: 20rpx;
  168. image {
  169. width: 100%;
  170. height: 80px;
  171. border-radius: 10px;
  172. margin-bottom: 10rpx;
  173. }
  174. .activeTit {
  175. // font-weight: 600;
  176. height: 64rpx;
  177. white-space: normal;
  178. /*隐藏溢出*/
  179. /*当文本溢出包含元素时显示省略符号来代表被修剪的文本*/
  180. /*规定段落中的文本不进行换行*/
  181. letter-spacing: 2rpx;
  182. display: -webkit-box;
  183. word-break: break-all;
  184. text-overflow: ellipsis;
  185. overflow: hidden;
  186. -webkit-box-orient: vertical;
  187. -webkit-line-clamp: 2;
  188. /*设置 需要显示的行数*/
  189. }
  190. .numData {
  191. display: flex;
  192. justify-content: space-between;
  193. align-items: baseline;
  194. // padding: 10rpx 0;
  195. .proNum {
  196. color: #999999;
  197. // font-size: 14px;
  198. }
  199. .price {
  200. color: #f68717;
  201. // font-size: 18px;
  202. }
  203. }
  204. .btn {
  205. border: none;
  206. padding: 0;
  207. float: left;
  208. text-align: center;
  209. // padding: 8px 24px 8px 24px;
  210. background-color: #3081e8;
  211. color: #fff;
  212. border-radius: 100rpx;
  213. width: 144rpx;
  214. height: 48rpx;
  215. line-height: 48rpx;
  216. letter-spacing: 1px;
  217. margin-bottom: 30rpx;
  218. }
  219. }
  220. .activeData:nth-child(1) {
  221. margin-left: 15px;
  222. }
  223. }
  224. .title {
  225. font-weight: bold;
  226. }
  227. .lookMore {
  228. color: #666666;
  229. // font-size: 14px;
  230. }
  231. }
  232. </style>