questionBankWrongExplain.vue 23 KB

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