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