questionBankAllExplain.vue 23 KB

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