questionBankExplain.vue 22 KB

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