index.vue 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  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
  7. src="http://43.139.158.220:5007/img/static/yym/Rectangle25.png"
  8. mode="aspectFill"
  9. @click="gotoHome"
  10. >
  11. </image>
  12. </view>
  13. <viewX-Case class="mid">
  14. <template #title>
  15. <view class="title three-font">专题教研活动</view>
  16. </template>
  17. <template #lookMore>
  18. <view class="lookMore fz-font" @click="gotoActivity">查看更多</view>
  19. </template>
  20. <template #activeBlock>
  21. <view
  22. class="activeData"
  23. @click="gotoActivityDetail(index)"
  24. v-for="(item, index) in activeList"
  25. :key="index"
  26. >
  27. <image :src="item.img" mode="aspectFill"></image>
  28. <view class="activeTit sBtn-font" style="font-weight: bold">
  29. {{ item.className }}
  30. </view>
  31. <view class="numData">
  32. <view class="proNum bqZ-font">{{ item.count }} 人报名</view>
  33. <view class="price num-font">
  34. <text class="fz-font">¥</text>299</view
  35. >
  36. </view>
  37. <button class="btn sBtn-font" @click.stop="gotoHd(index)">
  38. 立即报名
  39. </button>
  40. </view>
  41. </template>
  42. </viewX-Case>
  43. <viewX-Case>
  44. <template #title>
  45. <view class="title three-font">推荐课程</view>
  46. </template>
  47. <template #lookMore>
  48. <view class="lookMore fz-font" @click="teachmore">查看更多</view>
  49. </template>
  50. <template #teaching>
  51. <teaching-case
  52. v-for="(item, index) in classList"
  53. :key="index"
  54. :classList="item"
  55. :indexId="index"
  56. ></teaching-case>
  57. </template>
  58. </viewX-Case>
  59. <view class="" style="height: 30rpx; width: 100%"> </view>
  60. </view>
  61. </template>
  62. <script>
  63. export default {
  64. data() {
  65. return {
  66. title: "Hello",
  67. navBarData: {
  68. title: "首页", //导航栏标题
  69. btn: 0, //是否显示返回按钮 0不显示 1 显示
  70. },
  71. activeList: [
  72. {
  73. img: "http://43.139.158.220:5007/img/static/img/1695656271245-image.png",
  74. count: "3842",
  75. className:
  76. "丽湖职教双创教育国际虚拟教研室启动大会暨双创教育国际论坛圆满举行",
  77. intro:
  78. "丽湖职教双创教育国际虚拟教研室为立足全国,辐射海外的国际化教研室,围绕创新创业教育的人才培养与课程建设开展深度研究。教研室以贯彻落实立德树人根本任务,通过加强跨专业、跨校、跨地域的教研交流,推动高校协同打造国际化的精品教学资",
  79. },
  80. {
  81. img: "http://43.139.158.220:5007/img/static/img/img1.png",
  82. count: "3842",
  83. className: "丽湖职教双创教育国际虚拟教研室2023年常规教研活动安排",
  84. intro:
  85. "为深入贯彻落实立德树人根本任务,提升教师教学育人能力,增强教师将现代信息技术与教育教学深度融合的能力,加强跨专业、跨校、跨地域的双创教研交流,推动职教创新创业教育改革纵深发展,由深圳职业技术学院创新创业学院、联合国教科文组织...",
  86. },
  87. {
  88. img: "http://43.139.158.220:5007/img/static/img/img3.png",
  89. count: "3842",
  90. className:
  91. "【图片】为提升职业院校双创课程建设水平,促进双创课程的改革与发展,丽湖职教双创教育国际虚拟教研室于3月29日组织举办了以“产教融合情境下的双创通识课程建设”为主题的第2期线上教研活动,来自全国各职业院校的60多位教师参会。本",
  92. },
  93. ],
  94. classList: [
  95. {
  96. img: "http://43.139.158.220:5007/img/static/img/jiaoxueship.jpg",
  97. className: "教学视频",
  98. intro: "课程简介:丽湖职教双创教育国际虚拟教研室教学视频",
  99. },
  100. {
  101. img: "http://43.139.158.220:5007/img/static/img/jiaoxuedagang.jpg",
  102. className: "教学大纲",
  103. intro: "课程简介:丽湖职教双创教育国际虚拟教研室教学大纲",
  104. },
  105. {
  106. img: "http://43.139.158.220:5007/img/static/img/peiyangfangan.jpg",
  107. className: "培养方案",
  108. intro: "课程简介:丽湖职教双创教育国际虚拟教研室培养方案",
  109. },
  110. {
  111. img: "http://43.139.158.220:5007/img/static/img/xitishiti.jpg",
  112. className: "习题试题",
  113. intro: "课程简介:丽湖职教双创教育国际虚拟教研室习题试题",
  114. },
  115. ],
  116. };
  117. },
  118. onLoad() {},
  119. methods: {
  120. teachmore() {
  121. const value = uni.getStorageSync("login");
  122. if (value == 0) {
  123. uni.navigateTo({
  124. url: "/pages/login/login",
  125. });
  126. } else {
  127. uni.navigateTo({
  128. url: "/pages/teachingList/teachingList",
  129. });
  130. }
  131. },
  132. gotoTeDetail() {
  133. const value = uni.getStorageSync("login");
  134. if (value == 0) {
  135. uni.navigateTo({
  136. url: "/pages/login/login",
  137. });
  138. } else {
  139. uni.navigateTo({
  140. url: "/pages/teachingDetail/teachingDetail",
  141. });
  142. }
  143. },
  144. gotoActivity() {
  145. const value = uni.getStorageSync("login");
  146. if (value == 0) {
  147. uni.navigateTo({
  148. url: "/pages/login/login",
  149. });
  150. } else {
  151. uni.navigateTo({
  152. url: "/pages/activityList/activityList",
  153. });
  154. }
  155. },
  156. gotoActivityDetail(index) {
  157. const value = uni.getStorageSync("login");
  158. if (value == 0) {
  159. uni.navigateTo({
  160. url: "/pages/login/login",
  161. });
  162. } else {
  163. const urls = [
  164. "https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1181",
  165. "https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1183",
  166. "https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1210",
  167. ];
  168. if (index >= 0 && index < urls.length) {
  169. const url = urls[index];
  170. uni.navigateTo({
  171. url: "/pages/skipone/skipone?url=" + encodeURIComponent(url),
  172. });
  173. }
  174. }
  175. },
  176. gotoHd(index) {
  177. const value = uni.getStorageSync("login");
  178. if (value == 0) {
  179. console.log(11);
  180. uni.navigateTo({
  181. url: "/pages/login/login",
  182. });
  183. } else {
  184. const urls = [
  185. "https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1181",
  186. "https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1183",
  187. "https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1210",
  188. ];
  189. if (index >= 0 && index < urls.length) {
  190. const url = urls[index];
  191. uni.navigateTo({
  192. url: "/pages/skipone/skipone?url=" + encodeURIComponent(url),
  193. });
  194. }
  195. }
  196. },
  197. gotoHome() {
  198. // const web = this.classList[this.current];
  199. const url = "https://mp.weixin.qq.com/s/QZEGcvBn3aW7aHirMFLBQA";
  200. uni.navigateTo({
  201. url: "/pages/skipone/skipone?url=" + encodeURIComponent(url),
  202. });
  203. },
  204. },
  205. };
  206. </script>
  207. <style lang="scss" scoped>
  208. .content {
  209. // background-color: ;
  210. // background-color: #f0f2f5;
  211. .top {
  212. width: 750rpx;
  213. height: 288rpx;
  214. display: flex;
  215. margin-bottom: 20rpx;
  216. align-items: center;
  217. background-color: #fff;
  218. justify-content: center;
  219. image {
  220. height: 246rpx;
  221. width: 690rpx;
  222. border-radius: 12rpx;
  223. }
  224. }
  225. .mid {
  226. margin: 10px 0;
  227. height: 498rpx;
  228. .activeData {
  229. width: 290rpx;
  230. display: inline-block;
  231. padding-right: 20rpx;
  232. image {
  233. width: 100%;
  234. height: 80px;
  235. border-radius: 10px;
  236. margin-bottom: 10rpx;
  237. }
  238. .activeTit {
  239. // font-weight: 600;
  240. height: 64rpx;
  241. white-space: normal;
  242. /*隐藏溢出*/
  243. /*当文本溢出包含元素时显示省略符号来代表被修剪的文本*/
  244. /*规定段落中的文本不进行换行*/
  245. letter-spacing: 2rpx;
  246. display: -webkit-box;
  247. word-break: break-all;
  248. text-overflow: ellipsis;
  249. overflow: hidden;
  250. -webkit-box-orient: vertical;
  251. -webkit-line-clamp: 2;
  252. /*设置 需要显示的行数*/
  253. }
  254. .numData {
  255. display: flex;
  256. justify-content: space-between;
  257. align-items: baseline;
  258. // padding: 10rpx 0;
  259. .proNum {
  260. color: #999999;
  261. // font-size: 14px;
  262. }
  263. .price {
  264. color: #f68717;
  265. // font-size: 18px;
  266. }
  267. }
  268. .btn {
  269. border: none;
  270. padding: 0;
  271. float: left;
  272. text-align: center;
  273. // padding: 8px 24px 8px 24px;
  274. background-color: #3081e8;
  275. color: #fff;
  276. border-radius: 100rpx;
  277. width: 144rpx;
  278. height: 48rpx;
  279. line-height: 48rpx;
  280. letter-spacing: 1px;
  281. margin-bottom: 30rpx;
  282. }
  283. }
  284. .activeData:nth-child(1) {
  285. margin-left: 15px;
  286. }
  287. }
  288. .title {
  289. font-weight: bold;
  290. }
  291. .lookMore {
  292. color: #666666;
  293. // font-size: 14px;
  294. }
  295. }
  296. </style>