questionBankExplain.vue 22 KB

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