questionBankAllExplain.vue 22 KB

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