question_record.vue 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  1. <template>
  2. <view>
  3. <view class="tabs">
  4. <view class="tab" :class="{active:index==1}" data-index="1" @click="tab">全部题库记录</view>
  5. <view class="tab" :class="{active:index==2}" data-index="2" @click="tab">全部试卷类型</view>
  6. </view>
  7. <view class="record">
  8. <view class="item">
  9. <view class="note">真题</view>
  10. <view class="title">试卷名称可换行我也不知道最多多少个字试卷名称可换行我也不知道最多多少个字</view>
  11. <view class="desc">
  12. <view>
  13. <image src="/static/icon/wk_icon2.png"></image>
  14. <text>2021/12/20 14:30</text>
  15. </view>
  16. <view>
  17. <image src="/static/icon/wk_icon2.png"></image>
  18. <text>总共 95 题 做对 0 题</text>
  19. </view>
  20. </view>
  21. <view class="btns">
  22. <view class="btn">
  23. 重做
  24. </view>
  25. <view class="btn">
  26. 解析
  27. </view>
  28. <view class="btn">
  29. 报告
  30. </view>
  31. </view>
  32. </view>
  33. <view class="item">
  34. <view class="note">真题</view>
  35. <view class="title">试卷道最多多少个字</view>
  36. <view class="desc">
  37. <view>
  38. <image src="/static/icon/wk_icon2.png"></image>
  39. <text>2021/12/20 14:30</text>
  40. </view>
  41. <view>
  42. <image src="/static/icon/wk_icon2.png"></image>
  43. <text>总共 95 题 做对 0 题</text>
  44. </view>
  45. </view>
  46. <view class="btns">
  47. <view class="btn">
  48. 重做
  49. </view>
  50. <view class="btn">
  51. 解析
  52. </view>
  53. <view class="btn">
  54. 报告
  55. </view>
  56. </view>
  57. </view>
  58. <view class="item">
  59. <view class="note">真题</view>
  60. <view class="title">试卷名称可换行我也不知道最多多少个字试卷名称可换行我也不知道最多多少个字</view>
  61. <view class="desc">
  62. <view>
  63. <image src="/static/icon/wk_icon2.png"></image>
  64. <text>2021/12/20 14:30</text>
  65. </view>
  66. <view>
  67. <image src="/static/icon/wk_icon2.png"></image>
  68. <text>总共 95 题 做对 0 题</text>
  69. </view>
  70. </view>
  71. <view class="btns">
  72. <view class="btn">
  73. 重做
  74. </view>
  75. <view class="btn">
  76. 解析
  77. </view>
  78. <view class="btn">
  79. 报告
  80. </view>
  81. </view>
  82. </view>
  83. <view class="item">
  84. <view class="note">真题</view>
  85. <view class="title">试卷道最多多字</view>
  86. <view class="desc">
  87. <view>
  88. <image src="/static/icon/wk_icon2.png"></image>
  89. <text>2021/12/20 14:30</text>
  90. </view>
  91. <view>
  92. <image src="/static/icon/wk_icon2.png"></image>
  93. <text>总共 95 题 做对 0 题</text>
  94. </view>
  95. </view>
  96. <view class="btns">
  97. <view class="btn">
  98. 重做
  99. </view>
  100. <view class="btn">
  101. 解析
  102. </view>
  103. <view class="btn">
  104. 报告
  105. </view>
  106. </view>
  107. </view>
  108. <view class="item">
  109. <view class="note">真题</view>
  110. <view class="title">试卷名称可换行我也不知道最多多少个字试卷名称可换行我也不知道最多多少个字试卷名称可换行我也不知道最多多少个字</view>
  111. <view class="desc">
  112. <view>
  113. <image src="/static/icon/wk_icon2.png"></image>
  114. <text>2021/12/20 14:30</text>
  115. </view>
  116. <view>
  117. <image src="/static/icon/wk_icon2.png"></image>
  118. <text>总共 95 题 做对 0 题</text>
  119. </view>
  120. </view>
  121. <view class="btns">
  122. <view class="btn">
  123. 重做
  124. </view>
  125. <view class="btn">
  126. 解析
  127. </view>
  128. <view class="btn">
  129. 报告
  130. </view>
  131. </view>
  132. </view>
  133. <view class="item">
  134. <view class="note">真题</view>
  135. <view class="title">试卷道最多多少个字</view>
  136. <view class="desc">
  137. <view>
  138. <image src="/static/icon/wk_icon2.png"></image>
  139. <text>2021/12/20 14:30</text>
  140. </view>
  141. <view>
  142. <image src="/static/icon/wk_icon2.png"></image>
  143. <text>总共 95 题 做对 0 题</text>
  144. </view>
  145. </view>
  146. <view class="btns">
  147. <view class="btn">
  148. 重做
  149. </view>
  150. <view class="btn">
  151. 解析
  152. </view>
  153. <view class="btn">
  154. 报告
  155. </view>
  156. </view>
  157. </view>
  158. <view class="item">
  159. <view class="note">真题</view>
  160. <view class="title">试卷名称可换行我也不知道最多多少个字</view>
  161. <view class="desc">
  162. <view>
  163. <image src="/static/icon/wk_icon2.png"></image>
  164. <text>2021/12/20 14:30</text>
  165. </view>
  166. <view>
  167. <image src="/static/icon/wk_icon2.png"></image>
  168. <text>总共 95 题 做对 0 题</text>
  169. </view>
  170. </view>
  171. <view class="btns">
  172. <view class="btn">
  173. 重做
  174. </view>
  175. <view class="btn">
  176. 解析
  177. </view>
  178. <view class="btn">
  179. 报告
  180. </view>
  181. </view>
  182. </view>
  183. <view class="item">
  184. <view class="note">真题</view>
  185. <view class="title">试卷道最多多少个字</view>
  186. <view class="desc">
  187. <view>
  188. <image src="/static/icon/wk_icon2.png"></image>
  189. <text>2021/12/20 14:30</text>
  190. </view>
  191. <view>
  192. <image src="/static/icon/wk_icon2.png"></image>
  193. <text>总共 95 题 做对 0 题</text>
  194. </view>
  195. </view>
  196. <view class="btns">
  197. <view class="btn">
  198. 重做
  199. </view>
  200. <view class="btn">
  201. 解析
  202. </view>
  203. <view class="btn">
  204. 报告
  205. </view>
  206. </view>
  207. </view>
  208. </view>
  209. <view class="modal" v-if="index==1">
  210. <view class="content">
  211. <view class="top">全部题库记录</view>
  212. <view class="list">
  213. <view class="item">试卷名称可换行并完整显示</view>
  214. <view class="item">试卷名称可换行并完整显示</view>
  215. <view class="item">试卷名称可换行并完整显示</view>
  216. <view class="item">试卷名称单行卡片变小</view>
  217. </view>
  218. </view>
  219. <view class="modal_wrap" @click="index=0"></view>
  220. </view>
  221. <view class="modal" v-if="index==2">
  222. <view class="content">
  223. <view class="top">全部试卷类型</view>
  224. <view class="list">
  225. <view class="item">模拟卷</view>
  226. <view class="item">真题</view>
  227. <view class="item">练习</view>
  228. </view>
  229. </view>
  230. <view class="modal_wrap" @click="index=0"></view>
  231. </view>
  232. </view>
  233. </template>
  234. <script>
  235. export default {
  236. data() {
  237. return {
  238. index:0,
  239. }
  240. },
  241. onLoad(option) {
  242. // this.getDict()
  243. },
  244. onShow(){
  245. },
  246. methods: {
  247. tab(e) {
  248. this.index = e.currentTarget.dataset.index;
  249. }
  250. },
  251. }
  252. </script>
  253. <style >
  254. page {
  255. background: #EAEEF1;
  256. }
  257. </style>
  258. <style lang="scss" scope>
  259. .tabs {
  260. position:fixed;
  261. left:0;
  262. width:100%;
  263. top:0;
  264. display: flex;
  265. z-index: 10;
  266. .tab {
  267. flex:1;
  268. height: 80rpx;
  269. text-align: center;
  270. line-height: 80rpx;
  271. background: #FFFFFF;
  272. font-size: 32rpx;
  273. color: #999999;
  274. &.active {
  275. color:#333333;
  276. }
  277. }
  278. }
  279. .record {
  280. margin-top:80rpx;
  281. padding:16rpx 8rpx;
  282. -moz-column-count:2; /* Firefox */
  283. -webkit-column-count:2; /* Safari 和 Chrome */
  284. column-count:2;
  285. -moz-column-gap: 16rpx;
  286. -webkit-column-gap: 16rpx;
  287. column-gap: 16rpx;
  288. .item {
  289. margin-bottom:16rpx;
  290. -moz-page-break-inside: avoid;
  291. -webkit-column-break-inside: avoid;
  292. break-inside: avoid;
  293. background: #FFFFFF;
  294. border-radius: 16rpx;
  295. padding:65rpx 20rpx 22rpx;
  296. position: relative;
  297. overflow: hidden;
  298. .note {
  299. color:#fff;
  300. position:absolute;
  301. left:0;
  302. top:0;
  303. width: 112rpx;
  304. height: 40rpx;
  305. text-align: center;
  306. line-height: 40rpx;
  307. background: linear-gradient(0deg, #4FACFE, #007AFF);
  308. border-radius: 16rpx 0px 16rpx 0rpx;
  309. }
  310. .title {
  311. font-size: 32rpx;
  312. color: #333333;
  313. font-weight: bold;
  314. }
  315. .desc {
  316. margin-top:26rpx;
  317. view {
  318. margin:16rpx 0;
  319. image {
  320. width: 23rpx;
  321. height: 24rpx;
  322. }
  323. text {
  324. margin-left:15rpx;
  325. font-size: 24rpx;
  326. color: #999999;
  327. line-height: 36rpx;
  328. }
  329. }
  330. }
  331. .btns {
  332. margin-top:26rpx;
  333. display: flex;
  334. justify-content: space-around;
  335. .btn {
  336. width: 100rpx;
  337. height: 48rpx;
  338. line-height: 48rpx;
  339. text-align: center;
  340. color:#007AFF;
  341. background: #FFFFFF;
  342. border: 1rpx solid #007AFF;
  343. border-radius: 16rpx;
  344. }
  345. }
  346. }
  347. }
  348. .modal {
  349. position:fixed;
  350. left:0;
  351. width:100%;
  352. top:80rpx;
  353. bottom:0;
  354. .content {
  355. position: relative;
  356. z-index: 10;
  357. background:#fff;
  358. padding:8rpx 12rpx 20rpx;
  359. display: flex;
  360. flex-wrap: wrap;
  361. .top {
  362. margin:0 auto;
  363. width: 726rpx;
  364. height: 80rpx;
  365. background: #007AFF;
  366. border-radius: 16rpx;
  367. color:#fff;
  368. text-align: center;
  369. line-height: 80rpx;
  370. font-size: 32rpx;
  371. }
  372. .list {
  373. margin-top:16rpx;
  374. display: flex;
  375. flex-wrap: wrap;
  376. justify-content: space-between;
  377. .item {
  378. padding:25rpx 20rpx;
  379. width: 359rpx;
  380. background: #F5F5F5;
  381. border-radius: 16rpx;
  382. font-size: 32rpx;
  383. color: #666666;
  384. margin:8rpx 0;
  385. }
  386. }
  387. }
  388. .modal_wrap {
  389. position: absolute;
  390. left:0;
  391. width:100%;
  392. top:0;
  393. height:100%;
  394. background:rgba(0,0,0,0.3)
  395. }
  396. }
  397. </style>