questionBankExplain.vue 31 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159
  1. <template>
  2. <view class="questionBank">
  3. <nav-bar title="解析"></nav-bar>
  4. <swiper
  5. class="swiper"
  6. :current="current"
  7. @change="swiperChange"
  8. >
  9. <swiper-item v-for="(bank, bankIndex) in questionList" :key="bankIndex">
  10. <view class="pageContent">
  11. <view class="pad_8 titBox">
  12. <view class="firstLetter">
  13. <view class="leftLetters">
  14. <view class="btnType">
  15. <text v-if="bank.type == 1">单选</text>
  16. <text v-if="bank.type == 2">多选</text>
  17. <text v-if="bank.type == 3">判断</text>
  18. <text v-if="bank.type == 4">案例</text>
  19. <text v-if="bank.type == 5">简答</text>
  20. </view>
  21. <text>{{ bankIndex + 1 }}/{{ questionList.length }}</text>
  22. </view>
  23. <view style="color: #666; font-size: 28rpx"></view>
  24. <view class="leftLetters"></view>
  25. </view>
  26. <view class="titles">
  27. <rich-text :nodes="bank.content"></rich-text>
  28. </view>
  29. </view>
  30. <template v-if="bank.type == 1">
  31. <view class="pad_8 titBox no-margin">
  32. <view>
  33. <view
  34. v-for="(item, index) in bank.jsonStr"
  35. :key="index"
  36. class="lisSty"
  37. >
  38. <text
  39. :class="{
  40. right:
  41. item.optionsId == bank.ques ||
  42. item.optionsId == bank.ans,
  43. wrong:
  44. item.optionsId == bank.ques && bank.ques != bank.ans,
  45. }"
  46. class="activeTI"
  47. >{{ ast[index] }}</text
  48. >
  49. <view class="flex_auto">
  50. {{ item.content }}
  51. <view v-if="item.imgUrl">
  52. <image
  53. style="width: 600rpx"
  54. mode="widthFix"
  55. :src="$method.splitImgHost(item.imgUrl)"
  56. ></image>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. <view>
  63. <view class="pad_8 answer">
  64. <view>题目答案:{{ ast[bank.ans - 1] }}</view>
  65. </view>
  66. <view class="pad_8 answerInfos">
  67. <view class="answerTitle">答案解析</view>
  68. <view class="answerContent">
  69. <rich-text :nodes="bank.analysisContent"></rich-text>
  70. </view>
  71. </view>
  72. </view>
  73. </template>
  74. <template v-if="bank.type == 2">
  75. <view class="pad_8 titBox no-margin">
  76. <view>
  77. <view
  78. v-for="(item, index) in bank.jsonStr"
  79. :key="index"
  80. class="lisSty"
  81. >
  82. <text
  83. :class="{
  84. right:
  85. bank.ques.indexOf(item.optionsId) != -1 ||
  86. bank.ans.indexOf(item.optionsId) != -1,
  87. wrong:
  88. bank.ques.indexOf(item.optionsId) != -1 &&
  89. bank.ans.indexOf(item.optionsId) == -1,
  90. }"
  91. class="activeTI"
  92. >{{ ast[index] }}</text
  93. >
  94. <view class="flex_auto">
  95. {{ item.content }}
  96. <view v-if="item.imgUrl">
  97. <image
  98. style="width: 600rpx"
  99. mode="widthFix"
  100. :src="$method.splitImgHost(item.imgUrl)"
  101. ></image>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. <view>
  108. <view class="pad_8 answer">
  109. <view
  110. >题目答案:
  111. <text
  112. :key="ansItemIndex"
  113. v-for="(ansItem, ansItemIndex) in bank.ans"
  114. >{{ ast[ansItem - 1] }}</text
  115. >
  116. </view>
  117. </view>
  118. <view class="pad_8 answerInfos">
  119. <view class="answerTitle">答案解析</view>
  120. <view class="answerContent">
  121. <rich-text :nodes="bank.analysisContent"></rich-text>
  122. </view>
  123. </view>
  124. </view>
  125. </template>
  126. <template v-if="bank.type == 3">
  127. <view class="pad_8 titBox no-margin">
  128. <view>
  129. <view
  130. v-for="(item, index) in judge"
  131. :key="index"
  132. class="lisSty"
  133. >
  134. <text
  135. :class="{
  136. right: index == bank.ques || index == bank.ans,
  137. wrong: index == bank.ques && bank.ques != bank.ans,
  138. }"
  139. class="activeTI"
  140. >{{ ast[index] }}</text
  141. >
  142. <view class="flex_auto">
  143. {{ item }}
  144. <view v-if="item.imgUrl">
  145. <image
  146. style="width: 600rpx"
  147. mode="widthFix"
  148. :src="$method.splitImgHost(item.imgUrl)"
  149. ></image>
  150. </view>
  151. </view>
  152. </view>
  153. </view>
  154. </view>
  155. <view>
  156. <view class="pad_8 answer">
  157. <view>题目答案:{{ ast[bank.ans] }}</view>
  158. </view>
  159. <view class="pad_8 answerInfos">
  160. <view class="answerTitle">答案解析</view>
  161. <view class="answerContent">
  162. <rich-text :nodes="bank.analysisContent"></rich-text>
  163. </view>
  164. </view>
  165. </view>
  166. </template>
  167. <!-- 简答题 -->
  168. <template v-if="bank.type == 5">
  169. <view class="pad_8 titBox">
  170. <view>
  171. <view class="pad_8 answerInfos">
  172. <view class="answerTitle">答案解析:</view>
  173. <view class="answerContent">
  174. <rich-text :nodes="bank.analysisContent"></rich-text>
  175. </view>
  176. </view>
  177. </view>
  178. </view>
  179. </template>
  180. <!-- 案例题 -->
  181. <template v-if="bank.type == 4">
  182. <view class="tabs">
  183. <view
  184. class="tab"
  185. :class="{ current: tabIndex == bank.current }"
  186. :key="tabIndex"
  187. v-for="(tab, tabIndex) in bank.jsonStr"
  188. @click="tabSelect(tabIndex, bankIndex)"
  189. >
  190. 问题{{ tabIndex + 1 }}
  191. </view>
  192. </view>
  193. <view
  194. v-for="(ansItem, ansIndex) in bank.jsonStr"
  195. v-if="bank.current == ansIndex"
  196. :key="ansIndex"
  197. >
  198. <template v-if="ansItem.type == 1">
  199. <view class="pad_8 titBox">
  200. <view class="leftLetters">
  201. <view class="btnType">
  202. <text>单选</text>
  203. </view>
  204. </view>
  205. <view class="titles">
  206. <rich-text :nodes="ansItem.content"></rich-text>
  207. </view>
  208. <view>
  209. <view
  210. v-for="(option, childIndex) in ansItem.optionsList"
  211. :key="childIndex"
  212. class="lisSty"
  213. >
  214. <text
  215. :class="{
  216. right:
  217. option.optionsId == bank.ques[ansIndex] ||
  218. option.optionsId == bank.ans[ansIndex],
  219. wrong:
  220. option.optionsId == bank.ques[ansIndex] &&
  221. bank.ques[ansIndex] != bank.ans[ansIndex],
  222. }"
  223. class="activeTI"
  224. >{{ ast[childIndex] }}</text
  225. >
  226. <view class="flex_auto">
  227. <rich-text :nodes="option.content"></rich-text>
  228. <view v-if="option.imgUrl">
  229. <image
  230. style="width: 600rpx"
  231. mode="widthFix"
  232. :src="$method.splitImgHost(option.imgUrl)"
  233. ></image>
  234. </view>
  235. </view>
  236. </view>
  237. </view>
  238. </view>
  239. <view>
  240. <view class="pad_8 answer">
  241. <view>题目答案:{{ ast[bank.ans[ansIndex] - 1] }}</view>
  242. </view>
  243. <view class="pad_8 answerInfos">
  244. <view class="answerTitle">答案解析</view>
  245. <view class="answerContent">
  246. <rich-text :nodes="option.analysisContent"></rich-text>
  247. </view>
  248. </view>
  249. </view>
  250. </template>
  251. <template v-if="ansItem.type == 2">
  252. <view class="pad_8 titBox">
  253. <view class="leftLetters">
  254. <view class="btnType">
  255. <text>多选</text>
  256. </view>
  257. </view>
  258. <view class="titles">
  259. <rich-text :nodes="ansItem.content"></rich-text>
  260. </view>
  261. <view>
  262. <view
  263. v-for="(option, childindex) in ansItem.optionsList"
  264. :key="childindex"
  265. class="lisSty"
  266. >
  267. <text
  268. :class="{
  269. right: right(bankIndex, ansIndex, option),
  270. wrong: wrong(bankIndex, ansIndex, option),
  271. }"
  272. class="activeTI"
  273. >{{ ast[childindex] }}</text
  274. >
  275. <view class="flex_auto">
  276. <rich-text :nodes="option.content"></rich-text>
  277. <view v-if="option.imgUrl">
  278. <image
  279. style="width: 600rpx"
  280. mode="widthFix"
  281. :src="$method.splitImgHost(option.imgUrl)"
  282. ></image>
  283. </view>
  284. </view>
  285. </view>
  286. </view>
  287. </view>
  288. <view v-if="bank.ques[ansIndex]">
  289. <view class="pad_8 answer">
  290. <view
  291. >题目答案:
  292. <text
  293. :key="ansItemIndex1"
  294. v-for="(ansItem1, ansItemIndex1) in bank.ans[ansIndex]"
  295. >{{ ast[ansItem1 - 1] }}</text
  296. >
  297. </view>
  298. </view>
  299. <view class="pad_8 answerInfos">
  300. <view class="answerTitle">答案解析</view>
  301. <view class="answerContent">
  302. <rich-text :nodes="ansItem.analysisContent"></rich-text>
  303. </view>
  304. </view>
  305. </view>
  306. </template>
  307. <template v-if="ansItem.type == 3">
  308. <view class="pad_8 titBox">
  309. <view class="leftLetters">
  310. <view class="btnType">
  311. <text>判断</text>
  312. </view>
  313. </view>
  314. <view class="titles">
  315. <rich-text :nodes="ansItem.content"></rich-text>
  316. </view>
  317. <view>
  318. <view
  319. v-for="(option, childindex) in judge"
  320. :key="childindex"
  321. class="lisSty"
  322. >
  323. <text
  324. :class="{
  325. right:
  326. childindex == bank.ques[ansIndex] ||
  327. childindex == bank.ans[ansIndex],
  328. wrong:
  329. childindex == bank.ques[ansIndex] &&
  330. bank.ques[ansIndex] != bank.ans[ansIndex],
  331. }"
  332. class="activeTI"
  333. >{{ ast[childindex] }}</text
  334. >
  335. <view class="flex_auto">
  336. {{ option }}
  337. <view v-if="option.imgUrl">
  338. <image
  339. style="width: 600rpx"
  340. mode="widthFix"
  341. :src="$method.splitImgHost(option.imgUrl)"
  342. ></image>
  343. </view>
  344. </view>
  345. </view>
  346. </view>
  347. </view>
  348. <view>
  349. <view class="pad_8 answer">
  350. <view>题目答案:{{ ast[bank.ans[ansIndex]] }}</view>
  351. </view>
  352. <view class="pad_8 answerInfos">
  353. <view class="answerTitle">答案解析</view>
  354. <view class="answerContent">
  355. <rich-text :nodes="ansItem.analysisContent"></rich-text>
  356. </view>
  357. </view>
  358. </view>
  359. </template>
  360. <!-- 简答题 -->
  361. <template v-if="ansItem.type == 5">
  362. <view class="pad_8 titBox">
  363. <view class="leftLetters">
  364. <view class="btnType">
  365. <text>简答</text>
  366. </view>
  367. </view>
  368. <view class="titles">
  369. <rich-text :nodes="ansItem.content"></rich-text>
  370. </view>
  371. </view>
  372. <view>
  373. <view class="pad_8 answerInfos">
  374. <view class="answerTitle">答案解析</view>
  375. <view class="answerContent">
  376. <rich-text :nodes="ansItem.analysisContent"></rich-text>
  377. </view>
  378. </view>
  379. </view>
  380. </template>
  381. </view>
  382. </template>
  383. <view class="footer_btn">
  384. <view class="collect">
  385. <view>
  386. <image src="/static/icon/collect.png" mode=""></image>
  387. <view>收藏</view>
  388. </view>
  389. </view>
  390. <view class="flex_center" @click="openFooterTab">
  391. <view class="up-icon">
  392. <image src="/static/up.png"></image>
  393. </view>
  394. 答题卡
  395. </view>
  396. <view class="collect">
  397. <view>
  398. <image src="/static/jj.png" mode=""></image>
  399. <view>交卷</view>
  400. </view>
  401. </view>
  402. </view>
  403. </view>
  404. </swiper-item>
  405. </swiper>
  406. <u-popup v-model="show" mode="bottom" border-radius="14" height="680rpx">
  407. <view class="popupView">
  408. <view class="popupTops">
  409. <view class="topIcon"></view>
  410. 点击编号即可跳转至对应题目
  411. </view>
  412. <view class="popupContent">
  413. <scroll-view scroll-y="true" style="height: 506rpx">
  414. <view class="boxSty">
  415. <view
  416. v-for="(item, index) in questionList"
  417. :key="index"
  418. @click="changeIndex(index)"
  419. :class="{
  420. isRight: isRight(item, index),
  421. isWrong: isWrong(item, index),
  422. }"
  423. class="liListSty"
  424. >{{ index + 1 }}</view
  425. >
  426. </view>
  427. </scroll-view>
  428. </view>
  429. </view>
  430. </u-popup>
  431. <view class="dialog" v-if="showDialog">
  432. <view class="text">左右滑动切换上下题</view>
  433. <view class="btn" @click="hideDialog">我知道了</view>
  434. </view>
  435. </view>
  436. </template>
  437. <script>
  438. export default {
  439. data() {
  440. return {
  441. id: "",
  442. current: 0,
  443. showpopups: false,
  444. questionList: [],
  445. ast: ["A", "B", "C", "D", "E", "F", "G"],
  446. judge: ["错误", "正确"],
  447. show: false,
  448. showDialog: false,
  449. bankList: [],
  450. collectList: [],
  451. goodsId: "",
  452. recordId: "",
  453. chapterId: "",
  454. moduleId: "",
  455. doMode: 1, // 1-普通章卷,2-随机练习
  456. };
  457. },
  458. onLoad(option) {
  459. this.id = option.id || "";
  460. this.goodsId = option.goodsid || "";
  461. this.chapterId = option.chapterId || "";
  462. this.moduleId = option.moduleId || "";
  463. this.recordId = option.recordId || "";
  464. this.doMode = option.doMode
  465. let showDialog = uni.getStorageSync("showDialog");
  466. if (showDialog) {
  467. this.showDialog = false;
  468. } else {
  469. this.showDialog = true;
  470. uni.setStorageSync("showDialog", "1");
  471. }
  472. console.log('------解析解析', this.doMode);
  473. if (this.doMode == 2) {
  474. this.getQuestionTempList()
  475. } else {
  476. this.goodsQuestionList();
  477. }
  478. },
  479. onUnload() {},
  480. methods: {
  481. /**
  482. * 是否有上传图片
  483. */
  484. hasImgs(bank) {
  485. return bank.ansText.imageList.length == 0;
  486. },
  487. // 获取随机练习解析题
  488. getQuestionTempList() {
  489. this.$api.goodsQuestionTempList({examId: this.id,}).then((res) => {
  490. if (res.data.code == 200) {
  491. this.analyseData(res.data.data)
  492. }
  493. })
  494. },
  495. goodsQuestionList() {
  496. //解析
  497. this.$api
  498. .goodsQuestionList({
  499. examId: this.id,
  500. })
  501. .then((res) => {
  502. if (res.data.code == 200) {
  503. this.analyseData(res.data.data)
  504. }
  505. });
  506. },
  507. analyseData(datas = []) {
  508. datas.forEach((item, index) => {
  509. if (typeof item.jsonStr == "string") {
  510. item.jsonStr = JSON.parse(item.jsonStr);
  511. if (item.type == 2) {
  512. //多选
  513. item.jsonStr.forEach((str) => {
  514. str.optionsId = "" + str.optionsId;
  515. });
  516. let arr = item.answerQuestion.split(",");
  517. arr.forEach((a, i) => {
  518. arr[i] = "" + a;
  519. });
  520. item.ans = arr;
  521. item.ques = item.ans;
  522. return;
  523. } else if (item.type == 5) {
  524. item.ansText = {
  525. text: item.analysisContent,
  526. imageList: [],
  527. };
  528. item.ques = {
  529. text: item.analysisContent,
  530. imageList: [],
  531. };
  532. return;
  533. } else if (item.type == 4) {
  534. console.log(item.jsonStr);
  535. item.ques = [];
  536. item.current = 0;
  537. let ansArr = [];
  538. item.jsonStr.forEach((json, index) => {
  539. if (json.type == 1) {
  540. ansArr[index] = json.answerQuestion;
  541. } else if (json.type == 2) {
  542. json.optionsList.forEach((str) => {
  543. str.optionsId = "" + str.optionsId;
  544. });
  545. let arr = json.answerQuestion.split(",");
  546. arr.forEach((a, i) => {
  547. arr[i] = "" + a;
  548. });
  549. ansArr[index] = arr;
  550. } else if (json.type == 3) {
  551. ansArr[index] = json.answerQuestion;
  552. } else if (json.type == 5) {
  553. ansArr[index] = {
  554. text: "",
  555. imageList: [],
  556. };
  557. json.ansText = {
  558. text: "",
  559. imageList: [],
  560. };
  561. }
  562. });
  563. item.ans = ansArr;
  564. item.ques = item.ans;
  565. return;
  566. }
  567. item.ans = item.answerQuestion;
  568. item.ques = item.ans;
  569. } else {
  570. item.ques = item.ans;
  571. }
  572. });
  573. this.questionList = datas
  574. },
  575. openFooterTab() {
  576. this.show = true;
  577. },
  578. hideDialog() {
  579. this.showDialog = false;
  580. },
  581. changeIndex(index) {
  582. this.current = index;
  583. },
  584. swiperChange(e) {
  585. this.current = e.detail.current;
  586. },
  587. isRight(item, index) {
  588. //单选
  589. if (this.questionList[index].ques) {
  590. if (item.type == 1) {
  591. return this.questionList[index].ques == this.questionList[index].ans;
  592. //多选
  593. } else if (item.type == 2) {
  594. //每一项都相等
  595. return this.questionList[index].ans.every((item, i) => {
  596. return item == this.questionList[index].ques[i];
  597. });
  598. //判断
  599. } else if (item.type == 3) {
  600. return this.questionList[index].ques == this.questionList[index].ans;
  601. } else {
  602. return false;
  603. }
  604. } else {
  605. return false;
  606. }
  607. },
  608. right(bankIndex, ansIndex, option) {
  609. if (
  610. this.questionList[bankIndex].ques[ansIndex] &&
  611. this.questionList[bankIndex].ans[ansIndex]
  612. ) {
  613. if (
  614. this.questionList[bankIndex].ques[ansIndex].indexOf(
  615. option.optionsId
  616. ) != -1 ||
  617. this.questionList[bankIndex].ans[ansIndex].indexOf(
  618. option.optionsId
  619. ) != -1
  620. ) {
  621. return true;
  622. } else {
  623. return false;
  624. }
  625. } else {
  626. return false;
  627. }
  628. },
  629. wrong(bankIndex, ansIndex, option) {
  630. if (
  631. this.questionList[bankIndex].ques[ansIndex] &&
  632. this.questionList[bankIndex].ans[ansIndex]
  633. ) {
  634. if (
  635. this.questionList[bankIndex].ques[ansIndex].indexOf(
  636. option.optionsId
  637. ) != -1 &&
  638. this.questionList[bankIndex].ans[ansIndex].indexOf(
  639. option.optionsId
  640. ) == -1
  641. ) {
  642. return true;
  643. } else {
  644. return false;
  645. }
  646. } else {
  647. return false;
  648. }
  649. },
  650. isWrong(item, index) {
  651. if (this.questionList[index].ques) {
  652. //单选
  653. if (item.type == 1) {
  654. return this.questionList[index].ques != this.questionList[index].ans;
  655. //多选
  656. } else if (item.type == 2) {
  657. //每一项都相等
  658. return this.questionList[index].ans.some((item, i) => {
  659. return item != this.questionList[index].ques[i];
  660. });
  661. //判断
  662. } else if (item.type == 3) {
  663. return this.questionList[index].ques != this.questionList[index].ans;
  664. } else {
  665. return false;
  666. }
  667. } else {
  668. return false;
  669. }
  670. },
  671. tabSelect(index, bankindex) {
  672. this.$set(this.questionList[bankindex], "current", index);
  673. },
  674. },
  675. };
  676. </script>
  677. <style lang="scss" scoped>
  678. .questionBank {
  679. width: 100%;
  680. height: 100vh;
  681. display: flex;
  682. flex-direction: column;
  683. }
  684. .swiper {
  685. width: 100%;
  686. flex: 1;
  687. }
  688. .lisSty {
  689. margin-bottom: 16rpx;
  690. display: flex;
  691. align-items: center;
  692. .flex_auto {
  693. flex: 1;
  694. word-break: break-all;
  695. }
  696. }
  697. .activeTI {
  698. vertical-align: middle;
  699. display: inline-block;
  700. border: 1rpx solid #eee;
  701. border-radius: 50rpx;
  702. height: 48rpx;
  703. line-height: 46rpx;
  704. text-align: center;
  705. width: 48rpx;
  706. margin-right: 15rpx;
  707. color: #666;
  708. font-size: 30rpx;
  709. &.right {
  710. color: #fff;
  711. background: #36c75a;
  712. }
  713. &.wrong {
  714. color: #fff;
  715. background: #ff3b30;
  716. }
  717. &.checked {
  718. color: #fff;
  719. background: #007aff;
  720. }
  721. }
  722. .submit_checkbox {
  723. position: fixed;
  724. left: 0;
  725. right: 0;
  726. bottom: 120rpx;
  727. margin: 20rpx auto;
  728. width: 526rpx;
  729. height: 80rpx;
  730. background: rgba(0, 122, 255, 1);
  731. color: #fff;
  732. text-align: center;
  733. line-height: 80rpx;
  734. font-size: 30rpx;
  735. border-radius: 40rpx;
  736. }
  737. .titles {
  738. overflow: hidden;
  739. margin-bottom: 24rpx;
  740. }
  741. .titBox {
  742. padding: 41rpx 25rpx 24rpx 25rpx;
  743. }
  744. .titBox_title {
  745. padding: 21rpx;
  746. }
  747. .tabs {
  748. margin: 10rpx;
  749. display: flex;
  750. .tab {
  751. margin: 0 4rpx;
  752. padding: 10rpx 13rpx;
  753. text-align: center;
  754. color: #007aff;
  755. font-size: 28rpx;
  756. border-radius: 16rpx;
  757. background: #fff;
  758. &.current {
  759. color: #fff;
  760. background: #007aff;
  761. }
  762. }
  763. }
  764. .ans {
  765. margin: 8rpx 8rpx 8rpx;
  766. .ans_input {
  767. border-radius: 16rpx;
  768. background: #fff;
  769. .top {
  770. border-bottom: 1rpx solid #eeeeee;
  771. padding: 16rpx;
  772. display: flex;
  773. align-items: center;
  774. .icon {
  775. margin-right: 20rpx;
  776. width: 40rpx;
  777. height: 38rpx;
  778. }
  779. .progress {
  780. flex: 1;
  781. }
  782. .submit {
  783. width: 168rpx;
  784. height: 48rpx;
  785. line-height: 48rpx;
  786. text-align: center;
  787. color: #fff;
  788. font-size: 30rpx;
  789. background: #007aff;
  790. border-radius: 24rpx;
  791. &.disabled {
  792. opacity: 0.6;
  793. }
  794. }
  795. }
  796. .textarea {
  797. textarea {
  798. width: 100%;
  799. height: 287rpx;
  800. padding: 10rpx;
  801. }
  802. }
  803. .imgs {
  804. overflow: hidden;
  805. display: flex;
  806. width: 100%;
  807. .img {
  808. width: 104rpx;
  809. height: 104rpx;
  810. border-radius: 8rpx;
  811. position: relative;
  812. margin: 20rpx;
  813. text {
  814. position: absolute;
  815. right: -15rpx;
  816. top: -15rpx;
  817. width: 30rpx;
  818. height: 30rpx;
  819. text-align: center;
  820. line-height: 30rpx;
  821. color: #fff;
  822. background: #ff3b30;
  823. border-radius: 50%;
  824. }
  825. image {
  826. width: 100%;
  827. height: 100%;
  828. }
  829. }
  830. }
  831. }
  832. .ans_submit {
  833. padding: 16rpx;
  834. border-radius: 16rpx;
  835. background: #fff;
  836. .imgs {
  837. overflow: hidden;
  838. display: flex;
  839. width: 100%;
  840. .img {
  841. width: 104rpx;
  842. height: 104rpx;
  843. border-radius: 8rpx;
  844. position: relative;
  845. margin: 20rpx;
  846. image {
  847. width: 100%;
  848. height: 100%;
  849. }
  850. }
  851. }
  852. }
  853. }
  854. .leftLetters {
  855. display: flex;
  856. align-items: center;
  857. width: 220rpx;
  858. .btnType {
  859. padding: 5rpx 10rpx;
  860. border: 1rpx solid #007aff;
  861. border-radius: 10rpx;
  862. background-color: rgba(0, 122, 255, 0.1);
  863. font-size: 28rpx;
  864. color: #007aff;
  865. margin-right: 15rpx;
  866. }
  867. }
  868. .firstLetter {
  869. display: flex;
  870. justify-content: space-between;
  871. align-items: center;
  872. margin-bottom: 30rpx;
  873. }
  874. .popupView {
  875. height: 100%;
  876. padding-bottom: 100rpx;
  877. .popupTops {
  878. height: 77rpx;
  879. border-bottom: 1rpx solid #eee;
  880. text-align: center;
  881. line-height: 77rpx;
  882. font-size: 24rpx;
  883. color: #999;
  884. position: relative;
  885. .topIcon {
  886. position: absolute;
  887. top: 10rpx;
  888. left: 50%;
  889. transform: translateX(-50%);
  890. width: 80rpx;
  891. height: 8rpx;
  892. background-color: #999;
  893. border-radius: 4rpx;
  894. }
  895. }
  896. .popupContent {
  897. }
  898. }
  899. .pageContent {
  900. position: relative;
  901. background-color: #eaeef1;
  902. height: 100%;
  903. overflow-y: scroll;
  904. padding-top: 8rpx;
  905. padding-bottom: 100rpx;
  906. }
  907. .pad_8 {
  908. background-color: #fff;
  909. margin: 0rpx 8rpx 8rpx;
  910. border-radius: 16rpx;
  911. &.no-margin {
  912. margin-top: -16rpx;
  913. border-radius: 0 0 16rpx 16rpx;
  914. }
  915. }
  916. .answer {
  917. height: 80rpx;
  918. line-height: 80rpx;
  919. padding: 0rpx 24rpx;
  920. display: flex;
  921. align-items: center;
  922. justify-content: space-between;
  923. color: #666;
  924. font-size: 30rpx;
  925. }
  926. .footer_btn {
  927. background-color: #fff;
  928. z-index: 10078;
  929. position: fixed;
  930. bottom: 0rpx;
  931. display: flex;
  932. align-items: center;
  933. justify-content: space-between;
  934. width: 100%;
  935. height: 98rpx;
  936. padding: 0rpx 38rpx;
  937. border-top: 1rpx solid #eee;
  938. .flex_center {
  939. flex: 1;
  940. display: flex;
  941. justify-content: center;
  942. align-items: center;
  943. flex-direction: column;
  944. margin: 0 200rpx;
  945. font-size: 24rpx;
  946. color: #999999;
  947. .up-icon {
  948. margin-bottom: 18rpx;
  949. width: 100%;
  950. display: flex;
  951. justify-content: center;
  952. image {
  953. width: 58rpx;
  954. height: 21rpx;
  955. }
  956. }
  957. }
  958. .collect {
  959. visibility: hidden;
  960. width: 100rpx;
  961. &.show {
  962. visibility: visible;
  963. }
  964. > view {
  965. display: flex;
  966. flex-direction: column;
  967. align-items: center;
  968. justify-content: center;
  969. image {
  970. width: 32rpx;
  971. height: 32rpx;
  972. margin-bottom: 6rpx;
  973. }
  974. view {
  975. font-size: 24rpx;
  976. color: #999999;
  977. }
  978. }
  979. }
  980. }
  981. .boxSty {
  982. padding: 44rpx 41rpx 0rpx;
  983. }
  984. .liListSty {
  985. border: 1rpx solid #eeeeee;
  986. width: 88rpx;
  987. height: 88rpx;
  988. border-radius: 32rpx;
  989. text-align: center;
  990. line-height: 88rpx;
  991. color: #333;
  992. font-size: 32rpx;
  993. float: left;
  994. margin: 20rpx 23rpx;
  995. &.isRight {
  996. border: 1rpx solid #eeeeee;
  997. color: #fff;
  998. background: #36c75a;
  999. }
  1000. &.isWrong {
  1001. border: 1rpx solid #eeeeee;
  1002. color: #fff;
  1003. background: #ff3b30;
  1004. }
  1005. }
  1006. .answerInfos {
  1007. padding: 25rpx 25rpx 25rpx 23rpx;
  1008. }
  1009. .answerTitle {
  1010. margin-bottom: 28rpx;
  1011. color: #666;
  1012. font-size: 30rpx;
  1013. }
  1014. .answerContent {
  1015. font-size: 30rpx;
  1016. color: #666;
  1017. }
  1018. .textChild {
  1019. display: inline-block;
  1020. vertical-align: middle;
  1021. }
  1022. .dialog {
  1023. position: fixed;
  1024. left: 0;
  1025. top: 0;
  1026. width: 100%;
  1027. height: 100%;
  1028. background-color: rgba(0, 0, 0, 0.8);
  1029. display: flex;
  1030. flex-direction: column;
  1031. align-items: center;
  1032. justify-content: center;
  1033. z-index: 20000;
  1034. .pointer {
  1035. width: 338rpx;
  1036. height: 240rpx;
  1037. }
  1038. .text {
  1039. font-size: 32rpx;
  1040. color: #ffffff;
  1041. text-align: center;
  1042. }
  1043. .btn {
  1044. width: 242rpx;
  1045. height: 82rpx;
  1046. border: 2rpx solid #ffffff;
  1047. border-radius: 16rpx;
  1048. text-align: center;
  1049. line-height: 82rpx;
  1050. margin: 41rpx auto;
  1051. color: #fff;
  1052. font-size: 32rpx;
  1053. }
  1054. }
  1055. .popboxs {
  1056. width: 100%;
  1057. height: 100%;
  1058. display: flex;
  1059. flex-direction: column;
  1060. align-items: center;
  1061. }
  1062. .classTops {
  1063. flex-shrink: 0;
  1064. padding: 39rpx 0rpx 4rpx;
  1065. font-weight: bold;
  1066. color: #333;
  1067. font-size: 30rpx;
  1068. }
  1069. .textStys {
  1070. width: 100%;
  1071. flex: 1;
  1072. padding: 36rpx;
  1073. }
  1074. .classFootsty {
  1075. flex-shrink: 0;
  1076. display: flex;
  1077. align-items: center;
  1078. justify-content: center;
  1079. padding: 10rpx 0rpx 40rpx;
  1080. .btnsty {
  1081. width: 200rpx;
  1082. height: 80rpx;
  1083. border-radius: 40rpx;
  1084. font-weight: bold;
  1085. font-size: 30rpx;
  1086. text-align: center;
  1087. line-height: 80rpx;
  1088. }
  1089. .btns1 {
  1090. background-color: #f5f5f5;
  1091. color: #007aff;
  1092. }
  1093. .btns2 {
  1094. margin-left: 40rpx;
  1095. background-color: #007aff;
  1096. color: #ffffff;
  1097. }
  1098. }
  1099. </style>