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.

457 lines
9.4 KiB

3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months 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">
  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">交卷</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. </script>
  110. <style lang="scss" scoped>
  111. uni-page-body {
  112. width: 100%;
  113. height: 100%;
  114. }
  115. html {
  116. width: 100vh;
  117. height: 100vw;
  118. -webkit-transform: rotate(90deg);
  119. -webkit-transform-origin: 50vw 50vw;
  120. transform: rotate(90deg);
  121. transform-origin: 50vw 50vw;
  122. }
  123. image {
  124. display: block;
  125. width: 100%;
  126. height: 100%;
  127. }
  128. .imgView {
  129. position: relative;
  130. background: none;
  131. // max-width: 80%;
  132. // padding: 50px;
  133. .closeIcon {
  134. position: absolute;
  135. color: #fff;
  136. top: 40rpx;
  137. left: 40rpx;
  138. z-index: 99;
  139. background-color: #333;
  140. border-radius: 50%;
  141. }
  142. .img {
  143. // width: calc(100vh - 200rpx);
  144. // height: calc(100vw - 100rpx);
  145. width: 750rpx;
  146. height: 750rpx;
  147. }
  148. }
  149. .content {
  150. padding: 30rpx 30rpx 0rpx 30rpx;
  151. width: 100%;
  152. height: 100%;
  153. display: flex;
  154. flex-direction: column;
  155. background-color: #F7FBFE;
  156. font-size: 20rpx;
  157. // display: flex;
  158. .h3 {
  159. position: absolute;
  160. top: -16rpx;
  161. left: 0;
  162. width: 100%;
  163. text-align: center;
  164. color: $themC;
  165. }
  166. .row {
  167. width: 100%;
  168. display: flex;
  169. .userInfoBox {
  170. width: 140rpx;
  171. // height: 408rpx;
  172. // background-color: pink;
  173. display: flex;
  174. flex-direction: column;
  175. .examNo {
  176. width: 100%;
  177. height: 60rpx;
  178. background: #FFFFFF;
  179. border: 1px solid #F0F0F0;
  180. position: relative;
  181. .card {
  182. line-height: 70rpx;
  183. text-align: center;
  184. padding-left: 20rpx;
  185. }
  186. .back {
  187. position: absolute;
  188. left: -20rpx;
  189. top: 50%;
  190. transform: translateY(-50%);
  191. width: 40rpx;
  192. height: 40rpx;
  193. background: #fff;
  194. border-radius: 50%;
  195. display: flex;
  196. align-items: center;
  197. justify-content: center;
  198. u-icon {
  199. }
  200. }
  201. }
  202. .user {
  203. // position: relative;
  204. flex: 1;
  205. height: 0;
  206. padding: 10rpx 0 0 0rpx;
  207. .h3 {
  208. }
  209. .card {
  210. padding-left: 15rpx;
  211. position: relative;
  212. background: #FFFFFF;
  213. border: 1px solid #F0F0F0;
  214. height: 100%;
  215. .avatar {
  216. width: 90rpx;
  217. height: 90rpx;
  218. border-radius: 50%;
  219. overflow: hidden;
  220. margin-top: 36rpx;
  221. margin-bottom: 20rpx;
  222. img {
  223. }
  224. }
  225. .txt {
  226. margin: 10px 0;
  227. font-size: 18rpx;
  228. }
  229. }
  230. }
  231. }
  232. .examConBox {
  233. width: 0;
  234. flex: 1;
  235. display: flex;
  236. // height: 408rpx;
  237. padding-left: 20rpx;
  238. .leftBox {
  239. flex: 2;
  240. background-color: #fff;
  241. position: relative;
  242. display: flex;
  243. flex-direction: column;
  244. .h3 {
  245. left: 40rpx;
  246. text-align: left;
  247. }
  248. .questionTxt {
  249. padding: 30rpx;
  250. flex: 1;
  251. line-height: 2em;
  252. .txt {
  253. }
  254. }
  255. .answer.flex-b {
  256. height: 60rpx;
  257. border-top: 1px solid #F0F0F0;
  258. padding-left: 20rpx;
  259. .lab {
  260. }
  261. .rightSelect {
  262. .lab {
  263. }
  264. .optio {
  265. padding-left: 20rpx;
  266. .optionItem {
  267. width: 38rpx;
  268. height: 38rpx;
  269. border: 1px solid #F0F0F0;
  270. font-size: 18rpx;
  271. color: #333;
  272. text-align: center;
  273. line-height: 38rpx;
  274. margin-right: 20rpx;
  275. &.active {
  276. color: #fff;
  277. background-color: $themC;
  278. }
  279. }
  280. }
  281. }
  282. }
  283. }
  284. .rightBox {
  285. flex: 1;
  286. background-color: #fff;
  287. table {
  288. display: table;
  289. border-collapse: collapse;
  290. border-spacing: 0px;
  291. table-layout: fixed;
  292. td, th {
  293. width: 9.09%;
  294. // text-overflow: ellipsis;
  295. overflow: hidden;
  296. white-space: nowrap;
  297. }
  298. // border-color: gray;
  299. }
  300. .ansItem {
  301. font-size: 24rpx;
  302. text-align: center;
  303. border-bottom: 1px solid #E1DFDF;
  304. border-right: 1px solid #E1DFDF;
  305. color: green;
  306. &.green {
  307. color: green;
  308. }
  309. &.red {
  310. color: red;
  311. }
  312. }
  313. .blueItem {
  314. background-color: $themC;
  315. color: #fff;
  316. text-align: center;
  317. font-size: 24rpx;
  318. &.br {
  319. border-right: 1px solid #fff;
  320. &:last-child {
  321. border: none;
  322. }
  323. }
  324. &.bb {
  325. border-top: 1px solid #fff;
  326. // &:last-child {
  327. // border: none;
  328. // }
  329. }
  330. }
  331. }
  332. }
  333. &.row1 {
  334. flex: 4;
  335. }
  336. &.row2 {
  337. height: 100rpx;
  338. padding: 20rpx 0;
  339. .timeBox {
  340. width: 140rpx;
  341. height: 100%;
  342. background-color: #fff;
  343. border: 1px solid #F0F0F0;
  344. position: relative;
  345. .h3 {
  346. font-weight: 400;
  347. }
  348. .time {
  349. font-weight: bold;
  350. font-size: 24rpx;
  351. color: #333333;
  352. line-height: 60rpx;
  353. text-align: center;
  354. }
  355. }
  356. .leftTpsBox {
  357. padding-left: 20rpx;
  358. flex: 2;
  359. position: relative;
  360. .card {
  361. background-color: #fff;
  362. height: 100%;
  363. }
  364. .h3 {
  365. text-align: left;
  366. left: 40rpx;
  367. }
  368. .txt {
  369. padding: 14rpx 20rpx 0 20rpx;
  370. }
  371. }
  372. .rightBtnBox {
  373. flex: 1;
  374. padding-left: 20rpx;
  375. display: flex;
  376. // justify-content: space-between;
  377. justify-content: flex-end;
  378. .btn {
  379. width: 123rpx;
  380. // padding: 0 24rpx;
  381. margin-left: 20rpx;
  382. text-align: center;
  383. font-size: 24rpx;
  384. height: 60rpx;
  385. line-height: 60rpx;
  386. background: #F4F4F4;
  387. border: 1px solid #E1DFDF;
  388. line-height: 60rpx;
  389. background: #F4F4F4;
  390. }
  391. }
  392. }
  393. }
  394. .picBox {
  395. width: 100%;
  396. flex: 2;
  397. background-color: #fff;
  398. border: 1px solid #F0F0F0;
  399. padding: 20rpx;
  400. position: relative;
  401. .h3 {
  402. text-align: left;
  403. left: 40rpx;
  404. }
  405. .imgBox {
  406. width: 650px;
  407. // max-height: 163rpx;
  408. // background-color: skyblue;
  409. height: 100%;
  410. overflow: hidden;
  411. margin: 0 auto;
  412. }
  413. }
  414. }
  415. </style>