mineSubscribe.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. <template>
  2. <view class="content">
  3. <statusBar :item="navBarData"></statusBar>
  4. <view class="" style="width: 750rpx;height: 60px;">
  5. <view class="activeTitle">
  6. <view class="left" @click="phoneLogin" :class="current==0?active:test">
  7. <text>教研室活动</text>
  8. <view :class="current==0?yun:test"></view>
  9. </view>
  10. <view class="right" @click="accountLogin" :class="current==1?active:test">
  11. <text class="zw-font">特色活动</text>
  12. <view :class="current==1?yun:test"></view>
  13. </view>
  14. </view>
  15. </view>
  16. <swiper class="scroll-view-height" @change="swipeIndex" :current="current" :duration="300">
  17. <swiper-item>
  18. <scroll-view scroll-y="true" style="height: 80vh;">
  19. <view class="activeClass">
  20. <view class="classBox" @click="gotoWeb(index)" v-for="(item,index) in classList" :key="index">
  21. <view class="classLeft">
  22. <view class="class_Img">
  23. <image :src="classList[index].img" mode="aspectFill"></image>
  24. </view>
  25. <view class="class_Text">
  26. <view class="text_Title">
  27. <text class="manage">类型</text>
  28. <text>{{ item.className }}</text>
  29. </view>
  30. <view class="text_Intro">
  31. <text>{{ item.intro }}</text>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="classright">
  36. <!-- <image src="../../static/mine/Union.png" mode="aspectFill"></image> -->
  37. <image src="../../static/mine/Union.png" mode="aspectFill"></image>
  38. </view>
  39. </view>
  40. </view>
  41. </scroll-view>
  42. </swiper-item>
  43. <swiper-item>
  44. <scroll-view scroll-y="true" style="height: 80vh;">
  45. <view class="activeClass">
  46. <view class="classBox" @click="gotoWeb_2(index)" v-for="(item,index) in activeList" :key="index">
  47. <view class="classLeft">
  48. <view class="class_Img">
  49. <image :src="activeList[index].img" mode="aspectFill"></image>
  50. </view>
  51. <view class="class_Text">
  52. <view class="text_Title">
  53. <text class="manage">类型</text>
  54. <text>{{ item.className }}</text>
  55. </view>
  56. <view class="text_Intro">
  57. <text>{{ item.intro }}</text>
  58. </view>
  59. </view>
  60. </view>
  61. <view class="classright">
  62. <image src="http://43.139.158.220:5007/img/static/mine/Union.png" mode=""></image>
  63. </view>
  64. </view>
  65. </view>
  66. </scroll-view>
  67. </swiper-item>
  68. </swiper>
  69. </view>
  70. </template>
  71. <script>
  72. export default {
  73. data() {
  74. return {
  75. navBarData: {
  76. title: '我的订阅',
  77. btn: 1
  78. },
  79. current: 0, //切换
  80. aaa: `calc(100vh-60vh)`,
  81. navheight: this.navheight, //导航栏高度
  82. active: 'active', //类名
  83. test: 'test',
  84. yun: 'yun',
  85. classList: [{
  86. img: "http://43.139.158.220:5007/img/static/img/1695656271245-image.png",
  87. className: "丽湖职教双创教育国际虚拟教研室启动大会暨双创教育国际论坛圆满举行",
  88. intro: "丽湖职教双创教育国际虚拟教研室为立足全国,辐射海外的国际化教研室,围绕创新创业教育的人才培养与课程建设开展深度研究。教研室以贯彻落实立德树人根本任务,通过加强跨专业、跨校、跨地域的教研交流,推动高校协同打造国际化的精品教学资",
  89. },
  90. {
  91. img: "http://43.139.158.220:5007/img/static/img/img1.png",
  92. className: "丽湖职教双创教育国际虚拟教研室2023年常规教研活动安排",
  93. intro: "丽湖职教双创教育国际虚拟教研室为立足全国,辐射海外的国际化教研室,围绕创新创业教育的人才培养与课程建设开展深度研究。教研室以贯彻落实立德树人根本任务,通过加强跨专业、跨校、跨地域的教研交流,推动高校协同打造国际化的精品教学资",
  94. },
  95. {
  96. img: "http://43.139.158.220:5007/img/static/img/img3.png",
  97. className: "产教融合情境下的双创通识课程建设 | 丽湖职教双创教育国际虚拟教研室常规教研活动第2期顺利举行",
  98. intro: "【图片】为提升职业院校双创课程建设水平,促进双创课程的改革与发展,丽湖职教双创教育国际虚拟教研室于3月29日组织举办了以“产教融合情境下的双创通识课程建设”为主题的第2期线上教研活动,来自全国各职业院校的60多位教师参会。本",
  99. },
  100. {
  101. img: "http://43.139.158.220:5007/img/static/yym/83b48be81d4ed9c93908737496f2a54.png",
  102. className: "丽湖职教双创教育国际虚拟教研室 • 常规教研活动 第9期",
  103. intro: "丽湖职教双创教育国际虚拟教研室 • 常规教研活动 第9期:主题为创新创业在线课程建设与运营。【图片】【图片】【图片】【图片】【图片】"
  104. },
  105. ],
  106. activeList: [{
  107. img: "http://43.139.158.220:5007/img/static/img/img1.png",
  108. count: "17",
  109. price: "188",
  110. className: "丽湖职教双创教育国际虚拟教研室2023年常规教研活动安排",
  111. intro: "丽湖职教双创教育国际虚拟教研室为立足全国,辐射海外的国际化教研室,围绕创新创业教育的人才培养与课程建设开展深度研究。教研室以贯彻落实立德树人根本任务,通过加强跨专业、跨校、跨地域的教研交流,推动高校协同打造国际化的精品教学资",
  112. },
  113. {
  114. img: "http://43.139.158.220:5007/img/static/img/img2.png",
  115. count: "6",
  116. price: "188",
  117. className: "赛创融合、协同育人—高职院校双创大赛赛事组织| 丽湖职教双创教育国际虚拟教研室常规教研活动第3期顺利举",
  118. intro: " 为全面落实双创教育“以赛促教、以赛促学、以赛促创”,提升学校双创大赛的组织效果和参赛成绩,促进更多教育成果落地,实现赛创融合育人的目标,丽湖职教双创教育国际虚拟教研室于4月26日组织举办了第3期线上教研活动,活动主题为“赛",
  119. },
  120. {
  121. img: "http://43.139.158.220:5007/img/static/img/img3.png",
  122. count: "1",
  123. price: "188",
  124. className: "产教融合情境下的双创通识课程建设 | 丽湖职教双创教育国际虚拟教研室常规教研活动第2期顺利举行",
  125. intro: "【图片】为提升职业院校双创课程建设水平,促进双创课程的改革与发展,丽湖职教双创教育国际虚拟教研室于3月29日组织举办了以“产教融合情境下的双创通识课程建设”为主题的第2期线上教研活动,来自全国各职业院校的60多位教师参会。本",
  126. },
  127. {
  128. img: "http://43.139.158.220:5007/img/static/img/img4.png",
  129. count: "0",
  130. price: "188",
  131. className: "打造双创“金课” | 丽湖职教双创教育国际虚拟教研室常规教研活动第1期顺利举行",
  132. intro: "为推动高职院校双创课程建设,打造更多的双创精品课程和金课,丽湖职教双创教育国际虚拟教研室于2月22日组织举办了以“如何打造高职双创金课”为主题的第1期教研活动,来自全国各高职院校的80多位教师参会。本次活动由",
  133. },
  134. ],
  135. };
  136. },
  137. computed: {
  138. dynamicStyle() {
  139. return {
  140. height: `calc(100vh - 10px)`
  141. };
  142. }
  143. },
  144. methods: {
  145. swipeIndex(index) {
  146. this.current = index.detail.current;
  147. },
  148. phoneLogin() {
  149. this.current = 0
  150. },
  151. accountLogin() {
  152. this.current = 1
  153. },
  154. gotoWeb(index) {
  155. const urls = [
  156. "https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1181",
  157. "https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1183",
  158. "https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1210",
  159. "https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1234",
  160. ];
  161. if (index >= 0 && index < urls.length) {
  162. const url = urls[index];
  163. uni.navigateTo({
  164. url: "/pages/skipone/skipone?url=" + encodeURIComponent(url),
  165. });
  166. }
  167. },
  168. gotoWeb_2(index) {
  169. const urls = [
  170. "https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1183",
  171. "https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1211",
  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. </script>
  185. <style lang="scss">
  186. .content {
  187. height: 100vh;
  188. width: 750rpx;
  189. background-color: #ffffff;
  190. .activeTitle {
  191. position: fixed;
  192. z-index: 9;
  193. width: 100%;
  194. height: 60px;
  195. background-color: white;
  196. border-top: 1px solid lightgray;
  197. display: flex;
  198. justify-content: center;
  199. padding: 0 30px;
  200. font-size: 34rpx;
  201. .test {
  202. // height: ;
  203. }
  204. .active {
  205. position: relative;
  206. font-weight: bold;
  207. .yun {
  208. width: 80rpx;
  209. height: 0rpx;
  210. position: absolute;
  211. left: 50%;
  212. top: 65%;
  213. transform: translate(-50%, -50%);
  214. box-shadow: 0px 0px 10px 2px #4a97f2;
  215. }
  216. }
  217. .left {
  218. width: 50%;
  219. height: 100%;
  220. display: flex;
  221. justify-content: center;
  222. align-items: center;
  223. }
  224. .right {
  225. width: 50%;
  226. height: 100%;
  227. display: flex;
  228. justify-content: center;
  229. align-items: center;
  230. }
  231. }
  232. .scroll-view-height {
  233. // height: 200vmin;
  234. height: 80vh;
  235. // height: auto;
  236. .activeClass {
  237. width: 100%;
  238. // height: auto;
  239. .classBox {
  240. display: flex;
  241. justify-content: space-between;
  242. padding: 0 47rpx;
  243. background-color: #fff;
  244. height: 144rpx;
  245. .classLeft {
  246. display: flex;
  247. height: 100%;
  248. .class_Img {
  249. display: flex;
  250. align-items: center;
  251. flex-grow: 1;
  252. image {
  253. width: 80rpx;
  254. height: 80rpx;
  255. border-radius: 10rpx;
  256. }
  257. }
  258. .class_Text {
  259. display: flex;
  260. justify-content: center;
  261. flex-grow: 2;
  262. flex-direction: column;
  263. margin-left: 20rpx;
  264. .text_Title {
  265. display: flex;
  266. margin-bottom: 6px;
  267. align-items: center;
  268. text {
  269. &:last-child {
  270. width: 220px;
  271. color: #000;
  272. font-size: 28rpx;
  273. font-weight: 600;
  274. display: -webkit-box;
  275. word-break: break-all;
  276. text-overflow: ellipsis;
  277. overflow: hidden;
  278. -webkit-box-orient: vertical;
  279. -webkit-line-clamp: 1;
  280. /*设置 需要显示的行数*/
  281. }
  282. &.manage {
  283. // border: 1px #00b2b6 solid;
  284. // font-size: 10px;
  285. // display: flex;
  286. // white-space: nowrap;
  287. // justify-content: center;
  288. // align-items: center;
  289. // padding: 1px 6px;
  290. // border-radius: 3px;
  291. // margin-right: 10rpx;
  292. // color: #00b2b6;
  293. // margin-left: 6px;
  294. // font-weight: 600;
  295. border: 1px #00b2b6 solid;
  296. font-size: 20rpx;
  297. width: 64rpx;
  298. display: flex;
  299. height: 32rpx;
  300. white-space: nowrap;
  301. justify-content: center;
  302. align-items: center;
  303. // padding: 4px 12px 4px 12px;
  304. border-radius: 5rpx;
  305. margin-right: 10rpx;
  306. color: #00b2b6;
  307. }
  308. }
  309. }
  310. .text_Intro {
  311. display: flex;
  312. text {
  313. font-size: 24rpx;
  314. font-weight: 400;
  315. color: rgb(191, 191, 191);
  316. width: 90%;
  317. letter-spacing: 2rpx;
  318. display: -webkit-box;
  319. word-break: break-all;
  320. text-overflow: ellipsis;
  321. overflow: hidden;
  322. -webkit-box-orient: vertical;
  323. -webkit-line-clamp: 1;
  324. /*设置 需要显示的行数*/
  325. // margin-left: 6px;
  326. }
  327. }
  328. }
  329. }
  330. .classright {
  331. display: flex;
  332. height: 100%;
  333. align-items: center;
  334. image {
  335. width: 38rpx;
  336. height: 42rpx;
  337. }
  338. }
  339. }
  340. }
  341. }
  342. }
  343. </style>