index.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <template>
  2. <view class="study-center">
  3. <u-navbar
  4. :is-back="false"
  5. title="学习中心"
  6. class="navbar"
  7. :border-bottom="false"
  8. title-color="#333333"
  9. back-icon-color="#ffffff"
  10. >
  11. <view class="slot-wrap">
  12. <image
  13. src="/static/logo2.png"
  14. style="width: 178rpx; height: 31rpx; margin-left: 30rpx"
  15. ></image>
  16. </view>
  17. </u-navbar>
  18. <view class="no-course" v-if="false">
  19. <image class="img" src="/static/no-course.png" mode="widthFix"></image>
  20. <view class="title">暂无学习内容</view>
  21. <view class="title">请先购买课程/题库</view>
  22. <view class="btn" @click="goIndex">马上选课/选题</view>
  23. </view>
  24. <view class="note-list">
  25. <view class="text">继续教育-建造师-二级</view>
  26. <u-icon name="arrow-down"></u-icon>
  27. </view>
  28. <view class="note-modal">
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. import { mapGetters } from "vuex";
  34. export default {
  35. components: {},
  36. data() {
  37. return {
  38. };
  39. },
  40. onPullDownRefresh() {
  41. },
  42. onLoad(option) {
  43. },
  44. methods: {
  45. goIndex() {
  46. uni.switchTab({
  47. url:'../index/index'
  48. })
  49. }
  50. },
  51. onReachBottom() {
  52. },
  53. computed: { ...mapGetters(["userInfo"]) },
  54. };
  55. </script>
  56. <style >
  57. page {
  58. background-color: #EAEEF1;
  59. }
  60. </style>
  61. <style scoped lang="scss">
  62. .study-center {
  63. .navbar {
  64. /deep/ .u-navbar-inner {
  65. margin-right: 0 !important;
  66. }
  67. .slot-wrap {
  68. width: 100%;
  69. }
  70. }
  71. .no-course {
  72. margin: 80rpx auto 0;
  73. text-align: center;
  74. .img {
  75. width:360rpx;
  76. }
  77. .title {
  78. margin-top:10rpx;
  79. font-size: 32rpx;
  80. text-align: center;
  81. color: #999999;
  82. }
  83. .btn {
  84. margin:40rpx auto 0;
  85. width: 280rpx;
  86. text-align: center;
  87. line-height: 64rpx;
  88. color:#fff;
  89. font-size: 30rpx;
  90. height: 64rpx;
  91. background: #007AFF;
  92. border-radius: 32rpx;
  93. }
  94. }
  95. .note-list {
  96. height: 80rpx;
  97. background: #FFFFFF;
  98. display: flex;
  99. align-items: center;
  100. padding:0 32rpx;
  101. .text {
  102. flex:1;
  103. }
  104. }
  105. .note-modal {
  106. position:absolute;
  107. }
  108. .course-list {
  109. }
  110. }
  111. </style>