questionBankExplain.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993
  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].ans.every((item,i) => {
  417. return item == this.questionList[index].ques[i];
  418. })
  419. //判断
  420. } else if(item.type == 3) {
  421. return this.questionList[index].ques == this.questionList[index].ans;
  422. } else {
  423. return false;
  424. }
  425. } else {
  426. return false;
  427. }
  428. },
  429. right(bankIndex,ansIndex,option) {
  430. if(this.questionList[bankIndex].ques[ansIndex] && this.questionList[bankIndex].ans[ansIndex]) {
  431. if((this.questionList[bankIndex].ques[ansIndex].indexOf(option.optionsId) != -1 ) || (this.questionList[bankIndex].ans[ansIndex].indexOf(option.optionsId) != -1)) {
  432. return true
  433. } else {
  434. return false;
  435. }
  436. } else {
  437. return false;
  438. }
  439. },
  440. wrong(bankIndex,ansIndex,option) {
  441. if(this.questionList[bankIndex].ques[ansIndex] && this.questionList[bankIndex].ans[ansIndex]) {
  442. if((this.questionList[bankIndex].ques[ansIndex].indexOf(option.optionsId) != -1 ) && (this.questionList[bankIndex].ans[ansIndex].indexOf(option.optionsId) == -1)) {
  443. return true;
  444. } else {
  445. return false;
  446. }
  447. } else {
  448. return false;
  449. }
  450. },
  451. isWrong(item,index) {
  452. if(this.questionList[index].ques) {
  453. //单选
  454. if(item.type == 1) {
  455. return this.questionList[index].ques != this.questionList[index].ans;
  456. //多选
  457. } else if(item.type == 2) {
  458. //每一项都相等
  459. return this.questionList[index].ans.some((item,i) => {
  460. return item != this.questionList[index].ques[i];
  461. })
  462. //判断
  463. } else if(item.type == 3) {
  464. return this.questionList[index].ques != this.questionList[index].ans;
  465. } else {
  466. return false;
  467. }
  468. } else {
  469. return false;
  470. }
  471. },
  472. tabSelect(index,bankindex) {
  473. this.$set(this.questionList[bankindex],'current',index)
  474. },
  475. }
  476. };
  477. </script>
  478. <style lang="scss" scoped>
  479. .questionBank {
  480. width:100%;
  481. height:100vh;
  482. display: flex;
  483. flex-direction: column;
  484. }
  485. .swiper {
  486. width:100%;
  487. flex:1;
  488. }
  489. .lisSty {
  490. margin-bottom: 16rpx;
  491. display: flex;
  492. align-items: center;
  493. .flex_auto {
  494. flex:1;
  495. }
  496. }
  497. .activeTI {
  498. vertical-align: middle;
  499. display: inline-block;
  500. border: 1rpx solid #eee;
  501. border-radius: 50rpx;
  502. height: 48rpx;
  503. line-height: 46rpx;
  504. text-align: center;
  505. width: 48rpx;
  506. margin-right: 15rpx;
  507. color: #666;
  508. font-size: 30rpx;
  509. &.right {
  510. color:#fff;
  511. background:#36C75A;
  512. }
  513. &.wrong {
  514. color:#fff;
  515. background:#FF3B30;
  516. }
  517. &.checked {
  518. color:#fff;
  519. background:#007AFF;
  520. }
  521. }
  522. .submit_checkbox {
  523. position:fixed;
  524. left:0;
  525. right:0;
  526. bottom:120rpx;
  527. margin: 20rpx auto;
  528. width: 526rpx;
  529. height: 80rpx;
  530. background: rgba(0, 122, 255, 1);
  531. color:#fff;
  532. text-align: center;
  533. line-height: 80rpx;
  534. font-size: 30rpx;
  535. border-radius: 40rpx;
  536. }
  537. .titles {
  538. overflow: hidden;
  539. margin-bottom: 24rpx;
  540. }
  541. .titBox {
  542. padding: 41rpx 25rpx 24rpx 25rpx;
  543. }
  544. .titBox_title {
  545. padding: 21rpx;
  546. }
  547. .tabs {
  548. margin:10rpx;
  549. display: flex;
  550. .tab {
  551. margin: 0 4rpx;
  552. padding:10rpx 13rpx;
  553. text-align: center;
  554. color: #007aff;
  555. font-size: 28rpx;
  556. border-radius: 16rpx;
  557. background:#fff;
  558. &.current {
  559. color:#fff;
  560. background: #007AFF;
  561. }
  562. }
  563. }
  564. .ans {
  565. margin:8rpx 8rpx 8rpx;
  566. .ans_input {
  567. border-radius: 16rpx;
  568. background:#fff;
  569. .top {
  570. border-bottom:1rpx solid #EEEEEE;
  571. padding: 16rpx;
  572. display: flex;
  573. align-items: center;
  574. .icon {
  575. margin-right:20rpx;
  576. width: 40rpx;
  577. height: 38rpx;
  578. }
  579. .progress {
  580. flex:1;
  581. }
  582. .submit {
  583. width: 168rpx;
  584. height: 48rpx;
  585. line-height: 48rpx;
  586. text-align: center;
  587. color:#fff;
  588. font-size: 30rpx;
  589. background: #007AFF;
  590. border-radius: 24rpx;
  591. &.disabled {
  592. opacity: 0.6;
  593. }
  594. }
  595. }
  596. .textarea {
  597. textarea {
  598. width:100%;
  599. height:287rpx;
  600. padding:10rpx;
  601. }
  602. }
  603. .imgs {
  604. overflow: hidden;
  605. display: flex;
  606. width:100%;
  607. .img {
  608. width: 104rpx;
  609. height: 104rpx;
  610. border-radius: 8rpx;
  611. position:relative;
  612. margin:20rpx;
  613. text {
  614. position:absolute;
  615. right:-15rpx;
  616. top:-15rpx;
  617. width:30rpx;
  618. height:30rpx;
  619. text-align: center;
  620. line-height: 30rpx;
  621. color:#fff;
  622. background:#FF3B30;
  623. border-radius:50%;
  624. }
  625. image {
  626. width:100%;
  627. height:100%;
  628. }
  629. }
  630. }
  631. }
  632. .ans_submit {
  633. padding:16rpx;
  634. border-radius: 16rpx;
  635. background:#fff;
  636. .imgs {
  637. overflow: hidden;
  638. display: flex;
  639. width:100%;
  640. .img {
  641. width: 104rpx;
  642. height: 104rpx;
  643. border-radius: 8rpx;
  644. position:relative;
  645. margin:20rpx;
  646. image {
  647. width:100%;
  648. height:100%;
  649. }
  650. }
  651. }
  652. }
  653. }
  654. .leftLetters {
  655. display: flex;
  656. align-items: center;
  657. width: 220rpx;
  658. .btnType {
  659. padding: 5rpx 10rpx;
  660. border: 1rpx solid #007aff;
  661. border-radius: 10rpx;
  662. background-color: rgba(0, 122, 255, 0.1);
  663. font-size: 28rpx;
  664. color: #007aff;
  665. margin-right: 15rpx;
  666. }
  667. }
  668. .firstLetter {
  669. display: flex;
  670. justify-content: space-between;
  671. align-items: center;
  672. margin-bottom: 30rpx;
  673. }
  674. .popupView {
  675. height: 100%;
  676. padding-bottom: 100rpx;
  677. .popupTops {
  678. height: 77rpx;
  679. border-bottom: 1rpx solid #eee;
  680. text-align: center;
  681. line-height: 77rpx;
  682. font-size: 24rpx;
  683. color: #999;
  684. position: relative;
  685. .topIcon {
  686. position: absolute;
  687. top: 10rpx;
  688. left: 50%;
  689. transform: translateX(-50%);
  690. width: 80rpx;
  691. height: 8rpx;
  692. background-color: #999;
  693. border-radius: 4rpx;
  694. }
  695. }
  696. .popupContent {
  697. }
  698. }
  699. .pageContent {
  700. position:relative;
  701. background-color: #eaeef1;
  702. height: 100%;
  703. overflow-y: scroll;
  704. padding-top: 8rpx;
  705. padding-bottom: 100rpx;
  706. }
  707. .pad_8 {
  708. background-color: #fff;
  709. margin: 0rpx 8rpx 8rpx;
  710. border-radius: 16rpx;
  711. &.no-margin {
  712. margin-top:-16rpx;
  713. border-radius: 0 0 16rpx 16rpx;
  714. }
  715. }
  716. .answer {
  717. height: 80rpx;
  718. line-height: 80rpx;
  719. padding: 0rpx 24rpx;
  720. display: flex;
  721. align-items: center;
  722. justify-content: space-between;
  723. color: #666;
  724. font-size: 30rpx;
  725. }
  726. .footer_btn {
  727. background-color: #fff;
  728. z-index: 10078;
  729. position: fixed;
  730. bottom: 0rpx;
  731. display: flex;
  732. align-items: center;
  733. justify-content: space-between;
  734. width: 100%;
  735. height: 98rpx;
  736. padding: 0rpx 38rpx;
  737. border-top: 1rpx solid #eee;
  738. .flex_center {
  739. flex:1;
  740. display: flex;
  741. justify-content: center;
  742. align-items: center;
  743. flex-direction: column;
  744. margin:0 200rpx;
  745. font-size: 24rpx;
  746. color: #999999;
  747. .up-icon {
  748. margin-bottom:18rpx;
  749. width:100%;
  750. display: flex;
  751. justify-content: center;
  752. image {
  753. width:58rpx;
  754. height:21rpx;
  755. }
  756. }
  757. }
  758. .collect {
  759. visibility: hidden;
  760. width:100rpx;
  761. &.show {
  762. visibility: visible;
  763. }
  764. >view {
  765. display: flex;
  766. flex-direction: column;
  767. align-items: center;
  768. justify-content: center;
  769. image {
  770. width:32rpx;
  771. height:32rpx;
  772. margin-bottom:6rpx;
  773. }
  774. view {
  775. font-size: 24rpx;
  776. color: #999999;
  777. }
  778. }
  779. }
  780. }
  781. .boxSty {
  782. padding: 44rpx 41rpx 0rpx;
  783. }
  784. .liListSty {
  785. border:1rpx solid #EEEEEE;
  786. width: 88rpx;
  787. height: 88rpx;
  788. border-radius: 32rpx;
  789. text-align: center;
  790. line-height: 88rpx;
  791. color: #333;
  792. font-size: 32rpx;
  793. float: left;
  794. margin: 20rpx 23rpx;
  795. &.isRight {
  796. border:1rpx solid #EEEEEE;
  797. color:#fff;
  798. background: #36C75A;
  799. }
  800. &.isWrong {
  801. border:1rpx solid #EEEEEE;
  802. color:#fff;
  803. background: #FF3B30;
  804. }
  805. }
  806. .answerInfos {
  807. padding: 25rpx 25rpx 25rpx 23rpx;
  808. }
  809. .answerTitle {
  810. margin-bottom: 28rpx;
  811. color: #666;
  812. font-size: 30rpx;
  813. }
  814. .answerContent {
  815. font-size: 30rpx;
  816. color: #666;
  817. }
  818. .textChild {
  819. display: inline-block;
  820. vertical-align: middle;
  821. }
  822. .dialog {
  823. position: fixed;
  824. left:0;
  825. top:0;
  826. width:100%;
  827. height:100%;
  828. background-color: rgba(0,0,0,0.8);
  829. display: flex;
  830. flex-direction: column;
  831. align-items: center;
  832. justify-content: center;
  833. z-index: 20000;
  834. .pointer {
  835. width:338rpx;
  836. height:240rpx;
  837. }
  838. .text {
  839. font-size: 32rpx;
  840. color: #FFFFFF;
  841. text-align: center;
  842. }
  843. .btn {
  844. width: 242rpx;
  845. height: 82rpx;
  846. border: 2rpx solid #FFFFFF;
  847. border-radius: 16rpx;
  848. text-align: center;
  849. line-height: 82rpx;
  850. margin:41rpx auto;
  851. color:#fff;
  852. font-size: 32rpx;
  853. }
  854. }
  855. .popboxs {
  856. width: 100%;
  857. height: 100%;
  858. display: flex;
  859. flex-direction: column;
  860. align-items: center;
  861. }
  862. .classTops {
  863. flex-shrink: 0;
  864. padding: 39rpx 0rpx 4rpx;
  865. font-weight: bold;
  866. color: #333;
  867. font-size: 30rpx;
  868. }
  869. .textStys {
  870. width: 100%;
  871. flex: 1;
  872. padding: 36rpx;
  873. }
  874. .classFootsty {
  875. flex-shrink: 0;
  876. display: flex;
  877. align-items: center;
  878. justify-content: center;
  879. padding: 10rpx 0rpx 40rpx;
  880. .btnsty {
  881. width: 200rpx;
  882. height: 80rpx;
  883. border-radius: 40rpx;
  884. font-weight: bold;
  885. font-size: 30rpx;
  886. text-align: center;
  887. line-height: 80rpx;
  888. }
  889. .btns1 {
  890. background-color: #f5f5f5;
  891. color: #007aff;
  892. }
  893. .btns2 {
  894. margin-left: 40rpx;
  895. background-color: #007aff;
  896. color: #ffffff;
  897. }
  898. }
  899. </style>