my_learn.vue 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. <template>
  2. <view class="safeArea">
  3. <view style="width: 100%;text-align: center;position: fixed;height: 96rpx;z-index: 999;">
  4. <u-tabs :list="list" sticky :current="current" @change="change" active-color="#333" inactive-color="#999"></u-tabs>
  5. </view>
  6. <view class="learnWrap">
  7. <template v-if="current === 0">
  8. <!-- <view class="noData">您暂无相关学时审核记录哦~</view> -->
  9. <view class="learnItem" v-for="(item, index) in listData" :key="index">
  10. <view class="title">{{ item.goodsName }}</view>
  11. <view class="status">
  12. <view class="label">审核状态:</view>
  13. <view
  14. class="val"
  15. :class="item.periodStatus === -1 || item.periodStatus === 3 ? 'red' : item.periodStatus === 1 ? 'green' : item.periodStatus === 2 ? 'blue' : ''"
  16. >
  17. {{
  18. item.periodStatus === -1
  19. ? '不可审核'
  20. : item.periodStatus === 1
  21. ? '机构审核通过'
  22. : item.periodStatus === 2
  23. ? '等待审核'
  24. : item.periodStatus === 3
  25. ? '机构审核不通过'
  26. : ''
  27. }}
  28. </view>
  29. </view>
  30. <view class="tip">
  31. <view class="label">审核提示:</view>
  32. <view class="val green">您的学时还未修完,请尽快完成课程学习</view>
  33. </view>
  34. <view v-if="item.periodStatus !== 2">
  35. <u-line color="#EEEEEE" />
  36. <!-- <view class="subTitle">这是一个考试标题</view> -->
  37. <view class="btnBox"><view class="btn">课程学习</view></view>
  38. </view>
  39. </view>
  40. <!-- <view class="learnItem">
  41. <view class="title">2020年二建建筑工程管理与实补这是商品名称</view>
  42. <view class="status">
  43. <view class="label">审核状态:</view>
  44. <view class="val blue">不可审核</view>
  45. </view>
  46. <view class="tip">
  47. <view class="label">审核提示:</view>
  48. <view class="val green">您的学时还未修完,请尽快完成课程学习</view>
  49. </view>
  50. </view>
  51. <view class="learnItem">
  52. <view class="title">2020年二建建筑工程管理与实补这是商品名称</view>
  53. <view class="status">
  54. <view class="label">审核状态:</view>
  55. <view class="val green">机构审核完成</view>
  56. </view>
  57. </view>
  58. <view class="learnItem">
  59. <view class="title">2020年二建建筑工程管理与实补这是商品名称</view>
  60. <view class="status">
  61. <view class="label">审核状态:</view>
  62. <view class="val green">机构审核完成</view>
  63. </view>
  64. <u-line color="#EEEEEE" />
  65. <view class="subTitle">这是一个考试标题</view>
  66. <view class="btnBox"><view class="btn">预约考试</view></view>
  67. </view>
  68. <view class="learnItem">
  69. <view class="title">2020年二建建筑工程管理与实补这是商品名称</view>
  70. <view class="status">
  71. <view class="label">审核状态:</view>
  72. <view class="val green">机构审核完成</view>
  73. </view>
  74. <u-line color="#EEEEEE" />
  75. <view class="subTitle">这是一个考试标题</view>
  76. <view class="btnBox"><view class="btn">进入刷题</view></view>
  77. </view>
  78. <view class="learnItem">
  79. <view class="title">2020年二建建筑工程管理与实补这是商品名称</view>
  80. <view class="status">
  81. <view class="label">审核状态:</view>
  82. <view class="val green">机构审核完成</view>
  83. </view>
  84. <view class="tip">
  85. <view class="label">审核提示:</view>
  86. <view class="val">
  87. 机构已审核通过,需等待注册中心复审后即可获得继续教育学时。审核时间约15个工作日,届时请前往官网申请证书延期。
  88. <view class="link">复制官网链接</view>
  89. </view>
  90. </view>
  91. <u-line color="#EEEEEE" />
  92. <view class="btnBox"><view class="btn">课程学习</view></view>
  93. </view>
  94. <view class="learnItem">
  95. <view class="title">2020年二建建筑工程管理与实补这是商品名称</view>
  96. <view class="status">
  97. <view class="label">审核状态:</view>
  98. <view class="val red">
  99. 机构审核不通过
  100. <view class="remark">
  101. <text class="red">3节</text>
  102. 需重修
  103. </view>
  104. </view>
  105. </view>
  106. <view class="tip">
  107. <view class="label">审核提示:</view>
  108. <view class="val">请查看需重学记录,并及时重学对应课程,以免延误学时审核进度。</view>
  109. </view>
  110. <u-line color="#EEEEEE" />
  111. <view class="btnBox"><view class="btn">课程学习</view></view>
  112. </view> -->
  113. </template>
  114. <template v-if="current === 1">
  115. <!-- <view class="noData">您暂无相关学习凭证记录哦~</view> -->
  116. <view class="learnItem">
  117. <view class="title">2020年二建建筑工程管理与实补这是商品名称</view>
  118. <view class="number">
  119. <text class="label">编号:</text>
  120. GZXY123456789
  121. </view>
  122. <view class="btnBox">
  123. <view class="btn">电子照片</view>
  124. <view class="btn">下载凭证</view>
  125. </view>
  126. </view>
  127. </template>
  128. </view>
  129. </view>
  130. </template>
  131. <script>
  132. import { mapGetters } from 'vuex';
  133. export default {
  134. components: {},
  135. data() {
  136. return {
  137. current: 0,
  138. list: [
  139. {
  140. name: '学时审核'
  141. },
  142. {
  143. name: '学习凭证'
  144. }
  145. ],
  146. listData: []
  147. };
  148. },
  149. onLoad(option) {
  150. this.getInfos();
  151. },
  152. onShow() {},
  153. methods: {
  154. getInfos() {
  155. this.$api.getcourseperiodlistGoods().then(res => {
  156. if (res.data.code === 200) {
  157. this.listData = res.data.rows;
  158. }
  159. });
  160. },
  161. change(index) {
  162. this.current = index;
  163. }
  164. },
  165. onReachBottom() {},
  166. computed: { ...mapGetters(['userInfo']) }
  167. };
  168. </script>
  169. <style>
  170. page {
  171. background: #eaeef1;
  172. }
  173. </style>
  174. <style scoped lang="scss">
  175. .learnWrap {
  176. padding: 98rpx 8rpx 8rpx;
  177. }
  178. .noData {
  179. font-size: 32rpx;
  180. font-family: PingFang SC;
  181. font-weight: 500;
  182. color: #999999;
  183. margin: 160rpx auto;
  184. text-align: center;
  185. }
  186. .learnItem {
  187. background: #ffffff;
  188. border-radius: 16rpx;
  189. padding: 32rpx 32rpx 0;
  190. font-family: PingFang SC;
  191. margin-bottom: 16rpx;
  192. overflow: hidden;
  193. .red {
  194. color: #ff3b30 !important;
  195. }
  196. .blue {
  197. color: #007aff !important;
  198. }
  199. .green {
  200. color: #34c759 !important;
  201. }
  202. .title {
  203. font-size: 30rpx;
  204. font-weight: bold;
  205. color: #333333;
  206. margin-bottom: 68rpx;
  207. }
  208. .status {
  209. font-size: 24rpx;
  210. font-weight: 500;
  211. color: #666666;
  212. margin-bottom: 26rpx;
  213. display: flex;
  214. }
  215. .number {
  216. font-size: 24rpx;
  217. font-weight: 500;
  218. color: #666666;
  219. margin-bottom: 26rpx;
  220. font-size: 30rpx;
  221. font-weight: bold;
  222. font-family: PingFang SC;
  223. color: #333;
  224. .label {
  225. font-size: 24rpx;
  226. font-weight: 500;
  227. color: #666666;
  228. }
  229. }
  230. .val {
  231. font-size: 30rpx;
  232. font-weight: bold;
  233. color: #333;
  234. .remark {
  235. font-size: 24rpx;
  236. font-family: PingFang SC;
  237. font-weight: 500;
  238. color: #666666;
  239. }
  240. .link {
  241. font-size: 30rpx;
  242. font-family: PingFang SC;
  243. font-weight: 500;
  244. text-decoration: underline;
  245. color: #007aff;
  246. margin-top: 36rpx;
  247. text-decoration: underline;
  248. }
  249. }
  250. .tip {
  251. font-size: 24rpx;
  252. font-weight: 500;
  253. color: #666666;
  254. margin: 30rpx 0 27rpx;
  255. display: flex;
  256. }
  257. .label {
  258. width: 120rpx;
  259. flex-shrink: 0;
  260. margin-top: 5rpx;
  261. }
  262. .subTitle {
  263. font-size: 30rpx;
  264. font-weight: bold;
  265. color: #333333;
  266. margin: 15rpx 0 40rpx;
  267. }
  268. .btnBox {
  269. height: 88rpx;
  270. display: flex;
  271. align-items: center;
  272. justify-content: flex-end;
  273. .btn {
  274. width: 224rpx;
  275. height: 56rpx;
  276. line-height: 56rpx;
  277. text-align: center;
  278. background: #007aff;
  279. border-radius: 16rpx;
  280. font-size: 30rpx;
  281. font-family: PingFang SC;
  282. font-weight: 500;
  283. color: #ffffff;
  284. margin-left: 16rpx;
  285. }
  286. }
  287. }
  288. </style>