You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

460 lines
9.6 KiB

1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
  1. <template>
  2. <view class="content" id="brushQuestions">
  3. <view class="row row1">
  4. <view class="userInfoBox">
  5. <view class="examNo">
  6. <view class="h3">洛阳学车</view>
  7. <view class="card">第01号台</view>
  8. <view class="back" @click="goBack">
  9. <u-icon name="arrow-left" size="16"></u-icon>
  10. </view>
  11. </view>
  12. <view class="user">
  13. <view class="card">
  14. <view class="h3">考生信息</view>
  15. <view class="avatar">
  16. <image src="@/static/logo.png" mode=""></image>
  17. </view>
  18. <view class="txt">姓名大乔</view>
  19. <view class="txt">性别</view>
  20. <view class="txt">类型小车</view>
  21. <view class="txt">科目科目一</view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="examConBox">
  26. <view class="leftBox">
  27. <view class="h3">考试题目</view>
  28. <view class="questionTxt">
  29. <view class="txt">32.如图所示驾驶机动车遇到这种情况以下做法正确的是</view>
  30. <view class="txt">A:减速慢行</view>
  31. <view class="txt">B:减速慢行</view>
  32. <view class="txt">C:减速慢行</view>
  33. <view class="txt">D:减速慢行</view>
  34. </view>
  35. <view class="answer flex-b">
  36. <view class="lab">您的答案</view>
  37. <view class="rightSelect flex">
  38. <view class="lab">选项</view>
  39. <view class="optio flex">
  40. <view class="optionItem">A</view>
  41. <view class="optionItem">B</view>
  42. <view class="optionItem active">C</view>
  43. <view class="optionItem">D</view>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="rightBox">
  49. <!-- 右边盒子 -->
  50. <table style="width: 100%;height: 100%;">
  51. <tr>
  52. <th class="blueItem br">题目</th>
  53. <th v-for="(item,index) in 10" class="blueItem br">{{index+1}}</th>
  54. </tr>
  55. <tr v-for="(item,index) in 10">
  56. <td class="blueItem bb">{{index+1}}</td>
  57. <td v-for="(item2,index2) in 10" class="ansItem">{{ item2 }}</td>
  58. </tr>
  59. </table>
  60. </view>
  61. </view>
  62. </view>
  63. <view class="row row2">
  64. <view class="timeBox">
  65. <view class="h3">考试时间</view>
  66. <view class="time">1510</view>
  67. </view>
  68. <view class="leftTpsBox">
  69. <view class="card">
  70. <view class="h3">操作提示</view>
  71. <view class="txt">本题为单选题请在备选答案中选择一个你认为正确的答案</view>
  72. </view>
  73. </view>
  74. <view class="rightBtnBox">
  75. <view class="btn hui">上一题</view>
  76. <view class="btn hui">下一题</view>
  77. <view class="btn" @click="$goPage('/pages/exercises/examResults/examResults')">交卷</view>
  78. </view>
  79. </view>
  80. <view class="picBox">
  81. <view class="h3">考题图片</view>
  82. <view class="imgBox">
  83. <image src="https://lyjp-bucket-main.oss-cn-beijing.aliyuncs.com/adf614ab07f86aebb0b7b3492e8ae500907389f08d238f49665e7ac47efd4bde.jpg" @click="previewImg" mode="aspectFit"></image>
  84. </view>
  85. <u-popup :show="show" mode="center" :closeable="true" @close="show=false" bgColor="transparent">
  86. <view class="imgView">
  87. <!-- <view class="closeIcon" @click="show=false">
  88. <u-icon name="close-circle" color="#fff" size="28"></u-icon>
  89. </view> -->
  90. <view class="img">
  91. <image src="https://lyjp-bucket-main.oss-cn-beijing.aliyuncs.com/adf614ab07f86aebb0b7b3492e8ae500907389f08d238f49665e7ac47efd4bde.jpg" mode="aspectFit"></image>
  92. </view>
  93. </view>
  94. </u-popup>
  95. </view>
  96. </view>
  97. </template>
  98. <script setup>
  99. import { detectOrient } from '@/utils/utils.js'
  100. import { ref, onMounted, nextTick } from 'vue'
  101. const currentNav = ref('1')
  102. const show = ref(false)
  103. onMounted(()=>{
  104. detectOrient('#brushQuestions')
  105. })
  106. function previewImg() {
  107. show.value = true
  108. }
  109. function goBack() {
  110. console.log('返回吧')
  111. uni.navigateBack()
  112. }
  113. </script>
  114. <style lang="scss" scoped>
  115. uni-page-body {
  116. width: 100%;
  117. height: 100%;
  118. }
  119. html {
  120. width: 100vh;
  121. height: 100vw;
  122. -webkit-transform: rotate(90deg);
  123. -webkit-transform-origin: 50vw 50vw;
  124. transform: rotate(90deg);
  125. transform-origin: 50vw 50vw;
  126. }
  127. image {
  128. display: block;
  129. width: 100%;
  130. height: 100%;
  131. }
  132. .imgView {
  133. position: relative;
  134. background: none;
  135. // max-width: 80%;
  136. // padding: 50px;
  137. .closeIcon {
  138. position: absolute;
  139. color: #fff;
  140. top: 40rpx;
  141. left: 40rpx;
  142. z-index: 99;
  143. background-color: #333;
  144. border-radius: 50%;
  145. }
  146. .img {
  147. // width: calc(100vh - 200rpx);
  148. // height: calc(100vw - 100rpx);
  149. width: 750rpx;
  150. height: 750rpx;
  151. }
  152. }
  153. .content {
  154. padding: 30rpx 30rpx 0rpx 30rpx;
  155. width: 100%;
  156. height: 100%;
  157. display: flex;
  158. flex-direction: column;
  159. background-color: #F7FBFE;
  160. font-size: 20rpx;
  161. // display: flex;
  162. .h3 {
  163. position: absolute;
  164. top: -16rpx;
  165. left: 0;
  166. width: 100%;
  167. text-align: center;
  168. color: $themC;
  169. }
  170. .row {
  171. width: 100%;
  172. display: flex;
  173. .userInfoBox {
  174. width: 140rpx;
  175. // height: 408rpx;
  176. // background-color: pink;
  177. display: flex;
  178. flex-direction: column;
  179. .examNo {
  180. width: 100%;
  181. height: 60rpx;
  182. background: #FFFFFF;
  183. border: 1px solid #F0F0F0;
  184. position: relative;
  185. .card {
  186. line-height: 70rpx;
  187. text-align: center;
  188. padding-left: 20rpx;
  189. }
  190. .back {
  191. position: absolute;
  192. left: -20rpx;
  193. top: 50%;
  194. transform: translateY(-50%);
  195. width: 40rpx;
  196. height: 40rpx;
  197. background: #fff;
  198. border-radius: 50%;
  199. display: flex;
  200. align-items: center;
  201. justify-content: center;
  202. u-icon {
  203. }
  204. }
  205. }
  206. .user {
  207. // position: relative;
  208. flex: 1;
  209. height: 0;
  210. padding: 10rpx 0 0 0rpx;
  211. .h3 {
  212. }
  213. .card {
  214. padding-left: 15rpx;
  215. position: relative;
  216. background: #FFFFFF;
  217. border: 1px solid #F0F0F0;
  218. height: 100%;
  219. .avatar {
  220. width: 90rpx;
  221. height: 90rpx;
  222. border-radius: 50%;
  223. overflow: hidden;
  224. margin-top: 36rpx;
  225. margin-bottom: 20rpx;
  226. img {
  227. }
  228. }
  229. .txt {
  230. margin: 10px 0;
  231. font-size: 18rpx;
  232. }
  233. }
  234. }
  235. }
  236. .examConBox {
  237. width: 0;
  238. flex: 1;
  239. display: flex;
  240. // height: 408rpx;
  241. padding-left: 20rpx;
  242. .leftBox {
  243. flex: 2;
  244. background-color: #fff;
  245. position: relative;
  246. display: flex;
  247. flex-direction: column;
  248. .h3 {
  249. left: 40rpx;
  250. text-align: left;
  251. }
  252. .questionTxt {
  253. padding: 30rpx;
  254. flex: 1;
  255. line-height: 2em;
  256. .txt {
  257. }
  258. }
  259. .answer.flex-b {
  260. height: 60rpx;
  261. border-top: 1px solid #F0F0F0;
  262. padding-left: 20rpx;
  263. .lab {
  264. }
  265. .rightSelect {
  266. .lab {
  267. }
  268. .optio {
  269. padding-left: 20rpx;
  270. .optionItem {
  271. width: 38rpx;
  272. height: 38rpx;
  273. border: 1px solid #F0F0F0;
  274. font-size: 18rpx;
  275. color: #333;
  276. text-align: center;
  277. line-height: 38rpx;
  278. margin-right: 20rpx;
  279. &.active {
  280. color: #fff;
  281. background-color: $themC;
  282. }
  283. }
  284. }
  285. }
  286. }
  287. }
  288. .rightBox {
  289. flex: 1;
  290. background-color: #fff;
  291. table {
  292. display: table;
  293. border-collapse: collapse;
  294. border-spacing: 0px;
  295. table-layout: fixed;
  296. td, th {
  297. width: 9.09%;
  298. // text-overflow: ellipsis;
  299. overflow: hidden;
  300. white-space: nowrap;
  301. }
  302. // border-color: gray;
  303. }
  304. .ansItem {
  305. font-size: 24rpx;
  306. text-align: center;
  307. border-bottom: 1px solid #E1DFDF;
  308. border-right: 1px solid #E1DFDF;
  309. color: green;
  310. &.green {
  311. color: green;
  312. }
  313. &.red {
  314. color: red;
  315. }
  316. }
  317. .blueItem {
  318. background-color: $themC;
  319. color: #fff;
  320. text-align: center;
  321. font-size: 24rpx;
  322. &.br {
  323. border-right: 1px solid #fff;
  324. &:last-child {
  325. border: none;
  326. }
  327. }
  328. &.bb {
  329. border-top: 1px solid #fff;
  330. // &:last-child {
  331. // border: none;
  332. // }
  333. }
  334. }
  335. }
  336. }
  337. &.row1 {
  338. flex: 4;
  339. }
  340. &.row2 {
  341. height: 100rpx;
  342. padding: 20rpx 0;
  343. .timeBox {
  344. width: 140rpx;
  345. height: 100%;
  346. background-color: #fff;
  347. border: 1px solid #F0F0F0;
  348. position: relative;
  349. .h3 {
  350. font-weight: 400;
  351. }
  352. .time {
  353. font-weight: bold;
  354. font-size: 24rpx;
  355. color: #333333;
  356. line-height: 60rpx;
  357. text-align: center;
  358. }
  359. }
  360. .leftTpsBox {
  361. padding-left: 20rpx;
  362. flex: 2;
  363. position: relative;
  364. .card {
  365. background-color: #fff;
  366. height: 100%;
  367. }
  368. .h3 {
  369. text-align: left;
  370. left: 40rpx;
  371. }
  372. .txt {
  373. padding: 14rpx 20rpx 0 20rpx;
  374. }
  375. }
  376. .rightBtnBox {
  377. flex: 1;
  378. padding-left: 20rpx;
  379. display: flex;
  380. // justify-content: space-between;
  381. justify-content: flex-end;
  382. .btn {
  383. width: 123rpx;
  384. // padding: 0 24rpx;
  385. margin-left: 20rpx;
  386. text-align: center;
  387. font-size: 24rpx;
  388. height: 60rpx;
  389. line-height: 60rpx;
  390. background: #F4F4F4;
  391. border: 1px solid #E1DFDF;
  392. line-height: 60rpx;
  393. background: #F4F4F4;
  394. }
  395. }
  396. }
  397. }
  398. .picBox {
  399. width: 100%;
  400. flex: 2;
  401. background-color: #fff;
  402. border: 1px solid #F0F0F0;
  403. padding: 20rpx;
  404. position: relative;
  405. .h3 {
  406. text-align: left;
  407. left: 40rpx;
  408. }
  409. .imgBox {
  410. width: 650px;
  411. // max-height: 163rpx;
  412. // background-color: skyblue;
  413. height: 100%;
  414. overflow: hidden;
  415. margin: 0 auto;
  416. }
  417. }
  418. }
  419. </style>