question_bank.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <template>
  2. <view style="padding: 32rpx;">
  3. <nav-bar title="我的题库通"></nav-bar>
  4. <navigator hover-class="none" url="/pages2/bank/my_question">
  5. <view class="my_question">
  6. <view class="flex">
  7. <view class="text">我的题库<u-icon name="arrow-right"></u-icon></view>
  8. </view>
  9. <image src="/static/questionBank.png" class="my_bg"></image>
  10. </view>
  11. </navigator>
  12. <view class="bottom">
  13. <navigator hover-class="none" url="/pages2/subject/collect">
  14. <view class="item collect">
  15. <view class="text">收藏集<u-icon name="arrow-right"></u-icon></view>
  16. <image class="img" src="/static/questionBank_collect.png"></image>
  17. </view>
  18. </navigator>
  19. <view class="item list">
  20. <navigator hover-class="none" url="/pages2/bank/question_record">
  21. <view class="list-in">
  22. <image class="img" src="/static/questionBank_record.png" ></image>
  23. <view class="text">
  24. 做题记录 <u-icon name="arrow-right"></u-icon>
  25. </view>
  26. </view>
  27. </navigator>
  28. <navigator hover-class="none" url="/pages2/subject/wrong">
  29. <view class="list-in">
  30. <image class="img" src="/static/questionBank_wrong.png"></image>
  31. <view class="text">
  32. 错题集 <u-icon name="arrow-right"></u-icon>
  33. </view>
  34. </view>
  35. </navigator>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. import { websocket } from '@/common/socket.js';
  42. export default {
  43. data() {
  44. return {
  45. list:[
  46. 1,2,3
  47. ]
  48. }
  49. },
  50. onLoad(option) {
  51. websocket.sendMsg('doQuestion')
  52. // this.getDict()
  53. },
  54. onUnload() {
  55. websocket.sendMsg('delAction')
  56. },
  57. onShow(){
  58. },
  59. methods: {
  60. },
  61. }
  62. </script>
  63. <style >
  64. page {
  65. background: #fff;
  66. }
  67. </style>
  68. <style lang="scss" scope>
  69. .my_question {
  70. position:relative;
  71. display: flex;
  72. width: 686rpx;
  73. height: 240rpx;
  74. border-radius: 24rpx;
  75. padding:0 40rpx;
  76. .my_bg {
  77. position:absolute;
  78. left:0;
  79. top:0;
  80. width:100%;
  81. height:100%;
  82. }
  83. .flex {
  84. position: relative;
  85. z-index: 10;
  86. .text {
  87. padding-top:32rpx;
  88. font-size: 32rpx;
  89. font-family: PingFang SC;
  90. font-weight: bold;
  91. color: #FFFFFF;
  92. }
  93. }
  94. }
  95. .bottom {
  96. margin-top:16rpx;
  97. display: flex;
  98. justify-content: space-between;
  99. .item {
  100. width: 335rpx;
  101. &.collect {
  102. position: relative;
  103. font-size: 32rpx;
  104. color: #FFFFFF;
  105. height: 240rpx;
  106. border-radius: 24rpx;
  107. padding:32rpx;
  108. .text {
  109. position:relative;
  110. z-index: 10;
  111. font-size: 32rpx;
  112. font-weight: bold;
  113. color: #FFFFFF;
  114. }
  115. .img {
  116. position:absolute;
  117. left:0;
  118. top:0;
  119. width:100%;
  120. height:100%;
  121. }
  122. }
  123. &.list {
  124. .list-in {
  125. position:relative;
  126. width: 335rpx;
  127. height: 112rpx;
  128. background: #007AFF;
  129. border-radius: 24rpx;
  130. display: flex;
  131. align-items: center;
  132. font-size: 32rpx;
  133. color: #fff;
  134. &:first-of-type {
  135. margin-bottom:16rpx;
  136. }
  137. .text {
  138. padding-left:91rpx;
  139. position:relative;
  140. z-index: 10;
  141. font-size: 32rpx;
  142. font-weight: bold;
  143. color: #FFFFFF;
  144. }
  145. .img {
  146. position:absolute;
  147. left:0;
  148. top:0;
  149. width:100%;
  150. height:100%;
  151. }
  152. }
  153. }
  154. }
  155. }
  156. </style>