activityPage.vue 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. <template>
  2. <view class="activity">
  3. <statusBar :item="navBarData"></statusBar>
  4. <viewX-Case class="mid">
  5. <template #title>
  6. <view class="title three-font">活动直播</view>
  7. </template>
  8. <template #lookMore>
  9. <view class="lookMore fz-font">
  10. 查看更多
  11. </view>
  12. </template>
  13. <template #activeBlock>
  14. <view class="activeData" v-for="(item,index) in liveList" :key="index">
  15. <!-- <image src="http://43.139.158.220:5007/img/static/activity/bg1.png" mode="aspectFill"></image> -->
  16. <image :src="liveList[index].img" mode="aspectFill"></image>
  17. <view class="liveBroadcast">
  18. <view class="title">
  19. <view class="tag bqZ-font">类型</view>
  20. <text three-font>{{ item.className }}</text>
  21. </view>
  22. <view class="operate">
  23. <view class="left">
  24. <view class="img">
  25. <image :src="liveList[index].imgName"></image>
  26. </view>
  27. <view class="user fwb-font">{{ item.name }}</view>
  28. </view>
  29. <view class="collection">
  30. <!-- <view class="" style="display: flex;margin-right: 10rpx;align-items: center;"> -->
  31. <view class="img">
  32. <image src="http://43.139.158.220:5007/img/static/yym/Vector (Stroke) (2).png" mode="aspectFill"></image>
  33. </view>
  34. <text class="fz-font">收藏</text>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. </viewX-Case>
  41. <viewX-Case style="margin-top: 10px;">
  42. <template #title>
  43. <view class="title three-font">活动推荐</view>
  44. </template>
  45. <template #lookMore>
  46. <view class="lookMore fz-font" @click="lookMore">查看更多</view>
  47. </template>
  48. <template #activeBlock>
  49. <!-- <activity-case v-for="i in 10" :key="i"></activity-case> -->
  50. <teaching-case v-for="(item,index) in activeList" :item="actData" :key="index"
  51. :activeList="item"></teaching-case>
  52. </template>
  53. </viewX-Case>
  54. <!-- <uni-fab ref="fab"
  55. :pattern="pattern"
  56. :horizontal="horizontal"
  57. :vertical="vertical"
  58. :direction="direction"
  59. buttonColor="#0056a8"
  60. @fabClick="fabClick" /> -->
  61. <view class="" style="height: 30rpx;width: 100%;">
  62. </view>
  63. <view class="qiu" @click="fabClick">
  64. <image src="/static/yym/jia.png" mode="aspectFill"></image>
  65. </view>
  66. </view>
  67. </template>
  68. <script>
  69. export default {
  70. data() {
  71. return {
  72. navBarData: {
  73. title: '活动', //导航栏标题
  74. btn: 0 //是否显示返回按钮 0不显示 1 显示
  75. },
  76. actData: {
  77. btn: 1
  78. },
  79. title: 'uni-fab',
  80. liveList: [{
  81. img: "http://43.139.158.220:5007/img/static/mine/img1.jpg",
  82. className: "创业者管理能力训练基础",
  83. imgName: "http://43.139.158.220:5007/img/static/activity/Name1.png",
  84. name: "李芳"
  85. },
  86. {
  87. img: "http://43.139.158.220:5007/img/static/mine/img2.jpg",
  88. className: '创业融资实务',
  89. imgName: "http://43.139.158.220:5007/img/static/activity/Name2.png",
  90. name: "郑秀"
  91. },
  92. {
  93. img: 'http://43.139.158.220:5007/img/static/mine/img3.jpg',
  94. className: '创业基础',
  95. imgName: "http://43.139.158.220:5007/img/static/activity/Name3.png",
  96. name: "杨哲旗"
  97. },
  98. {
  99. img: "http://43.139.158.220:5007/img/static/mine/img4.jpg",
  100. className: "打造无敌商业计划书",
  101. imgName: "http://43.139.158.220:5007/img/static/activity/Name2.png",
  102. name: "杨广"
  103. }
  104. ],
  105. activeList: [{
  106. img: 'http://43.139.158.220:5007/img/static/mine/img10.jpg',
  107. count: '1790',
  108. className: '创新思维开发与落地',
  109. intro: '《暂无简介》'
  110. },
  111. {
  112. img: 'http://43.139.158.220:5007/img/static/mine/img11.jpg',
  113. count: '3842',
  114. className: '创业意识与商机识别',
  115. intro: '在创新创业的大氛围下,课堂上常常强调要以项目为中心,你却苦于迟迟无法最终确定具体的项目?那么,《创业意识与商机识别》这门课程可以帮助你。'
  116. },
  117. {
  118. img: 'http://43.139.158.220:5007/img/static/mine/img12.png',
  119. count: '701',
  120. className: '机电(机械)技术创新创业实务',
  121. intro: '该课程是针对机电、机械行业、企业用户的一门关于创新创业的培训类课程。在国家“大众创业、万众创新”的新时代背景下,创新是引领一个企业发展的第一动力。为推动科技不断进步、促进企业快速健康发展,开发了《机电(机械)技术创新创业实务》课程。计划为36学时,理论讲授30学时,实践案例分析和操作6学时'
  122. },
  123. {
  124. img: 'http://43.139.158.220:5007/img/static/mine/img13.jpg',
  125. count: '823',
  126. className: '打造黄金创始人团队',
  127. intro: '如何摆正自己的工作态度和位置,清醒认识到自己的职责,学会选人用人,努力提高领导力和执行力,带好团队,并最终成为一个卓越的管理者呢?本课程提供给你建议'
  128. },
  129. {
  130. img: 'http://43.139.158.220:5007/img/static/mine/img14.jpg',
  131. count: '2287',
  132. className: '创业素质测评与团队组建',
  133. intro: '本课程采取案例分析、研讨、游戏的方式使同学们的聪明才智能够有发挥的空间,话语权能够得到满足。通过完成团队任务的方式使大家逐渐与陌生人建立良好沟通关系,掌握沟通技巧,使自己具有使命感、懂得感恩。'
  134. },
  135. ],
  136. };
  137. },
  138. methods: {
  139. lookMore() {
  140. uni.navigateTo({
  141. url: '/pages/activityList/activityList'
  142. })
  143. },
  144. fabClick() {
  145. // console.log(111);
  146. uni.navigateTo({
  147. url: '/pages/publish/publish'
  148. })
  149. },
  150. onChange: function(e) {
  151. this.old.x = e.detail.x
  152. this.old.y = e.detail.y
  153. }
  154. }
  155. }
  156. </script>
  157. <style lang="scss">
  158. .activity {
  159. .qiu {
  160. width: 90rpx;
  161. height: 90rpx;
  162. position: fixed;
  163. z-index: 19;
  164. right: 30rpx;
  165. bottom: 10vh;
  166. border-radius: 50%;
  167. background-color: rgba(0, 86, 168, 1);
  168. display: flex;
  169. justify-content: center;
  170. align-items: center;
  171. image {
  172. position: absolute;
  173. width: 36rpx;
  174. height: 36rpx;
  175. }
  176. }
  177. .mid {
  178. // margin:20px 0;
  179. .activeData {
  180. width: 460rpx;
  181. display: inline-block;
  182. margin-right: 20px;
  183. image {
  184. width: 100%;
  185. height: 120px;
  186. border-radius: 10px;
  187. margin-bottom: 10px;
  188. }
  189. .liveBroadcast {
  190. flex: 1;
  191. width: 460rpx;
  192. display: flex;
  193. flex-direction: column;
  194. align-content: flex-end;
  195. .title {
  196. display: flex;
  197. align-items: center;
  198. margin-bottom: 10rpx;
  199. .tag {
  200. // border: 1px #00b2b6 solid;
  201. // // font-size: 12px;
  202. // width: 64rpx;
  203. // height: 38rpx;
  204. // display: flex;
  205. // white-space: nowrap;
  206. // justify-content: center;
  207. // align-items: center;
  208. // // padding: 2px 4px;
  209. // padding: 1rpx 4rpx;
  210. // border-radius: 3px;
  211. // margin-right: 10rpx;
  212. // color: #00b2b6;
  213. border: 1px #00b2b6 solid;
  214. font-size: 20rpx;
  215. width: 64rpx;
  216. display: flex;
  217. height: 34rpx;
  218. white-space: nowrap;
  219. justify-content: center;
  220. align-items: center;
  221. // padding: 4px 12px 4px 12px;
  222. border-radius: 5rpx;
  223. margin-right: 10rpx;
  224. color: #00b2b6;
  225. }
  226. text {
  227. // display: -webkit-box;//对象作为弹性伸缩盒子模型显示
  228. // overflow: hidden;//溢出隐藏
  229. // -webkit-box-orient: vertical;//设置伸缩盒子对象的子元素的排列方式
  230. // -webkit-line-clamp: 2;//设置 块元素包含的文本行数
  231. overflow: hidden;
  232. text-overflow: ellipsis;
  233. white-space: nowrap;
  234. }
  235. }
  236. .operate {
  237. display: flex;
  238. justify-content: space-between;
  239. align-items: center;
  240. padding: 20rpx 0;
  241. color: #666666;
  242. // margin-bottom: 20rpx;
  243. // padding-bottom: 20rpx;
  244. .left {
  245. display: flex;
  246. align-items: center;
  247. .img {
  248. width: 48rpx;
  249. height: 48rpx;
  250. margin-right: 10rpx;
  251. image {
  252. width: 100%;
  253. height: 100%;
  254. border-radius: 50%;
  255. }
  256. }
  257. .user {}
  258. }
  259. .collection {
  260. display: flex;
  261. align-items: center;
  262. justify-content: space-between;
  263. width: 88rpx;
  264. height: 32rpx;
  265. position: relative;
  266. .img {
  267. position: absolute;
  268. left: 0;
  269. top: 6rpx;
  270. transform: translate(-130%, 0);
  271. }
  272. image {
  273. width: 27rpx;
  274. height: 25rpx;
  275. display: block;
  276. }
  277. // float: right;
  278. // font-size: 14px;
  279. // padding-top: 10px;
  280. }
  281. }
  282. }
  283. }
  284. .activeData:nth-child(1) {
  285. margin-left: 15px;
  286. }
  287. }
  288. .title {
  289. font-weight: bold;
  290. // color: #999999;
  291. }
  292. .lookMore {
  293. color: #666666;
  294. // font-size: 14px;
  295. }
  296. }
  297. </style>