questionBankExplain.vue 21 KB

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