questionBankWrongExplain.vue 23 KB

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