questionBankWrongExplain.vue 23 KB

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