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. :interval="interval"
  9. >
  10. <swiper-item v-for="(bank, bankIndex) in questionList" :key="bankIndex">
  11. <view class="pageContent">
  12. <view class="pad_8 titBox">
  13. <view class="firstLetter">
  14. <view class="leftLetters">
  15. <view class="btnType">
  16. <text v-if="bank.type == 1">单选</text>
  17. <text v-if="bank.type == 2">多选</text>
  18. <text v-if="bank.type == 3">判断</text>
  19. <text v-if="bank.type == 4">案例</text>
  20. <text v-if="bank.type == 5">简答</text>
  21. </view>
  22. <text>{{ bankIndex + 1 }}/{{ questionList.length }}</text>
  23. </view>
  24. <view style="color: #666; font-size: 28rpx"></view>
  25. <view class="leftLetters"></view>
  26. </view>
  27. <view class="titles">
  28. <rich-text :nodes="bank.content"></rich-text>
  29. </view>
  30. </view>
  31. <template v-if="bank.type == 1">
  32. <view class="pad_8 titBox no-margin">
  33. <view>
  34. <view
  35. v-for="(item, index) in bank.jsonStr"
  36. :key="index"
  37. class="lisSty"
  38. >
  39. <text
  40. :class="{
  41. right:
  42. item.optionsId == bank.ques ||
  43. item.optionsId == bank.ans,
  44. wrong:
  45. item.optionsId == bank.ques && bank.ques != bank.ans,
  46. }"
  47. class="activeTI"
  48. >{{ ast[index] }}</text
  49. >
  50. <view class="flex_auto">
  51. {{ item.content }}
  52. <view v-if="item.imgUrl">
  53. <image
  54. style="width: 600rpx"
  55. mode="widthFix"
  56. :src="$method.splitImgHost(item.imgUrl)"
  57. ></image>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. <view>
  64. <view class="pad_8 answer">
  65. <view>正确答案:{{ ast[bank.ans - 1] }}</view>
  66. </view>
  67. <view class="pad_8 answerInfos">
  68. <view class="answerTitle">答案解析</view>
  69. <view class="answerContent">
  70. <rich-text :nodes="bank.analysisContent"></rich-text>
  71. </view>
  72. </view>
  73. </view>
  74. </template>
  75. <template v-if="bank.type == 2">
  76. <view class="pad_8 titBox no-margin">
  77. <view>
  78. <view
  79. v-for="(item, index) in bank.jsonStr"
  80. :key="index"
  81. class="lisSty"
  82. >
  83. <text
  84. :class="{
  85. right:
  86. bank.ques.indexOf(item.optionsId) != -1 ||
  87. bank.ans.indexOf(item.optionsId) != -1,
  88. wrong:
  89. bank.ques.indexOf(item.optionsId) != -1 &&
  90. bank.ans.indexOf(item.optionsId) == -1,
  91. }"
  92. class="activeTI"
  93. >{{ ast[index] }}</text
  94. >
  95. <view class="flex_auto">
  96. {{ item.content }}
  97. <view v-if="item.imgUrl">
  98. <image
  99. style="width: 600rpx"
  100. mode="widthFix"
  101. :src="$method.splitImgHost(item.imgUrl)"
  102. ></image>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. </view>
  108. <view>
  109. <view class="pad_8 answer">
  110. <view
  111. >正确答案:
  112. <text
  113. :key="ansItemIndex"
  114. v-for="(ansItem, ansItemIndex) in bank.ans"
  115. >{{ ast[ansItem - 1] }}</text
  116. >
  117. </view>
  118. </view>
  119. <view class="pad_8 answerInfos">
  120. <view class="answerTitle">答案解析</view>
  121. <view class="answerContent">
  122. <rich-text :nodes="bank.analysisContent"></rich-text>
  123. </view>
  124. </view>
  125. </view>
  126. </template>
  127. <template v-if="bank.type == 3">
  128. <view class="pad_8 titBox no-margin">
  129. <view>
  130. <view
  131. v-for="(item, index) in judge"
  132. :key="index"
  133. class="lisSty"
  134. >
  135. <text
  136. :class="{
  137. right: index == bank.ques || index == bank.ans,
  138. wrong: index == bank.ques && bank.ques != bank.ans,
  139. }"
  140. class="activeTI"
  141. >{{ ast[index] }}</text
  142. >
  143. <view class="flex_auto">
  144. {{ item }}
  145. <view v-if="item.imgUrl">
  146. <image
  147. style="width: 600rpx"
  148. mode="widthFix"
  149. :src="$method.splitImgHost(item.imgUrl)"
  150. ></image>
  151. </view>
  152. </view>
  153. </view>
  154. </view>
  155. </view>
  156. <view>
  157. <view class="pad_8 answer">
  158. <view>正确答案:{{ ast[bank.ans] }}</view>
  159. </view>
  160. <view class="pad_8 answerInfos">
  161. <view class="answerTitle">答案解析</view>
  162. <view class="answerContent">
  163. <rich-text :nodes="bank.analysisContent"></rich-text>
  164. </view>
  165. </view>
  166. </view>
  167. </template>
  168. <!-- 简答题 -->
  169. <template v-if="bank.type == 5">
  170. <view class="pad_8 titBox">
  171. <view>
  172. <view class="pad_8 answerInfos">
  173. <view class="answerTitle">答案解析:</view>
  174. <view class="answerContent">
  175. <rich-text :nodes="bank.analysisContent"></rich-text>
  176. </view>
  177. </view>
  178. </view>
  179. </view>
  180. </template>
  181. <!-- 案例题 -->
  182. <template v-if="bank.type == 4">
  183. <view class="tabs">
  184. <view
  185. class="tab"
  186. :class="{ current: tabIndex == bank.current }"
  187. :key="tabIndex"
  188. v-for="(tab, tabIndex) in bank.jsonStr"
  189. @click="tabSelect(tabIndex, bankIndex)"
  190. >
  191. 问题{{ tabIndex + 1 }}
  192. </view>
  193. </view>
  194. <view
  195. v-for="(ansItem, ansIndex) in bank.jsonStr"
  196. v-if="bank.current == ansIndex"
  197. :key="ansIndex"
  198. >
  199. <template v-if="ansItem.type == 1">
  200. <view class="pad_8 titBox">
  201. <view class="leftLetters">
  202. <view class="btnType">
  203. <text>单选</text>
  204. </view>
  205. </view>
  206. <view class="titles">
  207. <rich-text :nodes="ansItem.content"></rich-text>
  208. </view>
  209. <view>
  210. <view
  211. v-for="(option, childIndex) in ansItem.optionsList"
  212. :key="childIndex"
  213. class="lisSty"
  214. >
  215. <text
  216. :class="{
  217. right:
  218. option.optionsId == bank.ques[ansIndex] ||
  219. option.optionsId == bank.ans[ansIndex],
  220. wrong:
  221. option.optionsId == bank.ques[ansIndex] &&
  222. bank.ques[ansIndex] != bank.ans[ansIndex],
  223. }"
  224. class="activeTI"
  225. >{{ ast[childIndex] }}</text
  226. >
  227. <view class="flex_auto">
  228. <rich-text :nodes="option.content"></rich-text>
  229. <view v-if="option.imgUrl">
  230. <image
  231. style="width: 600rpx"
  232. mode="widthFix"
  233. :src="$method.splitImgHost(option.imgUrl)"
  234. ></image>
  235. </view>
  236. </view>
  237. </view>
  238. </view>
  239. </view>
  240. <view>
  241. <view class="pad_8 answer">
  242. <view>正确答案:{{ ast[bank.ans[ansIndex] - 1] }}</view>
  243. </view>
  244. <view class="pad_8 answerInfos">
  245. <view class="answerTitle">答案解析</view>
  246. <view class="answerContent">
  247. <rich-text :nodes="option.analysisContent"></rich-text>
  248. </view>
  249. </view>
  250. </view>
  251. </template>
  252. <template v-if="ansItem.type == 2">
  253. <view class="pad_8 titBox">
  254. <view class="leftLetters">
  255. <view class="btnType">
  256. <text>多选</text>
  257. </view>
  258. </view>
  259. <view class="titles">
  260. <rich-text :nodes="ansItem.content"></rich-text>
  261. </view>
  262. <view>
  263. <view
  264. v-for="(option, childindex) in ansItem.optionsList"
  265. :key="childindex"
  266. class="lisSty"
  267. >
  268. <text
  269. :class="{
  270. right: right(bankIndex, ansIndex, option),
  271. wrong: wrong(bankIndex, ansIndex, option),
  272. }"
  273. class="activeTI"
  274. >{{ ast[childindex] }}</text
  275. >
  276. <view class="flex_auto">
  277. <rich-text :nodes="option.content"></rich-text>
  278. <view v-if="option.imgUrl">
  279. <image
  280. style="width: 600rpx"
  281. mode="widthFix"
  282. :src="$method.splitImgHost(option.imgUrl)"
  283. ></image>
  284. </view>
  285. </view>
  286. </view>
  287. </view>
  288. </view>
  289. <view v-if="bank.ques[ansIndex]">
  290. <view class="pad_8 answer">
  291. <view
  292. >正确答案:
  293. <text
  294. :key="ansItemIndex1"
  295. v-for="(ansItem1, ansItemIndex1) in bank.ans[ansIndex]"
  296. >{{ ast[ansItem1 - 1] }}</text
  297. >
  298. </view>
  299. </view>
  300. <view class="pad_8 answerInfos">
  301. <view class="answerTitle">答案解析</view>
  302. <view class="answerContent">
  303. <rich-text :nodes="ansItem.analysisContent"></rich-text>
  304. </view>
  305. </view>
  306. </view>
  307. </template>
  308. <template v-if="ansItem.type == 3">
  309. <view class="pad_8 titBox">
  310. <view class="leftLetters">
  311. <view class="btnType">
  312. <text>判断</text>
  313. </view>
  314. </view>
  315. <view class="titles">
  316. <rich-text :nodes="ansItem.content"></rich-text>
  317. </view>
  318. <view>
  319. <view
  320. v-for="(option, childindex) in judge"
  321. :key="childindex"
  322. class="lisSty"
  323. >
  324. <text
  325. :class="{
  326. right:
  327. childindex == bank.ques[ansIndex] ||
  328. childindex == bank.ans[ansIndex],
  329. wrong:
  330. childindex == bank.ques[ansIndex] &&
  331. bank.ques[ansIndex] != bank.ans[ansIndex],
  332. }"
  333. class="activeTI"
  334. >{{ ast[childindex] }}</text
  335. >
  336. <view class="flex_auto">
  337. {{ option }}
  338. <view v-if="option.imgUrl">
  339. <image
  340. style="width: 600rpx"
  341. mode="widthFix"
  342. :src="$method.splitImgHost(option.imgUrl)"
  343. ></image>
  344. </view>
  345. </view>
  346. </view>
  347. </view>
  348. </view>
  349. <view>
  350. <view class="pad_8 answer">
  351. <view>正确答案:{{ ast[bank.ans[ansIndex]] }}</view>
  352. </view>
  353. <view class="pad_8 answerInfos">
  354. <view class="answerTitle">答案解析</view>
  355. <view class="answerContent">
  356. <rich-text :nodes="ansItem.analysisContent"></rich-text>
  357. </view>
  358. </view>
  359. </view>
  360. </template>
  361. <!-- 简答题 -->
  362. <template v-if="ansItem.type == 5">
  363. <view class="pad_8 titBox">
  364. <view class="leftLetters">
  365. <view class="btnType">
  366. <text>简答</text>
  367. </view>
  368. </view>
  369. <view class="titles">
  370. <rich-text :nodes="ansItem.content"></rich-text>
  371. </view>
  372. </view>
  373. <view>
  374. <view class="pad_8 answerInfos">
  375. <view class="answerTitle">答案解析</view>
  376. <view class="answerContent">
  377. <rich-text :nodes="ansItem.analysisContent"></rich-text>
  378. </view>
  379. </view>
  380. </view>
  381. </template>
  382. </view>
  383. </template>
  384. <view class="footer_btn">
  385. <view class="collect">
  386. <view>
  387. <image src="/static/icon/collect.png" mode=""></image>
  388. <view>收藏</view>
  389. </view>
  390. </view>
  391. <view class="flex_center" @click="openFooterTab">
  392. <view class="up-icon">
  393. <image src="/static/up.png"></image>
  394. </view>
  395. 答题卡
  396. </view>
  397. <view class="collect">
  398. <view>
  399. <image src="/static/jj.png" mode=""></image>
  400. <view>交卷</view>
  401. </view>
  402. </view>
  403. </view>
  404. </view>
  405. </swiper-item>
  406. </swiper>
  407. <u-popup v-model="show" mode="bottom" border-radius="14" height="680rpx">
  408. <view class="popupView">
  409. <view class="popupTops">
  410. <view class="topIcon"></view>
  411. 点击编号即可跳转至对应题目
  412. </view>
  413. <view class="popupContent">
  414. <scroll-view scroll-y="true" style="height: 506rpx">
  415. <view class="boxSty">
  416. <view
  417. v-for="(item, index) in questionList"
  418. :key="index"
  419. @click="changeIndex(index)"
  420. :class="{
  421. isRight: isRight(item, index),
  422. isWrong: isWrong(item, index),
  423. }"
  424. class="liListSty"
  425. >{{ index + 1 }}</view
  426. >
  427. </view>
  428. </scroll-view>
  429. </view>
  430. </view>
  431. </u-popup>
  432. <view class="dialog" v-if="showDialog">
  433. <view class="text">左右滑动切换上下题</view>
  434. <view class="btn" @click="hideDialog">我知道了</view>
  435. </view>
  436. </view>
  437. </template>
  438. <script>
  439. export default {
  440. data() {
  441. return {
  442. id: "",
  443. current: 0,
  444. showpopups: false,
  445. questionList: [],
  446. ast: ["A", "B", "C", "D", "E", "F", "G"],
  447. judge: ["错误", "正确"],
  448. show: false,
  449. showDialog: false,
  450. bankList: [],
  451. collectList: [],
  452. goodsId: "",
  453. recordId: "",
  454. chapterId: "",
  455. moduleId: "",
  456. doMode: 1, // 1-普通章卷,2-随机练习
  457. };
  458. },
  459. onLoad(option) {
  460. this.id = option.id || "";
  461. this.goodsId = option.goodsid || "";
  462. this.chapterId = option.chapterId || "";
  463. this.moduleId = option.moduleId || "";
  464. this.recordId = option.recordId || "";
  465. this.doMode = option.doMode
  466. let showDialog = uni.getStorageSync("showDialog");
  467. if (showDialog) {
  468. this.showDialog = false;
  469. } else {
  470. this.showDialog = true;
  471. uni.setStorageSync("showDialog", "1");
  472. }
  473. console.log('------解析解析', this.doMode);
  474. if (this.doMode == 2) {
  475. this.getQuestionTempList()
  476. } else {
  477. this.goodsQuestionList();
  478. }
  479. },
  480. onUnload() {},
  481. methods: {
  482. /**
  483. * 是否有上传图片
  484. */
  485. hasImgs(bank) {
  486. return bank.ansText.imageList.length == 0;
  487. },
  488. // 获取随机练习解析题
  489. getQuestionTempList() {
  490. this.$api.goodsQuestionTempList({examId: this.id,}).then((res) => {
  491. if (res.data.code == 200) {
  492. this.analyseData(res.data.data)
  493. }
  494. })
  495. },
  496. goodsQuestionList() {
  497. //解析
  498. this.$api
  499. .goodsQuestionList({
  500. examId: this.id,
  501. })
  502. .then((res) => {
  503. if (res.data.code == 200) {
  504. this.analyseData(res.data.data)
  505. }
  506. });
  507. },
  508. analyseData(datas = []) {
  509. datas.forEach((item, index) => {
  510. if (typeof item.jsonStr == "string") {
  511. item.jsonStr = JSON.parse(item.jsonStr);
  512. if (item.type == 2) {
  513. //多选
  514. item.jsonStr.forEach((str) => {
  515. str.optionsId = "" + str.optionsId;
  516. });
  517. let arr = item.answerQuestion.split(",");
  518. arr.forEach((a, i) => {
  519. arr[i] = "" + a;
  520. });
  521. item.ans = arr;
  522. item.ques = item.ans;
  523. return;
  524. } else if (item.type == 5) {
  525. item.ansText = {
  526. text: item.analysisContent,
  527. imageList: [],
  528. };
  529. item.ques = {
  530. text: item.analysisContent,
  531. imageList: [],
  532. };
  533. return;
  534. } else if (item.type == 4) {
  535. console.log(item.jsonStr);
  536. item.ques = [];
  537. item.current = 0;
  538. let ansArr = [];
  539. item.jsonStr.forEach((json, index) => {
  540. if (json.type == 1) {
  541. ansArr[index] = json.answerQuestion;
  542. } else if (json.type == 2) {
  543. json.optionsList.forEach((str) => {
  544. str.optionsId = "" + str.optionsId;
  545. });
  546. let arr = json.answerQuestion.split(",");
  547. arr.forEach((a, i) => {
  548. arr[i] = "" + a;
  549. });
  550. ansArr[index] = arr;
  551. } else if (json.type == 3) {
  552. ansArr[index] = json.answerQuestion;
  553. } else if (json.type == 5) {
  554. ansArr[index] = {
  555. text: "",
  556. imageList: [],
  557. };
  558. json.ansText = {
  559. text: "",
  560. imageList: [],
  561. };
  562. }
  563. });
  564. item.ans = ansArr;
  565. item.ques = item.ans;
  566. return;
  567. }
  568. item.ans = item.answerQuestion;
  569. item.ques = item.ans;
  570. } else {
  571. item.ques = item.ans;
  572. }
  573. });
  574. this.questionList = datas
  575. },
  576. openFooterTab() {
  577. this.show = true;
  578. },
  579. hideDialog() {
  580. this.showDialog = false;
  581. },
  582. changeIndex(index) {
  583. this.current = index;
  584. },
  585. swiperChange(e) {
  586. this.current = e.detail.current;
  587. },
  588. isRight(item, index) {
  589. //单选
  590. if (this.questionList[index].ques) {
  591. if (item.type == 1) {
  592. return this.questionList[index].ques == this.questionList[index].ans;
  593. //多选
  594. } else if (item.type == 2) {
  595. //每一项都相等
  596. return this.questionList[index].ans.every((item, i) => {
  597. return item == this.questionList[index].ques[i];
  598. });
  599. //判断
  600. } else if (item.type == 3) {
  601. return this.questionList[index].ques == this.questionList[index].ans;
  602. } else {
  603. return false;
  604. }
  605. } else {
  606. return false;
  607. }
  608. },
  609. right(bankIndex, ansIndex, option) {
  610. if (
  611. this.questionList[bankIndex].ques[ansIndex] &&
  612. this.questionList[bankIndex].ans[ansIndex]
  613. ) {
  614. if (
  615. this.questionList[bankIndex].ques[ansIndex].indexOf(
  616. option.optionsId
  617. ) != -1 ||
  618. this.questionList[bankIndex].ans[ansIndex].indexOf(
  619. option.optionsId
  620. ) != -1
  621. ) {
  622. return true;
  623. } else {
  624. return false;
  625. }
  626. } else {
  627. return false;
  628. }
  629. },
  630. wrong(bankIndex, ansIndex, option) {
  631. if (
  632. this.questionList[bankIndex].ques[ansIndex] &&
  633. this.questionList[bankIndex].ans[ansIndex]
  634. ) {
  635. if (
  636. this.questionList[bankIndex].ques[ansIndex].indexOf(
  637. option.optionsId
  638. ) != -1 &&
  639. this.questionList[bankIndex].ans[ansIndex].indexOf(
  640. option.optionsId
  641. ) == -1
  642. ) {
  643. return true;
  644. } else {
  645. return false;
  646. }
  647. } else {
  648. return false;
  649. }
  650. },
  651. isWrong(item, index) {
  652. if (this.questionList[index].ques) {
  653. //单选
  654. if (item.type == 1) {
  655. return this.questionList[index].ques != this.questionList[index].ans;
  656. //多选
  657. } else if (item.type == 2) {
  658. //每一项都相等
  659. return this.questionList[index].ans.some((item, i) => {
  660. return item != this.questionList[index].ques[i];
  661. });
  662. //判断
  663. } else if (item.type == 3) {
  664. return this.questionList[index].ques != this.questionList[index].ans;
  665. } else {
  666. return false;
  667. }
  668. } else {
  669. return false;
  670. }
  671. },
  672. tabSelect(index, bankindex) {
  673. this.$set(this.questionList[bankindex], "current", index);
  674. },
  675. },
  676. };
  677. </script>
  678. <style lang="scss" scoped>
  679. .questionBank {
  680. width: 100%;
  681. height: 100vh;
  682. display: flex;
  683. flex-direction: column;
  684. }
  685. .swiper {
  686. width: 100%;
  687. flex: 1;
  688. }
  689. .lisSty {
  690. margin-bottom: 16rpx;
  691. display: flex;
  692. align-items: center;
  693. .flex_auto {
  694. flex: 1;
  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>