questionBankWrongExplain.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907
  1. <template>
  2. <view class="questionBank">
  3. <swiper class="swiper" :current="current" @change="swiperChange" :interval="interval">
  4. <swiper-item v-for="(bank,bankIndex) in questionList" :key="bankIndex">
  5. <view class="pageContent">
  6. <view class="pad_8 titBox" >
  7. <view class="firstLetter">
  8. <view class="leftLetters">
  9. <view class="btnType">
  10. <text v-if="bank.type==1">单选</text>
  11. <text v-if="bank.type==2">多选</text>
  12. <text v-if="bank.type==3">判断</text>
  13. <text v-if="bank.type==4">案例</text>
  14. <text v-if="bank.type==5">简答</text>
  15. </view>
  16. <text>{{bankIndex+1}}/{{questionList.length}}</text>
  17. </view>
  18. <view style="color: #666;font-size: 28rpx;"></view>
  19. <view class="leftLetters"></view>
  20. </view>
  21. <view class="titles">
  22. <rich-text :nodes="bank.content"></rich-text>
  23. </view>
  24. </view>
  25. <template v-if="bank.type == 1">
  26. <view class="pad_8 titBox no-margin">
  27. <view>
  28. <view v-for="(item, index) in bank.jsonStr" :key="index" class="lisSty">
  29. <text :class="{right:(item.optionsId == bank.ques) || (item.optionsId == bank.ans),wrong:(item.optionsId == bank.ques) && (bank.ques != bank.ans)}" class="activeTI">{{ ast[index] }}</text>
  30. <view class="flex_auto">{{ item.content }}</view>
  31. </view>
  32. </view>
  33. <view>
  34. <view class="pad_8 answer">
  35. <view>正确答案:{{ast[bank.ans-1]}}</view>
  36. <view>我的答案:{{ast[bank.ques-1] || ''}}</view>
  37. </view>
  38. <view class="pad_8 answerInfos">
  39. <view class="answerTitle">答案解析</view>
  40. <view class="answerContent">
  41. <rich-text :nodes="bank.analysisContent"></rich-text>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </template>
  47. <template v-if="bank.type == 2">
  48. <view class="pad_8 titBox no-margin">
  49. <view >
  50. <view v-for="(item, index) in bank.jsonStr" :key="index" class="lisSty">
  51. <text :class="{right:(bank.ques && bank.ques.indexOf(item.optionsId) != -1 ) || (bank.ans && bank.ans.indexOf(item.optionsId) != -1),wrong:(bank.ques && bank.ques.indexOf(item.optionsId) != -1 ) && (bank.ans && bank.ans.indexOf(item.optionsId) == -1)}" class="activeTI">{{ ast[index] }}</text>
  52. <view class="flex_auto">{{ item.content }}</view>
  53. </view>
  54. </view>
  55. <view >
  56. <view class="pad_8 answer">
  57. <view>正确答案:
  58. <text :key="ansItemIndex" v-for="(ansItem,ansItemIndex) in bank.ans">{{ast[ansItem-1]}}</text>
  59. </view>
  60. <view>我的答案:
  61. <text :key="quesItemIndex" v-for="(quesItem,quesItemIndex) in bank.ques">{{ast[quesItem-1]}}</text>
  62. </view>
  63. </view>
  64. <view class="pad_8 answerInfos">
  65. <view class="answerTitle">答案解析</view>
  66. <view class="answerContent">
  67. <rich-text :nodes="bank.analysisContent"></rich-text>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. </template>
  73. <template v-if="bank.type == 3">
  74. <view class="pad_8 titBox no-margin">
  75. <view >
  76. <view v-for="(item, index) in judge" :key="index" class="lisSty">
  77. <text :class="{right:(index == bank.ques) || (index == bank.ans),wrong:(index == bank.ques) && (bank.ques != bank.ans)}" class="activeTI">{{ ast[index] }}</text>
  78. {{ item }}
  79. </view>
  80. </view>
  81. <view >
  82. <view class="pad_8 answer">
  83. <view>正确答案:{{ast[bank.ans]}}</view>
  84. <view>我的答案:{{ast[bank.ques] || ''}}</view>
  85. </view>
  86. <view class="pad_8 answerInfos">
  87. <view class="answerTitle">答案解析</view>
  88. <view class="answerContent">
  89. <rich-text :nodes="bank.analysisContent"></rich-text>
  90. </view>
  91. </view>
  92. </view>
  93. </view>
  94. </template>
  95. <!-- 简答题 -->
  96. <template v-if="bank.type == 5">
  97. <view class="pad_8 titBox">
  98. <view class="ans">
  99. <view class="ans_submit answerInfos" >
  100. <view class="answerTitle">我的答案:</view>
  101. {{bank.ques.text || ''}}
  102. <view class="imgs">
  103. <image class="img" v-for="(ques,quesIndex) in bank.ques.imageList" :key="quesIndex" :src="$method.splitImgHost(ques,true)"></image>
  104. </view>
  105. </view>
  106. </view>
  107. <view>
  108. <view class="pad_8 answerInfos">
  109. <view class="answerTitle">答案解析:</view>
  110. <view class="answerContent">
  111. <rich-text :nodes="bank.analysisContent"></rich-text>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. </template>
  117. <!-- 案例题 -->
  118. <template v-if="bank.type == 4">
  119. <view class="pad_8 titBox">
  120. <view class="tabs">
  121. <view class="tab" :class="{current:tabIndex == bank.current}" :key="tabIndex" v-for="(tab,tabIndex) in bank.jsonStr" @click="tabSelect(tabIndex,bankIndex)">问题{{tabIndex}}</view>
  122. </view>
  123. <view v-for="(ansItem,ansIndex) in bank.jsonStr" v-if="bank.current == ansIndex" :key="ansIndex">
  124. <view class="titles">
  125. <rich-text :nodes="ansItem.content"></rich-text>
  126. </view>
  127. <template v-if="ansItem.type == 1">
  128. <view>
  129. <view v-for="(option, childIndex) in ansItem.optionsList" :key="childIndex" class="lisSty">
  130. <text :class="{right:(option.optionsId == bank.ques[ansIndex]) || (option.optionsId == bank.ans[ansIndex]),wrong:(option.optionsId == bank.ques[ansIndex]) && (bank.ques[ansIndex] != bank.ans[ansIndex])}" class="activeTI">{{ ast[childIndex] }}</text>
  131. <rich-text :nodes="option.content"></rich-text>
  132. </view>
  133. </view>
  134. <view>
  135. <view class="pad_8 answer">
  136. <view>正确答案:{{ast[bank.ans[ansIndex]-1]}}</view>
  137. <view>我的答案:{{ast[bank.ques[ansIndex]-1] || ''}}</view>
  138. </view>
  139. <view class="pad_8 answerInfos">
  140. <view class="answerTitle">答案解析</view>
  141. <view class="answerContent">
  142. <rich-text :nodes="option.analysisContent"></rich-text>
  143. </view>
  144. </view>
  145. </view>
  146. </template>
  147. <template v-if="ansItem.type == 2">
  148. <view>
  149. <view v-for="(option, childindex) in ansItem.optionsList" :key="childindex" class="lisSty">
  150. <text :class="{right:right(bankIndex,ansIndex,option),wrong:wrong(bankIndex,ansIndex,option)}" class="activeTI">{{ ast[childindex] }}</text>
  151. <rich-text :nodes="option.content"></rich-text>
  152. </view>
  153. </view>
  154. <view>
  155. <view class="pad_8 answer">
  156. <view>正确答案:
  157. <text :key="ansItemIndex1" v-for="(ansItem1,ansItemIndex1) in bank.ans[ansIndex]">{{ast[ansItem1-1]}}</text>
  158. </view>
  159. <view>我的答案:
  160. <text :key="quesItemIndex" v-for="(quesItem,quesItemIndex) in bank.ques[ansIndex]">{{ast[quesItem-1]}}</text>
  161. </view>
  162. </view>
  163. <view class="pad_8 answerInfos">
  164. <view class="answerTitle">答案解析</view>
  165. <view class="answerContent">
  166. <rich-text :nodes="ansItem.analysisContent"></rich-text>
  167. </view>
  168. </view>
  169. </view>
  170. </template>
  171. <template v-if="ansItem.type == 3">
  172. <view>
  173. <view v-for="(option, childindex) in judge" :key="childindex" class="lisSty">
  174. <text :class="{right:(childindex == bank.ques[ansIndex]) || (childindex == bank.ans[ansIndex]),wrong:(childindex == bank.ques[ansIndex]) && (bank.ques[ansIndex] != bank.ans[ansIndex])}" class="activeTI">{{ ast[childindex] }}</text>
  175. {{ option }}
  176. </view>
  177. </view>
  178. <view>
  179. <view class="pad_8 answer">
  180. <view>正确答案:{{ast[bank.ans[ansIndex]]}}</view>
  181. <view>我的答案:{{ast[bank.ques[ansIndex]] || ''}}</view>
  182. </view>
  183. <view class="pad_8 answerInfos">
  184. <view class="answerTitle">答案解析</view>
  185. <view class="answerContent">
  186. <rich-text :nodes="ansItem.analysisContent"></rich-text>
  187. </view>
  188. </view>
  189. </view>
  190. </template>
  191. <!-- 简答题 -->
  192. <template v-if="ansItem.type == 5">
  193. <view class="ans">
  194. <view class="ans_submit answerInfos">
  195. <view class="answerTitle">我的答案</view>
  196. {{bank.ques[ansIndex].text || ''}}
  197. <view class="imgs" v-if="bank.ques[ansIndex] && bank.ques[ansIndex].imageList.length">
  198. <image class="img" :key="quesIndex" v-for="(ques,quesIndex) in bank.ques[ansIndex].imageList" :src="$method.splitImgHost(ques,true)"></image>
  199. </view>
  200. </view>
  201. </view>
  202. <view>
  203. <view class="pad_8 answerInfos">
  204. <view class="answerTitle">答案解析</view>
  205. <view class="answerContent">
  206. <rich-text :nodes="ansItem.analysisContent"></rich-text>
  207. </view>
  208. </view>
  209. </view>
  210. </template>
  211. </view>
  212. </view>
  213. </template>
  214. <view class="footer_btn">
  215. <view class="collect" @click="collect(collectList[bankIndex], bankIndex)">
  216. <view>
  217. <image src="/static/icon/collect.png" mode=""></image>
  218. <view>收藏</view>
  219. </view>
  220. </view>
  221. <view class="flex_center" @click="openFooterTab">
  222. <view class="up-icon">
  223. <image src="/static/up.png"></image>
  224. </view>
  225. 答题卡
  226. </view>
  227. <view class="collect" @click="pdsubmit">
  228. <view>
  229. <image src="/static/jj.png" mode=""></image>
  230. <view>交卷</view>
  231. </view>
  232. </view>
  233. </view>
  234. </view>
  235. </swiper-item>
  236. </swiper>
  237. <u-popup v-model="show" mode="bottom" border-radius="14" height="680rpx">
  238. <view class="popupView">
  239. <view class="popupTops">
  240. <view class="topIcon"></view>
  241. 点击编号即可跳转至对应题目
  242. </view>
  243. <view class="popupContent">
  244. <scroll-view scroll-y="true" style="height: 506rpx;">
  245. <view class="boxSty">
  246. <view v-for="(item, index) in questionList" :key="index" @click="changeIndex(index)" :class="{isRight:isRight(item,index),isWrong:isWrong(item,index)}" class="liListSty">{{ index + 1 }}</view>
  247. </view>
  248. </scroll-view>
  249. </view>
  250. </view>
  251. </u-popup>
  252. <view class="dialog" v-if="showDialog">
  253. <view class="text">左右滑动切换上下题</view>
  254. <view class="btn" @click="hideDialog">我知道了</view>
  255. </view>
  256. </view>
  257. </template>
  258. <script>
  259. export default {
  260. data() {
  261. return {
  262. id:'',
  263. current:0,
  264. questionList:[],
  265. ast: ['A', 'B', 'C', 'D','E','F','G'],
  266. judge:['错误','正确'],
  267. show: false,
  268. showDialog:false,
  269. bankList: [],
  270. goodsId:'',
  271. recordId:'',
  272. chapterId:'',
  273. moduleId:'',
  274. };
  275. },
  276. onLoad(option){
  277. this.id = option.id || '';
  278. this.goodsId = option.goodsid || '';
  279. this.chapterId = option.chapterId || '';
  280. this.moduleId = option.moduleId || '';
  281. this.recordId = option.recordId || '';
  282. let showDialog = uni.getStorageSync('showDialog');
  283. if(showDialog) {
  284. this.showDialog = false;
  285. } else {
  286. this.showDialog = true;
  287. uni.setStorageSync('showDialog','1');
  288. }
  289. this.goodsQuestionList();
  290. },
  291. onUnload() {
  292. },
  293. methods: {
  294. /**
  295. * 是否有上传图片
  296. */
  297. hasImgs(bank) {
  298. return bank.ansText.imageList.length == 0;
  299. },
  300. goodsQuestionList() {
  301. this.$api.examReport(this.recordId).then(res => {
  302. let questionList = JSON.parse(res.data.data.historyExamJson);
  303. questionList.forEach(json => { //只获取类型1,2,3 单选,多选,判断 ,主观题灭有对错
  304. if(json.type == 1 || json.type == 3) { //单选判断
  305. if(json.ans != json.ques) {
  306. this.questionList.push(json)
  307. }
  308. } else if(json.type == 2) { //判断是否全对
  309. let isRight =
  310. json.ans.every((quesItem, quesIndex) => {
  311. if(json.ques) {
  312. return json.ques[quesIndex] == json.ans[quesIndex];
  313. } else {
  314. return false;
  315. }
  316. });
  317. if (!isRight) {
  318. this.questionList.push(json)
  319. }
  320. }
  321. })
  322. })
  323. },
  324. openFooterTab() {
  325. this.show = true;
  326. },
  327. hideDialog() {
  328. this.showDialog = false
  329. },
  330. changeIndex(index) {
  331. this.current = index
  332. },
  333. swiperChange(e) {
  334. this.current = e.detail.current;
  335. },
  336. isRight(item,index) {
  337. //单选
  338. if(this.questionList[index].ques) {
  339. if(item.type == 1) {
  340. return this.questionList[index].ques == this.questionList[index].ans;
  341. //多选
  342. } else if(item.type == 2) {
  343. //每一项都相等
  344. return this.questionList[index].ques.every((item,i) => {
  345. console.log(item == this.questionList[index].ans[i])
  346. return item == this.questionList[index].ans[i];
  347. })
  348. //判断
  349. } else if(item.type == 3) {
  350. return this.questionList[index].ques == this.questionList[index].ans;
  351. } else {
  352. return false;
  353. }
  354. } else {
  355. return false;
  356. }
  357. },
  358. right(bankIndex,ansIndex,option) {
  359. if(this.questionList[bankIndex].ques[ansIndex] && this.questionList[bankIndex].ans[ansIndex]) {
  360. if((this.questionList[bankIndex].ques[ansIndex].indexOf(option.optionsId) != -1 ) || (this.questionList[bankIndex].ans[ansIndex].indexOf(option.optionsId) != -1)) {
  361. return true
  362. } else {
  363. return false;
  364. }
  365. } else {
  366. return false;
  367. }
  368. },
  369. wrong(bankIndex,ansIndex,option) {
  370. if(this.questionList[bankIndex].ques[ansIndex] && this.questionList[bankIndex].ans[ansIndex]) {
  371. if((this.questionList[bankIndex].ques[ansIndex].indexOf(option.optionsId) != -1 ) && (this.questionList[bankIndex].ans[ansIndex].indexOf(option.optionsId) == -1)) {
  372. return true;
  373. } else {
  374. return false;
  375. }
  376. } else {
  377. return false;
  378. }
  379. },
  380. isWrong(item,index) {
  381. if(this.questionList[index].ques) {
  382. //单选
  383. if(item.type == 1) {
  384. return this.questionList[index].ques != this.questionList[index].ans;
  385. //多选
  386. } else if(item.type == 2) {
  387. //每一项都相等
  388. return this.questionList[index].ques.some((item,i) => {
  389. return item != this.questionList[index].ans[i];
  390. })
  391. //判断
  392. } else if(item.type == 3) {
  393. return this.questionList[index].ques != this.questionList[index].ans;
  394. } else {
  395. return false;
  396. }
  397. } else {
  398. return false;
  399. }
  400. },
  401. tabSelect(index,bankindex) {
  402. this.$set(this.questionList[bankindex],'current',index)
  403. },
  404. }
  405. };
  406. </script>
  407. <style lang="scss" scoped>
  408. .questionBank {
  409. width:100%;
  410. height:100vh;
  411. display: flex;
  412. flex-direction: column;
  413. }
  414. .swiper {
  415. width:100%;
  416. flex:1;
  417. }
  418. .lisSty {
  419. margin-bottom: 16rpx;
  420. display: flex;
  421. .flex_auto {
  422. flex:1;
  423. }
  424. }
  425. .activeTI {
  426. vertical-align: middle;
  427. display: inline-block;
  428. border: 1rpx solid #eee;
  429. border-radius: 50rpx;
  430. height: 48rpx;
  431. line-height: 46rpx;
  432. text-align: center;
  433. width: 48rpx;
  434. margin-right: 15rpx;
  435. color: #666;
  436. font-size: 30rpx;
  437. &.right {
  438. color:#fff;
  439. background:green;
  440. }
  441. &.wrong {
  442. color:#fff;
  443. background:red;
  444. }
  445. &.checked {
  446. color:#fff;
  447. background:blue;
  448. }
  449. }
  450. .submit_checkbox {
  451. margin:20rpx auto;
  452. width: 526rpx;
  453. height: 80rpx;
  454. background: rgba(0, 122, 255, 1);
  455. color:#fff;
  456. text-align: center;
  457. line-height: 80rpx;
  458. font-size: 30rpx;
  459. border-radius: 40rpx;
  460. }
  461. .titles {
  462. overflow: hidden;
  463. margin-bottom: 24rpx;
  464. }
  465. .titBox {
  466. padding: 41rpx 25rpx 24rpx 25rpx;
  467. }
  468. .tabs {
  469. margin:10rpx;
  470. display: flex;
  471. .tab {
  472. margin:0 10rpx;
  473. width: 96rpx;
  474. height: 48rpx;
  475. line-height: 48rpx;
  476. text-align: center;
  477. color:#007AFF;
  478. font-size: 28rpx;
  479. border-radius: 16rpx;
  480. &.current {
  481. color:#fff;
  482. background: #007AFF;
  483. }
  484. }
  485. }
  486. .ans {
  487. margin:8rpx 8rpx 8rpx;
  488. .ans_input {
  489. border-radius: 16rpx;
  490. background:#fff;
  491. .top {
  492. border-bottom:1rpx solid #EEEEEE;
  493. padding: 16rpx;
  494. display: flex;
  495. align-items: center;
  496. .icon {
  497. margin-right:20rpx;
  498. width: 40rpx;
  499. height: 38rpx;
  500. }
  501. .progress {
  502. flex:1;
  503. }
  504. .submit {
  505. width: 168rpx;
  506. height: 48rpx;
  507. line-height: 48rpx;
  508. text-align: center;
  509. color:#fff;
  510. font-size: 30rpx;
  511. background: #007AFF;
  512. border-radius: 24rpx;
  513. &.disabled {
  514. opacity: 0.6;
  515. }
  516. }
  517. }
  518. .textarea {
  519. textarea {
  520. width:100%;
  521. height:287rpx;
  522. padding:10rpx;
  523. }
  524. }
  525. .imgs {
  526. overflow: hidden;
  527. display: flex;
  528. width:100%;
  529. .img {
  530. width: 104rpx;
  531. height: 104rpx;
  532. border-radius: 8rpx;
  533. position:relative;
  534. margin:20rpx;
  535. text {
  536. position:absolute;
  537. right:-15rpx;
  538. top:-15rpx;
  539. width:30rpx;
  540. height:30rpx;
  541. text-align: center;
  542. line-height: 30rpx;
  543. color:#fff;
  544. background:red;
  545. border-radius:50%;
  546. }
  547. image {
  548. width:100%;
  549. height:100%;
  550. }
  551. }
  552. }
  553. }
  554. .ans_submit {
  555. padding:16rpx;
  556. border-radius: 16rpx;
  557. background:#fff;
  558. .imgs {
  559. overflow: hidden;
  560. display: flex;
  561. width:100%;
  562. .img {
  563. width: 104rpx;
  564. height: 104rpx;
  565. border-radius: 8rpx;
  566. position:relative;
  567. margin:20rpx;
  568. image {
  569. width:100%;
  570. height:100%;
  571. }
  572. }
  573. }
  574. }
  575. }
  576. .firstLetter {
  577. display: flex;
  578. justify-content: space-between;
  579. align-items: center;
  580. margin-bottom: 30rpx;
  581. .leftLetters {
  582. display: flex;
  583. align-items: center;
  584. width: 220rpx;
  585. .btnType {
  586. padding: 5rpx 10rpx;
  587. border: 1rpx solid #007aff;
  588. border-radius: 10rpx;
  589. background-color: rgba(0, 122, 255, 0.1);
  590. font-size: 28rpx;
  591. color: #007aff;
  592. margin-right: 15rpx;
  593. }
  594. }
  595. }
  596. .popupView {
  597. height: 100%;
  598. padding-bottom: 100rpx;
  599. .popupTops {
  600. height: 77rpx;
  601. border-bottom: 1rpx solid #eee;
  602. text-align: center;
  603. line-height: 77rpx;
  604. font-size: 24rpx;
  605. color: #999;
  606. position: relative;
  607. .topIcon {
  608. position: absolute;
  609. top: 10rpx;
  610. left: 50%;
  611. transform: translateX(-50%);
  612. width: 80rpx;
  613. height: 8rpx;
  614. background-color: #999;
  615. border-radius: 4rpx;
  616. }
  617. }
  618. .popupContent {
  619. }
  620. }
  621. .pageContent {
  622. position:relative;
  623. background-color: #eaeef1;
  624. height: 100%;
  625. overflow-y: scroll;
  626. padding-top: 8rpx;
  627. padding-bottom: 100rpx;
  628. }
  629. .pad_8 {
  630. background-color: #fff;
  631. margin: 0rpx 8rpx 8rpx;
  632. border-radius: 16rpx;
  633. &.no-margin {
  634. margin-top:-16rpx;
  635. border-radius: 0 0 16rpx 16rpx;
  636. }
  637. }
  638. .answer {
  639. height: 80rpx;
  640. line-height: 80rpx;
  641. padding: 0rpx 24rpx;
  642. display: flex;
  643. align-items: center;
  644. justify-content: space-between;
  645. color: #666;
  646. font-size: 30rpx;
  647. }
  648. .footer_btn {
  649. background-color: #fff;
  650. z-index: 10078;
  651. position: fixed;
  652. bottom: 0rpx;
  653. display: flex;
  654. align-items: center;
  655. justify-content: space-between;
  656. width: 100%;
  657. height: 98rpx;
  658. padding: 0rpx 38rpx;
  659. border-top: 1rpx solid #eee;
  660. .flex_center {
  661. flex:1;
  662. display: flex;
  663. justify-content: center;
  664. align-items: center;
  665. flex-direction: column;
  666. margin:0 200rpx;
  667. font-size: 24rpx;
  668. color: #999999;
  669. .up-icon {
  670. margin-bottom:18rpx;
  671. width:100%;
  672. display: flex;
  673. justify-content: center;
  674. image {
  675. width:58rpx;
  676. height:21rpx;
  677. }
  678. }
  679. }
  680. .collect {
  681. visibility: hidden;
  682. width:100rpx;
  683. &.show {
  684. visibility: visible;
  685. }
  686. >view {
  687. display: flex;
  688. flex-direction: column;
  689. align-items: center;
  690. justify-content: center;
  691. image {
  692. width:32rpx;
  693. height:32rpx;
  694. margin-bottom:6rpx;
  695. }
  696. view {
  697. font-size: 24rpx;
  698. color: #999999;
  699. }
  700. }
  701. }
  702. }
  703. .boxSty {
  704. padding: 44rpx 41rpx 0rpx;
  705. }
  706. .liListSty {
  707. border:1rpx solid #EEEEEE;
  708. width: 88rpx;
  709. height: 88rpx;
  710. border-radius: 32rpx;
  711. text-align: center;
  712. line-height: 88rpx;
  713. color: #333;
  714. font-size: 32rpx;
  715. float: left;
  716. margin: 20rpx 23rpx;
  717. &.isRight {
  718. border:1rpx solid #EEEEEE;
  719. color:#fff;
  720. background: green;
  721. }
  722. &.isWrong {
  723. border:1rpx solid #EEEEEE;
  724. color:#fff;
  725. background: red;
  726. }
  727. }
  728. .answerInfos {
  729. padding: 25rpx 25rpx 25rpx 23rpx;
  730. }
  731. .answerTitle {
  732. margin-bottom: 28rpx;
  733. color: #666;
  734. font-size: 30rpx;
  735. }
  736. .answerContent {
  737. font-size: 30rpx;
  738. color: #666;
  739. }
  740. .textChild {
  741. display: inline-block;
  742. vertical-align: middle;
  743. }
  744. .dialog {
  745. position: fixed;
  746. left:0;
  747. top:0;
  748. width:100%;
  749. height:100%;
  750. background-color: rgba(0,0,0,0.8);
  751. display: flex;
  752. flex-direction: column;
  753. align-items: center;
  754. justify-content: center;
  755. z-index: 20000;
  756. .pointer {
  757. width:338rpx;
  758. height:240rpx;
  759. }
  760. .text {
  761. font-size: 32rpx;
  762. color: #FFFFFF;
  763. text-align: center;
  764. }
  765. .btn {
  766. width: 242rpx;
  767. height: 82rpx;
  768. border: 2rpx solid #FFFFFF;
  769. border-radius: 16rpx;
  770. text-align: center;
  771. line-height: 82rpx;
  772. margin:41rpx auto;
  773. color:#fff;
  774. font-size: 32rpx;
  775. }
  776. }
  777. .popboxs {
  778. width: 100%;
  779. height: 100%;
  780. display: flex;
  781. flex-direction: column;
  782. align-items: center;
  783. }
  784. .classTops {
  785. flex-shrink: 0;
  786. padding: 39rpx 0rpx 4rpx;
  787. font-weight: bold;
  788. color: #333;
  789. font-size: 30rpx;
  790. }
  791. .textStys {
  792. width: 100%;
  793. flex: 1;
  794. padding: 36rpx;
  795. }
  796. .classFootsty {
  797. flex-shrink: 0;
  798. display: flex;
  799. align-items: center;
  800. justify-content: center;
  801. padding: 10rpx 0rpx 40rpx;
  802. .btnsty {
  803. width: 200rpx;
  804. height: 80rpx;
  805. border-radius: 40rpx;
  806. font-weight: bold;
  807. font-size: 30rpx;
  808. text-align: center;
  809. line-height: 80rpx;
  810. }
  811. .btns1 {
  812. background-color: #f5f5f5;
  813. color: #007aff;
  814. }
  815. .btns2 {
  816. margin-left: 40rpx;
  817. background-color: #007aff;
  818. color: #ffffff;
  819. }
  820. }
  821. </style>