mineActive.vue 7.2 KB

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