mineActive.vue 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. <template>
  2. <view>
  3. <statusBar :item="navBarData"></statusBar>
  4. <view class="activeBox" v-for="(item,index) in activeList" :key="index">
  5. <view class="teaching_case">
  6. <view class="img">
  7. <!-- <image src="http://43.139.158.220:5007/img/static/activity/bg2.png" mode="aspectFill"></image> -->
  8. <image :src="activeList[index].img" mode="aspectFill"></image>
  9. </view>
  10. <view class="right" @click="gotoActivityDetail(index)">
  11. <view class="title">
  12. <view class="tag bqZ-font">类型</view>
  13. <text class="three-font" style="font-weight: 600;">{{ item.className }}</text>
  14. </view>
  15. <view class="introduce">
  16. {{ item.intro }}
  17. </view>
  18. <view class="operate">
  19. <view class="left">
  20. <view class="money fNum-font"><text class="three-font">¥</text> {{ item.price }}</view>
  21. <view class="person">已报名{{ item.count }}人</view>
  22. </view>
  23. <view class="Oright">
  24. <view class="text">查看详情</view>
  25. <view class="arrow">
  26. <image src="http://43.139.158.220:5007/img/static/mine/arrow-right-blue.png" mode="aspectFill"></image>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="" style="width: 100%;height: 50rpx;">
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. data() {
  40. return {
  41. navBarData: {
  42. title: '专题教研活动列表',
  43. btn: 1
  44. },
  45. activeList: [{
  46. img: "http://43.139.158.220:5007/img/static/img/1695656271245-image.png",
  47. count: "3842",
  48. price: "299",
  49. className: "丽湖职教双创教育国际虚拟教研室启动大会暨双创教育国际论坛圆满举行",
  50. intro: "丽湖职教双创教育国际虚拟教研室为立足全国,辐射海外的国际化教研室,围绕创新创业教育的人才培养与课程建设开展深度研究。教研室以贯彻落实立德树人根本任务,通过加强跨专业、跨校、跨地域的教研交流,推动高校协同打造国际化的精品教学资",
  51. },
  52. {
  53. img: "http://43.139.158.220:5007/img/static/img/img1.png",
  54. count: "17",
  55. price: "188",
  56. className: "丽湖职教双创教育国际虚拟教研室2023年常规教研活动安排",
  57. intro: "丽湖职教双创教育国际虚拟教研室为立足全国,辐射海外的国际化教研室,围绕创新创业教育的人才培养与课程建设开展深度研究。教研室以贯彻落实立德树人根本任务,通过加强跨专业、跨校、跨地域的教研交流,推动高校协同打造国际化的精品教学资",
  58. },
  59. {
  60. img: "http://43.139.158.220:5007/img/static/img/img3.png",
  61. count: "1",
  62. price: "188",
  63. className: "产教融合情境下的双创通识课程建设 | 丽湖职教双创教育国际虚拟教研室常规教研活动第2期顺利举行",
  64. intro: "【图片】为提升职业院校双创课程建设水平,促进双创课程的改革与发展,丽湖职教双创教育国际虚拟教研室于3月29日组织举办了以“产教融合情境下的双创通识课程建设”为主题的第2期线上教研活动,来自全国各职业院校的60多位教师参会。",
  65. },
  66. {
  67. img: "http://43.139.158.220:5007/img/static/yym/83b48be81d4ed9c93908737496f2a54.png",
  68. count: "3842",
  69. price: "299",
  70. className: "丽湖职教双创教育国际虚拟教研室 • 常规教研活动 第9期",
  71. intro:"丽湖职教双创教育国际虚拟教研室 • 常规教研活动 第9期"
  72. },
  73. ],
  74. };
  75. },
  76. methods:{
  77. gotoActivityDetail(index) {
  78. const value = uni.getStorageSync("login");
  79. if (value == 0) {
  80. uni.navigateTo({
  81. url: "/pages/login/login",
  82. });
  83. } else {
  84. const urls = [
  85. "https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1181",
  86. "https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1183",
  87. "https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1210",
  88. "https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1234",
  89. ];
  90. if (index >= 0 && index < urls.length) {
  91. const url = urls[index];
  92. uni.navigateTo({
  93. url: "/pages/skipone/skipone?url=" + encodeURIComponent(url),
  94. });
  95. }
  96. }
  97. },
  98. }
  99. }
  100. </script>
  101. <style lang="scss">
  102. .activeBox {
  103. width: 100%;
  104. background-color: #fff;
  105. padding: 10px 0;
  106. .teaching_case {
  107. display: flex;
  108. justify-content: space-between;
  109. padding: 0 15px;
  110. .img {
  111. width: 160rpx;
  112. height: 160rpx;
  113. image {
  114. width: 100%;
  115. height: 100%;
  116. border-radius: 10rpx;
  117. }
  118. }
  119. .right {
  120. padding-left: 15px;
  121. flex: 1;
  122. display: flex;
  123. flex-direction: column;
  124. // align-content: flex-end;
  125. justify-content: space-between;
  126. .title {
  127. display: flex;
  128. align-items: center;
  129. margin-bottom: 5px;
  130. .tag {
  131. border: 1px #00b2b6 solid;
  132. // font-size: 20rpx;
  133. width: 64rpx;
  134. height: 38rpx;
  135. display: flex;
  136. white-space: nowrap;
  137. justify-content: center;
  138. align-items: center;
  139. padding: 1rpx 4rpx;
  140. border-radius: 3px;
  141. margin-right: 10rpx;
  142. color: #00b2b6;
  143. }
  144. text {
  145. width: 180px;
  146. overflow: hidden;
  147. text-overflow: ellipsis;
  148. white-space: nowrap;
  149. }
  150. }
  151. .introduce {
  152. width: 230px;
  153. font-size: 28rpx;
  154. color: #a7a7a7;
  155. // margin-top: 8px;
  156. overflow: hidden;
  157. text-overflow: ellipsis;
  158. white-space: nowrap;
  159. }
  160. .operate {
  161. display: flex;
  162. justify-content: space-between;
  163. // align-items: flex-end;
  164. align-items: baseline;
  165. // margin-top: 15px;
  166. .left {
  167. display: flex;
  168. flex-direction: row;
  169. justify-content: space-between;
  170. align-items: baseline;
  171. width: 260rpx;
  172. .money {
  173. color: #FFA338;
  174. font-weight: bold;
  175. font-size: 36rpx;
  176. line-height: 20px;
  177. }
  178. .person {
  179. color: #00000099;
  180. font-size: 24rpx;
  181. // margin-left: 6px;
  182. }
  183. }
  184. .Oright {
  185. width: 80px;
  186. display: flex;
  187. justify-content: flex-start;
  188. align-items: center;
  189. // flex-direction: row;
  190. // justify-content: space-around;
  191. // align-items: flex-end;
  192. .text {
  193. font-size: 24rpx;
  194. color: #3081E8;
  195. }
  196. .arrow {
  197. display: flex;
  198. justify-content: center;
  199. margin-top: 5rpx;
  200. image {
  201. width: 32rpx;
  202. height: 32rpx;
  203. }
  204. }
  205. }
  206. }
  207. }
  208. }
  209. }
  210. </style>