questionBankWrongExplain.vue 24 KB

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