activityPage.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  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"> 查看更多 </view>
  10. </template>
  11. <template #activeBlock>
  12. <view class="activeData" v-for="(item, index) in liveList" :key="index" @click="gotoAnnoun(index)">
  13. <!-- <image src="http://43.139.158.220:5007/img/static/activity/bg1.png" mode="aspectFill"></image> -->
  14. <image :src="liveList[index].img" mode="aspectFill"></image>
  15. <view class="liveBroadcast">
  16. <view class="title">
  17. <view class="tag bqZ-font">类型</view>
  18. <text three-font>{{ item.className }}</text>
  19. </view>
  20. <view class="operate">
  21. <view class="left">
  22. <view class="img">
  23. <image :src="liveList[index].imgName" mode="aspectFill"></image>
  24. </view>
  25. <view class="user fwb-font">{{ item.name }}</view>
  26. </view>
  27. <view class="collection">
  28. <!-- <view class="" style="display: flex;margin-right: 10rpx;align-items: center;"> -->
  29. <view class="img">
  30. <image src="http://43.139.158.220:5007/img/static/yym/Vector (Stroke) (2).png"
  31. mode="aspectFill"></image>
  32. </view>
  33. <text class="fz-font">收藏</text>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </template>
  39. </viewX-Case>
  40. <viewX-Case style="margin-top: 10px">
  41. <template #title>
  42. <view class="title three-font">常规教研活动</view>
  43. </template>
  44. <template #lookMore>
  45. <view class="lookMore fz-font" @click="lookMore">查看更多</view>
  46. </template>
  47. <template #activeBlock>
  48. <!-- <activity-case v-for="i in 10" :key="i"></activity-case> -->
  49. <teaching-case v-for="(item, index) in activeList" :item="actData" :key="index" :activeList="item"
  50. :indexId="index"></teaching-case>
  51. </template>
  52. </viewX-Case>
  53. <!-- <uni-fab ref="fab"
  54. :pattern="pattern"
  55. :horizontal="horizontal"
  56. :vertical="vertical"
  57. :direction="direction"
  58. buttonColor="#0056a8"
  59. @fabClick="fabClick" /> -->
  60. <view class="" style="height: 30rpx; width: 100%"> </view>
  61. <view class="qiu" @click="fabClick">
  62. <image src="/static/yym/jia.png" mode="aspectFill"></image>
  63. </view>
  64. </view>
  65. </template>
  66. <script>
  67. export default {
  68. data() {
  69. return {
  70. navBarData: {
  71. title: "活动", //导航栏标题
  72. btn: 0, //是否显示返回按钮 0不显示 1 显示
  73. },
  74. actData: {
  75. btn: 1,
  76. },
  77. title: "uni-fab",
  78. liveList: [{
  79. img: "http://43.139.158.220:5007/img/static/yym/83b48be81d4ed9c93908737496f2a54.png",
  80. className: "丽湖职教双创教育国际虚拟教研室 • 常规教研活动 第9期",
  81. imgName: "http://43.139.158.220:5007/img/static/activity/Name1.png",
  82. name: "李芳",
  83. },
  84. {
  85. img: "http://43.139.158.220:5007/img/static/img/1695656271245-image.png",
  86. className: "丽湖职教双创教育国际虚拟教研室启动大会暨双创教育国际论坛圆满举行",
  87. imgName: "http://43.139.158.220:5007/img/static/activity/Name3.png",
  88. name: "郑秀",
  89. },
  90. {
  91. img: "http://43.139.158.220:5007/img/static/img/img3.png",
  92. className: "产教融合情境下的双创通识课程建设 | 丽湖职教双创教育国际虚拟教研室常规教研活动第2期顺利举行",
  93. imgName: "http://43.139.158.220:5007/img/static/activity/Name3.png",
  94. name: "杨哲旗",
  95. },
  96. {
  97. img: "http://43.139.158.220:5007/img/static/img/img4.png",
  98. className: "打造双创“金课” | 丽湖职教双创教育国际虚拟教研室常规教研活动第1期顺利举行",
  99. imgName: "http://43.139.158.220:5007/img/static/activity/Name2.png",
  100. name: "杨广",
  101. },
  102. ],
  103. activeList: [{
  104. img: "http://43.139.158.220:5007/img/static/img/img1.png",
  105. count: "17",
  106. price: "188",
  107. className: "丽湖职教双创教育国际虚拟教研室2023年常规教研活动安排",
  108. intro: "丽湖职教双创教育国际虚拟教研室为立足全国,辐射海外的国际化教研室,围绕创新创业教育的人才培养与课程建设开展深度研究。教研室以贯彻落实立德树人根本任务,通过加强跨专业、跨校、跨地域的教研交流,推动高校协同打造国际化的精品教学资",
  109. },
  110. {
  111. img: "http://43.139.158.220:5007/img/static/img/img2.png",
  112. count: "6",
  113. price: "188",
  114. className: "赛创融合、协同育人—高职院校双创大赛赛事组织| 丽湖职教双创教育国际虚拟教研室常规教研活动第3期顺利举",
  115. intro: " 为全面落实双创教育“以赛促教、以赛促学、以赛促创”,提升学校双创大赛的组织效果和参赛成绩,促进更多教育成果落地,实现赛创融合育人的目标,丽湖职教双创教育国际虚拟教研室于4月26日组织举办了第3期线上教研活动,活动主题为“赛",
  116. },
  117. {
  118. img: "http://43.139.158.220:5007/img/static/img/img3.png",
  119. count: "1",
  120. price: "188",
  121. className: "产教融合情境下的双创通识课程建设 | 丽湖职教双创教育国际虚拟教研室常规教研活动第2期顺利举行",
  122. intro: "【图片】为提升职业院校双创课程建设水平,促进双创课程的改革与发展,丽湖职教双创教育国际虚拟教研室于3月29日组织举办了以“产教融合情境下的双创通识课程建设”为主题的第2期线上教研活动,来自全国各职业院校的60多位教师参会。本",
  123. },
  124. {
  125. img: "http://43.139.158.220:5007/img/static/img/img4.png",
  126. count: "0",
  127. price: "188",
  128. className: "打造双创“金课” | 丽湖职教双创教育国际虚拟教研室常规教研活动第1期顺利举行",
  129. intro: "为推动高职院校双创课程建设,打造更多的双创精品课程和金课,丽湖职教双创教育国际虚拟教研室于2月22日组织举办了以“如何打造高职双创金课”为主题的第1期教研活动,来自全国各高职院校的80多位教师参会。本次活动由",
  130. },
  131. ],
  132. };
  133. },
  134. methods: {
  135. lookMore() {
  136. const value = uni.getStorageSync("login");
  137. if (value == 0) {
  138. uni.navigateTo({
  139. url: "/pages/login/login",
  140. });
  141. } else {
  142. uni.navigateTo({
  143. url: "/pages/activityList/activityList",
  144. });
  145. }
  146. },
  147. fabClick() {
  148. const value = uni.getStorageSync("login");
  149. if (value == 0) {
  150. uni.navigateTo({
  151. url: "/pages/login/login",
  152. });
  153. } else {
  154. uni.navigateTo({
  155. url: "/pages/publish/publish",
  156. });
  157. }
  158. },
  159. gotoAnnoun(index) {
  160. const value = uni.getStorageSync("login");
  161. if (value == 0) {
  162. uni.navigateTo({
  163. url: "/pages/login/login",
  164. });
  165. } else {
  166. const urls = [
  167. "https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1234",
  168. "https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1181",
  169. "https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1210",
  170. "https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1209",
  171. ];
  172. if (index >= 0 && index < urls.length) {
  173. const url = urls[index];
  174. uni.navigateTo({
  175. url: "/pages/skipone/skipone?url=" + encodeURIComponent(url),
  176. });
  177. }
  178. }
  179. },
  180. onChange: function(e) {
  181. this.old.x = e.detail.x;
  182. this.old.y = e.detail.y;
  183. },
  184. },
  185. };
  186. </script>
  187. <style lang="scss">
  188. .activity {
  189. .qiu {
  190. width: 90rpx;
  191. height: 90rpx;
  192. position: fixed;
  193. z-index: 19;
  194. right: 30rpx;
  195. bottom: 10vh;
  196. border-radius: 50%;
  197. background-color: rgba(0, 86, 168, 1);
  198. display: flex;
  199. justify-content: center;
  200. align-items: center;
  201. image {
  202. position: absolute;
  203. width: 36rpx;
  204. height: 36rpx;
  205. }
  206. }
  207. .mid {
  208. // margin:20px 0;
  209. .activeData {
  210. width: 460rpx;
  211. display: inline-block;
  212. margin-right: 20px;
  213. image {
  214. width: 100%;
  215. height: 120px;
  216. border-radius: 10px;
  217. margin-bottom: 10px;
  218. }
  219. .liveBroadcast {
  220. flex: 1;
  221. width: 460rpx;
  222. display: flex;
  223. flex-direction: column;
  224. align-content: flex-end;
  225. .title {
  226. display: flex;
  227. align-items: center;
  228. margin-bottom: 10rpx;
  229. .tag {
  230. // border: 1px #00b2b6 solid;
  231. // // font-size: 12px;
  232. // width: 64rpx;
  233. // height: 38rpx;
  234. // display: flex;
  235. // white-space: nowrap;
  236. // justify-content: center;
  237. // align-items: center;
  238. // // padding: 2px 4px;
  239. // padding: 1rpx 4rpx;
  240. // border-radius: 3px;
  241. // margin-right: 10rpx;
  242. // color: #00b2b6;
  243. border: 1px #00b2b6 solid;
  244. font-size: 20rpx;
  245. width: 64rpx;
  246. display: flex;
  247. height: 34rpx;
  248. white-space: nowrap;
  249. justify-content: center;
  250. align-items: center;
  251. // padding: 4px 12px 4px 12px;
  252. border-radius: 5rpx;
  253. margin-right: 10rpx;
  254. color: #00b2b6;
  255. }
  256. text {
  257. // display: -webkit-box;//对象作为弹性伸缩盒子模型显示
  258. // overflow: hidden;//溢出隐藏
  259. // -webkit-box-orient: vertical;//设置伸缩盒子对象的子元素的排列方式
  260. // -webkit-line-clamp: 2;//设置 块元素包含的文本行数
  261. overflow: hidden;
  262. text-overflow: ellipsis;
  263. white-space: nowrap;
  264. }
  265. }
  266. .operate {
  267. display: flex;
  268. justify-content: space-between;
  269. align-items: center;
  270. padding: 20rpx 0;
  271. color: #666666;
  272. // margin-bottom: 20rpx;
  273. // padding-bottom: 20rpx;
  274. .left {
  275. display: flex;
  276. align-items: center;
  277. .img {
  278. width: 48rpx;
  279. height: 48rpx;
  280. margin-right: 10rpx;
  281. image {
  282. width: 100%;
  283. height: 100%;
  284. border-radius: 50%;
  285. }
  286. }
  287. .user {}
  288. }
  289. .collection {
  290. display: flex;
  291. align-items: center;
  292. justify-content: space-between;
  293. width: 88rpx;
  294. height: 32rpx;
  295. position: relative;
  296. .img {
  297. position: absolute;
  298. left: 0;
  299. top: 6rpx;
  300. transform: translate(-130%, 0);
  301. }
  302. image {
  303. width: 27rpx;
  304. height: 25rpx;
  305. display: block;
  306. }
  307. // float: right;
  308. // font-size: 14px;
  309. // padding-top: 10px;
  310. }
  311. }
  312. }
  313. }
  314. .activeData:nth-child(1) {
  315. margin-left: 15px;
  316. }
  317. }
  318. .title {
  319. font-weight: bold;
  320. // color: #999999;
  321. }
  322. .lookMore {
  323. color: #666666;
  324. // font-size: 14px;
  325. }
  326. }
  327. </style>