index.vue 8.4 KB

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