questionBankWrongExplain.vue 24 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003
  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 v-if="!bank.ques">
  28. <view v-for="(item, index) in bank.jsonStr" :key="index" class="lisSty">
  29. <view class="activeTI">{{ ast[index] }}</view>
  30. <view class="flex_auto">{{ item.content }}</view>
  31. </view>
  32. </view>
  33. <view v-if="bank.ques">
  34. <view v-for="(item, index) in bank.jsonStr" :key="index" class="lisSty">
  35. <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>
  36. <view class="flex_auto">{{ item.content }}</view>
  37. </view>
  38. </view>
  39. </view>
  40. <view>
  41. <view class="pad_8 answer">
  42. <view>正确答案:{{ast[bank.ans-1]}}</view>
  43. <view>我的答案:{{ast[bank.ques-1] || ''}}</view>
  44. </view>
  45. <view class="pad_8 answerInfos">
  46. <view class="answerTitle">答案解析</view>
  47. <view class="answerContent">
  48. <rich-text :nodes="bank.analysisContent"></rich-text>
  49. </view>
  50. </view>
  51. </view>
  52. </template>
  53. <template v-if="bank.type == 2">
  54. <view class="pad_8 titBox no-margin">
  55. <view v-if="!bank.ques">
  56. <view v-for="(item, index) in bank.jsonStr" :key="index" class="lisSty">
  57. <view :class="{checked:item.checked}" class="activeTI">{{ ast[index] }}</view>
  58. <view class="flex_auto">{{ item.content }}</view>
  59. </view>
  60. </view>
  61. <view v-if="bank.ques">
  62. <view v-for="(item, index) in bank.jsonStr" :key="index" class="lisSty">
  63. <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>
  64. <view class="flex_auto">{{ item.content }}</view>
  65. </view>
  66. </view>
  67. </view>
  68. <view >
  69. <view class="pad_8 answer">
  70. <view>正确答案:
  71. <text :key="ansItemIndex" v-for="(ansItem,ansItemIndex) in bank.ans">{{ast[ansItem-1]}}</text>
  72. </view>
  73. <view>我的答案:
  74. <text :key="quesItemIndex" v-for="(quesItem,quesItemIndex) in bank.ques">{{ast[quesItem-1]}}</text>
  75. </view>
  76. </view>
  77. <view class="pad_8 answerInfos">
  78. <view class="answerTitle">答案解析</view>
  79. <view class="answerContent">
  80. <rich-text :nodes="bank.analysisContent"></rich-text>
  81. </view>
  82. </view>
  83. </view>
  84. </template>
  85. <template v-if="bank.type == 3">
  86. <view class="pad_8 titBox no-margin">
  87. <view v-if="!bank.ques">
  88. <view v-for="(item, index) in judge" :key="index" class="lisSty">
  89. <view class="activeTI">{{ ast[index] }}</view>
  90. <view class="flex_auto">
  91. {{ item }}
  92. </view>
  93. </view>
  94. </view>
  95. <view v-if="bank.ques">
  96. <view v-for="(item, index) in judge" :key="index" class="lisSty">
  97. <text :class="{right:(index == bank.ques) || (index == bank.ans),wrong:(index == bank.ques) && (bank.ques != bank.ans)}" class="activeTI">{{ ast[index] }}</text>
  98. <view class="flex_auto">
  99. {{ item }}
  100. </view>
  101. </view>
  102. </view>
  103. </view>
  104. <view >
  105. <view class="pad_8 answer">
  106. <view>正确答案:{{ast[bank.ans]}}</view>
  107. <view>我的答案:{{ast[bank.ques] || ''}}</view>
  108. </view>
  109. <view class="pad_8 answerInfos">
  110. <view class="answerTitle">答案解析</view>
  111. <view class="answerContent">
  112. <rich-text :nodes="bank.analysisContent"></rich-text>
  113. </view>
  114. </view>
  115. </view>
  116. </template>
  117. <!-- 简答题 -->
  118. <template v-if="bank.type == 5">
  119. <view class="pad_8 titBox">
  120. <view class="ans">
  121. <view class="ans_submit answerInfos" >
  122. <view class="answerTitle">我的答案:</view>
  123. {{bank.ques.text || ''}}
  124. <view class="imgs">
  125. <image class="img" v-for="(ques,quesIndex) in bank.ques.imageList" :key="quesIndex" :src="$method.splitImgHost(ques,true)"></image>
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. <view>
  131. <view class="pad_8 answerInfos">
  132. <view class="answerTitle">答案解析:</view>
  133. <view class="answerContent">
  134. <rich-text :nodes="bank.analysisContent"></rich-text>
  135. </view>
  136. </view>
  137. </view>
  138. </template>
  139. <!-- 案例题 -->
  140. <template v-if="bank.type == 4">
  141. <view class="tabs">
  142. <view class="tab" :class="{current:tabIndex == bank.current}" :key="tabIndex" v-for="(tab,tabIndex) in bank.jsonStr" @click="tabSelect(tabIndex,bankIndex)">问题{{tabIndex+1}}</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="leftLetters">
  148. <view class="btnType">
  149. <text>单选</text>
  150. </view>
  151. </view>
  152. <view class="titles">
  153. <rich-text :nodes="ansItem.content"></rich-text>
  154. </view>
  155. <view v-if="!bank.ques[ansIndex]">
  156. <view v-for="(option, childIndex) in ansItem.optionsList" :key="childIndex" class="lisSty">
  157. <view class="activeTI">{{ ast[childIndex] }}</view>
  158. <view class="flex_auto">
  159. <rich-text class="textChild" :nodes="option.content"></rich-text>
  160. </view>
  161. </view>
  162. </view>
  163. <view v-if="bank.ques[ansIndex]">
  164. <view v-for="(option, childIndex) in ansItem.optionsList" :key="childIndex" class="lisSty">
  165. <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>
  166. <view class="flex_auto">
  167. <rich-text :nodes="option.content"></rich-text>
  168. </view>
  169. </view>
  170. </view>
  171. </view>
  172. <view class="pad_8 answer">
  173. <view>正确答案:{{ast[bank.ans[ansIndex]-1]}}</view>
  174. <view>我的答案:{{ast[bank.ques[ansIndex]-1] || ''}}</view>
  175. </view>
  176. <view class="pad_8 answerInfos">
  177. <view class="answerTitle">答案解析</view>
  178. <view class="answerContent">
  179. <rich-text :nodes="option.analysisContent"></rich-text>
  180. </view>
  181. </view>
  182. </template>
  183. <template v-if="ansItem.type == 2">
  184. <view class="pad_8 titBox">
  185. <view class="leftLetters">
  186. <view class="btnType">
  187. <text>多选</text>
  188. </view>
  189. </view>
  190. <view class="titles">
  191. <rich-text :nodes="ansItem.content"></rich-text>
  192. </view>
  193. <view v-if="!bank.ques[ansIndex]">
  194. <view v-for="(option, childindex) in ansItem.optionsList" :key="childindex" class="lisSty">
  195. <view :class="{checked:option.checked}" class="activeTI">{{ ast[childindex] }}</view>
  196. <view class="flex_auto">
  197. <rich-text :nodes="option.content"></rich-text>
  198. </view>
  199. </view>
  200. </view>
  201. <view v-if="bank.ques && bank.ques[ansIndex]">
  202. <view v-for="(option, childindex) in ansItem.optionsList" :key="childindex" class="lisSty">
  203. <text :class="{right:right(bankIndex,ansIndex,option),wrong:wrong(bankIndex,ansIndex,option)}" class="activeTI">{{ ast[childindex] }}</text>
  204. <view class="flex_auto">
  205. <rich-text :nodes="option.content"></rich-text>
  206. </view>
  207. </view>
  208. </view>
  209. </view>
  210. <view>
  211. <view class="pad_8 answer">
  212. <view>正确答案:
  213. <text :key="ansItemIndex1" v-for="(ansItem1,ansItemIndex1) in bank.ans[ansIndex]">{{ast[ansItem1-1]}}</text>
  214. </view>
  215. <view>我的答案:
  216. <text :key="quesItemIndex" v-for="(quesItem,quesItemIndex) in bank.ques[ansIndex]">{{ast[quesItem-1]}}</text>
  217. </view>
  218. </view>
  219. <view class="pad_8 answerInfos">
  220. <view class="answerTitle">答案解析</view>
  221. <view class="answerContent">
  222. <rich-text :nodes="ansItem.analysisContent"></rich-text>
  223. </view>
  224. </view>
  225. </view>
  226. </template>
  227. <template v-if="ansItem.type == 3">
  228. <view class="pad_8 titBox">
  229. <view class="leftLetters">
  230. <view class="btnType">
  231. <text>判断</text>
  232. </view>
  233. </view>
  234. <view class="titles">
  235. <rich-text :nodes="ansItem.content"></rich-text>
  236. </view>
  237. <view v-if="!bank.ques[ansIndex]">
  238. <view v-for="(option, childindex) in judge" :key="childindex" class="lisSty">
  239. <view class="activeTI">{{ ast[childindex] }}</view>
  240. <view class="flex_auto">
  241. {{ option }}
  242. </view>
  243. </view>
  244. </view>
  245. <view v-if="bank.ques[ansIndex]">
  246. <view v-for="(option, childindex) in judge" :key="childindex" class="lisSty">
  247. <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>
  248. <view class="flex_auto">
  249. {{ option }}
  250. </view>
  251. </view>
  252. </view>
  253. </view>
  254. <view>
  255. <view class="pad_8 answer">
  256. <view>正确答案:{{ast[bank.ans[ansIndex]]}}</view>
  257. <view>我的答案:{{ast[bank.ques[ansIndex]] || ''}}</view>
  258. </view>
  259. <view class="pad_8 answerInfos">
  260. <view class="answerTitle">答案解析</view>
  261. <view class="answerContent">
  262. <rich-text :nodes="ansItem.analysisContent"></rich-text>
  263. </view>
  264. </view>
  265. </view>
  266. </template>
  267. <!-- 简答题 -->
  268. <template v-if="ansItem.type == 5">
  269. <view class="pad_8 titBox_title">
  270. <view class="leftLetters">
  271. <view class="btnType">
  272. <text>简答</text>
  273. </view>
  274. </view>
  275. <view class="titles">
  276. <rich-text :nodes="ansItem.content"></rich-text>
  277. </view>
  278. </view>
  279. <view class="pad_8 titBox_title">
  280. <view class="ans">
  281. <view class="ans_submit answerInfos">
  282. <view class="answerTitle">我的答案</view>
  283. {{bank.ques[ansIndex].text || ''}}
  284. <view class="imgs" v-if="bank.ques[ansIndex] && bank.ques[ansIndex].imageList.length">
  285. <image class="img" :key="quesIndex" v-for="(ques,quesIndex) in bank.ques[ansIndex].imageList" :src="$method.splitImgHost(ques,true)"></image>
  286. </view>
  287. </view>
  288. </view>
  289. </view>
  290. <view>
  291. <view class="pad_8 answerInfos">
  292. <view class="answerTitle">答案解析</view>
  293. <view class="answerContent">
  294. <rich-text :nodes="ansItem.analysisContent"></rich-text>
  295. </view>
  296. </view>
  297. </view>
  298. </template>
  299. </view>
  300. </template>
  301. <view class="footer_btn">
  302. <view class="collect" @click="collect(collectList[bankIndex], bankIndex)">
  303. <view>
  304. <image src="/static/icon/collect.png" mode=""></image>
  305. <view>收藏</view>
  306. </view>
  307. </view>
  308. <view class="flex_center" @click="openFooterTab">
  309. <view class="up-icon">
  310. <image src="/static/up.png"></image>
  311. </view>
  312. 答题卡
  313. </view>
  314. <view class="collect" @click="pdsubmit">
  315. <view>
  316. <image src="/static/jj.png" mode=""></image>
  317. <view>交卷</view>
  318. </view>
  319. </view>
  320. </view>
  321. </view>
  322. </swiper-item>
  323. </swiper>
  324. <u-popup v-model="show" mode="bottom" border-radius="14" height="680rpx">
  325. <view class="popupView">
  326. <view class="popupTops">
  327. <view class="topIcon"></view>
  328. 点击编号即可跳转至对应题目
  329. </view>
  330. <view class="popupContent">
  331. <scroll-view scroll-y="true" style="height: 506rpx;">
  332. <view class="boxSty">
  333. <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>
  334. </view>
  335. </scroll-view>
  336. </view>
  337. </view>
  338. </u-popup>
  339. <view class="dialog" v-if="showDialog">
  340. <view class="text">左右滑动切换上下题</view>
  341. <view class="btn" @click="hideDialog">我知道了</view>
  342. </view>
  343. </view>
  344. </template>
  345. <script>
  346. export default {
  347. data() {
  348. return {
  349. id:'',
  350. current:0,
  351. questionList:[],
  352. ast: ['A', 'B', 'C', 'D','E','F','G'],
  353. judge:['错误','正确'],
  354. show: false,
  355. showDialog:false,
  356. bankList: [],
  357. goodsId:'',
  358. recordId:'',
  359. chapterId:'',
  360. moduleId:'',
  361. };
  362. },
  363. onLoad(option){
  364. this.id = option.id || '';
  365. this.goodsId = option.goodsid || '';
  366. this.chapterId = option.chapterId || '';
  367. this.moduleId = option.moduleId || '';
  368. this.recordId = option.recordId || '';
  369. let showDialog = uni.getStorageSync('showDialog');
  370. if(showDialog) {
  371. this.showDialog = false;
  372. } else {
  373. this.showDialog = true;
  374. uni.setStorageSync('showDialog','1');
  375. }
  376. this.goodsQuestionList();
  377. },
  378. onUnload() {
  379. },
  380. methods: {
  381. /**
  382. * 是否有上传图片
  383. */
  384. hasImgs(bank) {
  385. return bank.ansText.imageList.length == 0;
  386. },
  387. goodsQuestionList() {
  388. this.$api.examReport(this.recordId).then(res => {
  389. let questionList = JSON.parse(res.data.data.historyExamJson);
  390. questionList.forEach(json => { //只获取类型1,2,3 单选,多选,判断 ,主观题灭有对错
  391. if(json.type == 1 || json.type == 3) { //单选判断
  392. if(json.ans != json.ques) {
  393. this.questionList.push(json)
  394. }
  395. } else if(json.type == 2) { //判断是否全对
  396. let isRight =
  397. json.ans.every((quesItem, quesIndex) => {
  398. if(json.ques) {
  399. return json.ques[quesIndex] == json.ans[quesIndex];
  400. } else {
  401. return false;
  402. }
  403. });
  404. if (!isRight) {
  405. this.questionList.push(json)
  406. }
  407. }
  408. })
  409. })
  410. },
  411. openFooterTab() {
  412. this.show = true;
  413. },
  414. hideDialog() {
  415. this.showDialog = false
  416. },
  417. changeIndex(index) {
  418. this.current = index
  419. },
  420. swiperChange(e) {
  421. this.current = e.detail.current;
  422. },
  423. isRight(item,index) {
  424. //单选
  425. if(this.questionList[index].ques) {
  426. if(item.type == 1) {
  427. return this.questionList[index].ques == this.questionList[index].ans;
  428. //多选
  429. } else if(item.type == 2) {
  430. //每一项都相等
  431. return this.questionList[index].ques.every((item,i) => {
  432. console.log(item == this.questionList[index].ans[i])
  433. return item == this.questionList[index].ans[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].ques.some((item,i) => {
  476. return item != this.questionList[index].ans[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>