questionBankAllExplain.vue 22 KB

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