questionBankExplain.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994
  1. <template>
  2. <view class="questionBank">
  3. <nav-bar title="解析"></nav-bar>
  4. <swiper class="swiper" :current="current" @change="swiperChange" :interval="interval">
  5. <swiper-item v-for="(bank,bankIndex) in questionList" :key="bankIndex">
  6. <view class="pageContent">
  7. <view class="pad_8 titBox" >
  8. <view class="firstLetter">
  9. <view class="leftLetters">
  10. <view class="btnType">
  11. <text v-if="bank.type==1">单选</text>
  12. <text v-if="bank.type==2">多选</text>
  13. <text v-if="bank.type==3">判断</text>
  14. <text v-if="bank.type==4">案例</text>
  15. <text v-if="bank.type==5">简答</text>
  16. </view>
  17. <text>{{bankIndex+1}}/{{questionList.length}}</text>
  18. </view>
  19. <view style="color: #666;font-size: 28rpx;"></view>
  20. <view class="leftLetters"></view>
  21. </view>
  22. <view class="titles">
  23. <rich-text :nodes="bank.content"></rich-text>
  24. </view>
  25. </view>
  26. <template v-if="bank.type == 1">
  27. <view class="pad_8 titBox no-margin">
  28. <view>
  29. <view v-for="(item, index) in bank.jsonStr" :key="index" class="lisSty">
  30. <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>
  31. <view class="flex_auto">{{ item.content }}</view>
  32. </view>
  33. </view>
  34. </view>
  35. <view>
  36. <view class="pad_8 answer">
  37. <view>正确答案:{{ast[bank.ans-1]}}</view>
  38. </view>
  39. <view class="pad_8 answerInfos">
  40. <view class="answerTitle">答案解析</view>
  41. <view class="answerContent">
  42. <rich-text :nodes="bank.analysisContent"></rich-text>
  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.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>
  52. <view class="flex_auto">{{ item.content }}</view>
  53. </view>
  54. </view>
  55. </view>
  56. <view>
  57. <view class="pad_8 answer">
  58. <view>正确答案:
  59. <text :key="ansItemIndex" v-for="(ansItem,ansItemIndex) in bank.ans">{{ast[ansItem-1]}}</text>
  60. </view>
  61. </view>
  62. <view class="pad_8 answerInfos">
  63. <view class="answerTitle">答案解析</view>
  64. <view class="answerContent">
  65. <rich-text :nodes="bank.analysisContent"></rich-text>
  66. </view>
  67. </view>
  68. </view>
  69. </template>
  70. <template v-if="bank.type == 3">
  71. <view class="pad_8 titBox no-margin">
  72. <view>
  73. <view v-for="(item, index) in judge" :key="index" class="lisSty">
  74. <text :class="{right:(index == bank.ques) || (index == bank.ans),wrong:(index == bank.ques) && (bank.ques != bank.ans)}" class="activeTI">{{ ast[index] }}</text>
  75. <view class="flex_auto">
  76. {{ item }}
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. <view>
  82. <view class="pad_8 answer">
  83. <view>正确答案:{{ast[bank.ans]}}</view>
  84. </view>
  85. <view class="pad_8 answerInfos">
  86. <view class="answerTitle">答案解析</view>
  87. <view class="answerContent">
  88. <rich-text :nodes="bank.analysisContent"></rich-text>
  89. </view>
  90. </view>
  91. </view>
  92. </template>
  93. <!-- 简答题 -->
  94. <template v-if="bank.type == 5">
  95. <view class="pad_8 titBox">
  96. <view>
  97. <view class="pad_8 answerInfos">
  98. <view class="answerTitle">答案解析:</view>
  99. <view class="answerContent">
  100. <rich-text :nodes="bank.analysisContent"></rich-text>
  101. </view>
  102. </view>
  103. </view>
  104. </view>
  105. </template>
  106. <!-- 案例题 -->
  107. <template v-if="bank.type == 4">
  108. <view class="tabs">
  109. <view class="tab"
  110. :class="{current:tabIndex == bank.current}"
  111. :key="tabIndex"
  112. v-for="(tab,tabIndex) in bank.jsonStr"
  113. @click="tabSelect(tabIndex,bankIndex)"
  114. >
  115. 问题{{tabIndex+1}}
  116. </view>
  117. </view>
  118. <view v-for="(ansItem,ansIndex) in bank.jsonStr" v-if="bank.current == ansIndex" :key="ansIndex">
  119. <template v-if="ansItem.type == 1">
  120. <view class="pad_8 titBox">
  121. <view class="leftLetters">
  122. <view class="btnType">
  123. <text>单选</text>
  124. </view>
  125. </view>
  126. <view class="titles">
  127. <rich-text :nodes="ansItem.content"></rich-text>
  128. </view>
  129. <view>
  130. <view v-for="(option, childIndex) in ansItem.optionsList" :key="childIndex" class="lisSty">
  131. <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>
  132. <view class="flex_auto">
  133. <rich-text :nodes="option.content"></rich-text>
  134. </view>
  135. </view>
  136. </view>
  137. </view>
  138. <view>
  139. <view class="pad_8 answer">
  140. <view>正确答案:{{ast[bank.ans[ansIndex]-1]}}</view>
  141. </view>
  142. <view class="pad_8 answerInfos">
  143. <view class="answerTitle">答案解析</view>
  144. <view class="answerContent">
  145. <rich-text :nodes="option.analysisContent"></rich-text>
  146. </view>
  147. </view>
  148. </view>
  149. </template>
  150. <template v-if="ansItem.type == 2">
  151. <view class="pad_8 titBox">
  152. <view class="leftLetters">
  153. <view class="btnType">
  154. <text>多选</text>
  155. </view>
  156. </view>
  157. <view class="titles">
  158. <rich-text :nodes="ansItem.content"></rich-text>
  159. </view>
  160. <view>
  161. <view v-for="(option, childindex) in ansItem.optionsList" :key="childindex" class="lisSty">
  162. <text :class="{right:right(bankIndex,ansIndex,option),wrong:wrong(bankIndex,ansIndex,option)}" class="activeTI">{{ ast[childindex] }}</text>
  163. <view class="flex_auto">
  164. <rich-text :nodes="option.content"></rich-text>
  165. </view>
  166. </view>
  167. </view>
  168. </view>
  169. <view v-if="bank.ques[ansIndex]">
  170. <view class="pad_8 answer">
  171. <view>正确答案:
  172. <text :key="ansItemIndex1" v-for="(ansItem1,ansItemIndex1) in bank.ans[ansIndex]">{{ast[ansItem1-1]}}</text>
  173. </view>
  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. <template v-if="ansItem.type == 3">
  184. <view class="pad_8 titBox">
  185. <view class="leftLetters">
  186. <view class="btnType">
  187. <text>判断</text>
  188. </view>
  189. </view>
  190. <view class="titles">
  191. <rich-text :nodes="ansItem.content"></rich-text>
  192. </view>
  193. <view>
  194. <view v-for="(option, childindex) in judge" :key="childindex" class="lisSty">
  195. <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>
  196. <view class="flex_auto">
  197. {{ option }}
  198. </view>
  199. </view>
  200. </view>
  201. </view>
  202. <view>
  203. <view class="pad_8 answer">
  204. <view>正确答案:{{ast[bank.ans[ansIndex]]}}</view>
  205. </view>
  206. <view class="pad_8 answerInfos">
  207. <view class="answerTitle">答案解析</view>
  208. <view class="answerContent">
  209. <rich-text :nodes="ansItem.analysisContent"></rich-text>
  210. </view>
  211. </view>
  212. </view>
  213. </template>
  214. <!-- 简答题 -->
  215. <template v-if="ansItem.type == 5">
  216. <view class="pad_8 titBox">
  217. <view class="leftLetters">
  218. <view class="btnType">
  219. <text>简答</text>
  220. </view>
  221. </view>
  222. <view class="titles">
  223. <rich-text :nodes="ansItem.content"></rich-text>
  224. </view>
  225. </view>
  226. <view>
  227. <view class="pad_8 answerInfos">
  228. <view class="answerTitle">答案解析</view>
  229. <view class="answerContent">
  230. <rich-text :nodes="ansItem.analysisContent"></rich-text>
  231. </view>
  232. </view>
  233. </view>
  234. </template>
  235. </view>
  236. </template>
  237. <view class="footer_btn">
  238. <view class="collect">
  239. <view>
  240. <image src="/static/icon/collect.png" mode=""></image>
  241. <view>收藏</view>
  242. </view>
  243. </view>
  244. <view class="flex_center" @click="openFooterTab">
  245. <view class="up-icon">
  246. <image src="/static/up.png"></image>
  247. </view>
  248. 答题卡
  249. </view>
  250. <view class="collect">
  251. <view>
  252. <image src="/static/jj.png" mode=""></image>
  253. <view>交卷</view>
  254. </view>
  255. </view>
  256. </view>
  257. </view>
  258. </swiper-item>
  259. </swiper>
  260. <u-popup v-model="show" mode="bottom" border-radius="14" height="680rpx">
  261. <view class="popupView">
  262. <view class="popupTops">
  263. <view class="topIcon"></view>
  264. 点击编号即可跳转至对应题目
  265. </view>
  266. <view class="popupContent">
  267. <scroll-view scroll-y="true" style="height: 506rpx;">
  268. <view class="boxSty">
  269. <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>
  270. </view>
  271. </scroll-view>
  272. </view>
  273. </view>
  274. </u-popup>
  275. <view class="dialog" v-if="showDialog">
  276. <view class="text">左右滑动切换上下题</view>
  277. <view class="btn" @click="hideDialog">我知道了</view>
  278. </view>
  279. </view>
  280. </template>
  281. <script>
  282. export default {
  283. data() {
  284. return {
  285. id:'',
  286. current:0,
  287. showpopups:false,
  288. questionList:[],
  289. ast: ['A', 'B', 'C', 'D','E','F','G'],
  290. judge:['错误','正确'],
  291. show: false,
  292. showDialog:false,
  293. bankList: [],
  294. collectList:[],
  295. goodsId:'',
  296. recordId:'',
  297. chapterId:'',
  298. moduleId:'',
  299. };
  300. },
  301. onLoad(option){
  302. this.id = option.id || '';
  303. this.goodsId = option.goodsid || '';
  304. this.chapterId = option.chapterId || '';
  305. this.moduleId = option.moduleId || '';
  306. this.recordId = option.recordId || '';
  307. let showDialog = uni.getStorageSync('showDialog');
  308. if(showDialog) {
  309. this.showDialog = false;
  310. } else {
  311. this.showDialog = true;
  312. uni.setStorageSync('showDialog','1');
  313. }
  314. this.goodsQuestionList();
  315. },
  316. onUnload() {
  317. },
  318. methods: {
  319. /**
  320. * 是否有上传图片
  321. */
  322. hasImgs(bank) {
  323. return bank.ansText.imageList.length == 0;
  324. },
  325. goodsQuestionList() {
  326. //解析
  327. this.$api.goodsQuestionList({
  328. examId:this.id
  329. }).then(res => {
  330. res.data.data.forEach((item,index) => {
  331. if(typeof item.jsonStr == 'string') {
  332. item.jsonStr = JSON.parse(item.jsonStr)
  333. if(item.type == 2) { //多选
  334. item.jsonStr.forEach(str => {
  335. str.optionsId = ''+str.optionsId;
  336. })
  337. let arr = item.answerQuestion.split(',');
  338. arr.forEach((a,i) => {
  339. arr[i] = ''+a;
  340. })
  341. item.ans = arr;
  342. item.ques = item.ans;
  343. return;
  344. } else if(item.type == 5) {
  345. item.ansText = {
  346. text: item.analysisContent,
  347. imageList: []
  348. }
  349. item.ques = {
  350. text:item.analysisContent,
  351. imageList:[]
  352. }
  353. return;
  354. } else if(item.type == 4) {
  355. console.log(item.jsonStr)
  356. item.ques = []
  357. item.current = 0;
  358. let ansArr = [];
  359. item.jsonStr.forEach((json,index) => {
  360. if(json.type == 1) {
  361. ansArr[index] = json.answerQuestion;
  362. } else if(json.type == 2) {
  363. json.optionsList.forEach(str => {
  364. str.optionsId = ''+str.optionsId;
  365. })
  366. let arr = json.answerQuestion.split(',');
  367. arr.forEach((a,i) => {
  368. arr[i] = ''+a;
  369. })
  370. ansArr[index] = arr
  371. } else if(json.type == 3) {
  372. ansArr[index] = json.answerQuestion;
  373. } else if(json.type == 5) {
  374. ansArr[index] = {
  375. text: '',
  376. imageList: []
  377. }
  378. json.ansText = {
  379. text: '',
  380. imageList: []
  381. }
  382. }
  383. })
  384. item.ans = ansArr
  385. item.ques = item.ans;
  386. return;
  387. }
  388. item.ans = item.answerQuestion
  389. item.ques = item.ans;
  390. } else {
  391. item.ques = item.ans;
  392. }
  393. })
  394. this.questionList = res.data.data;
  395. })
  396. },
  397. openFooterTab() {
  398. this.show = true;
  399. },
  400. hideDialog() {
  401. this.showDialog = false
  402. },
  403. changeIndex(index) {
  404. this.current = index
  405. },
  406. swiperChange(e) {
  407. this.current = e.detail.current;
  408. },
  409. isRight(item,index) {
  410. //单选
  411. if(this.questionList[index].ques) {
  412. if(item.type == 1) {
  413. return this.questionList[index].ques == this.questionList[index].ans;
  414. //多选
  415. } else if(item.type == 2) {
  416. //每一项都相等
  417. return this.questionList[index].ans.every((item,i) => {
  418. return item == this.questionList[index].ques[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].ans.some((item,i) => {
  461. return item != this.questionList[index].ques[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>