activityPage.vue 10 KB

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