questionBankExplain.vue 21 KB

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