questionBankExplain.vue 23 KB

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