questionBankWrongExplain.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002
  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].ans.every((item,i) => {
  432. return item == this.questionList[index].ques[i];
  433. })
  434. //判断
  435. } else if(item.type == 3) {
  436. return this.questionList[index].ques == this.questionList[index].ans;
  437. } else {
  438. return false;
  439. }
  440. } else {
  441. return false;
  442. }
  443. },
  444. right(bankIndex,ansIndex,option) {
  445. if(this.questionList[bankIndex].ques[ansIndex] && this.questionList[bankIndex].ans[ansIndex]) {
  446. if((this.questionList[bankIndex].ques[ansIndex].indexOf(option.optionsId) != -1 ) || (this.questionList[bankIndex].ans[ansIndex].indexOf(option.optionsId) != -1)) {
  447. return true
  448. } else {
  449. return false;
  450. }
  451. } else {
  452. return false;
  453. }
  454. },
  455. wrong(bankIndex,ansIndex,option) {
  456. if(this.questionList[bankIndex].ques[ansIndex] && this.questionList[bankIndex].ans[ansIndex]) {
  457. if((this.questionList[bankIndex].ques[ansIndex].indexOf(option.optionsId) != -1 ) && (this.questionList[bankIndex].ans[ansIndex].indexOf(option.optionsId) == -1)) {
  458. return true;
  459. } else {
  460. return false;
  461. }
  462. } else {
  463. return false;
  464. }
  465. },
  466. isWrong(item,index) {
  467. if(this.questionList[index].ques) {
  468. //单选
  469. if(item.type == 1) {
  470. return this.questionList[index].ques != this.questionList[index].ans;
  471. //多选
  472. } else if(item.type == 2) {
  473. //每一项都相等
  474. return this.questionList[index].ans.some((item,i) => {
  475. return item != this.questionList[index].ques[i];
  476. })
  477. //判断
  478. } else if(item.type == 3) {
  479. return this.questionList[index].ques != this.questionList[index].ans;
  480. } else {
  481. return false;
  482. }
  483. } else {
  484. return false;
  485. }
  486. },
  487. tabSelect(index,bankindex) {
  488. this.$set(this.questionList[bankindex],'current',index)
  489. },
  490. }
  491. };
  492. </script>
  493. <style lang="scss" scoped>
  494. .questionBank {
  495. width:100%;
  496. height:100vh;
  497. display: flex;
  498. flex-direction: column;
  499. }
  500. .swiper {
  501. width:100%;
  502. flex:1;
  503. }
  504. .lisSty {
  505. margin-bottom: 16rpx;
  506. display: flex;
  507. .flex_auto {
  508. flex:1;
  509. }
  510. }
  511. .activeTI {
  512. vertical-align: middle;
  513. display: inline-block;
  514. border: 1rpx solid #eee;
  515. border-radius: 50rpx;
  516. height: 48rpx;
  517. line-height: 46rpx;
  518. text-align: center;
  519. width: 48rpx;
  520. margin-right: 15rpx;
  521. color: #666;
  522. font-size: 30rpx;
  523. &.right {
  524. color:#fff;
  525. background:#36C75A;
  526. }
  527. &.wrong {
  528. color:#fff;
  529. background:#FF3B30;
  530. }
  531. &.checked {
  532. color:#fff;
  533. background:#007AFF;
  534. }
  535. }
  536. .submit_checkbox {
  537. position:fixed;
  538. left:0;
  539. right:0;
  540. bottom:120rpx;
  541. margin: 20rpx auto;
  542. width: 526rpx;
  543. height: 80rpx;
  544. background: rgba(0, 122, 255, 1);
  545. color:#fff;
  546. text-align: center;
  547. line-height: 80rpx;
  548. font-size: 30rpx;
  549. border-radius: 40rpx;
  550. }
  551. .titles {
  552. overflow: hidden;
  553. margin-bottom: 24rpx;
  554. }
  555. .titBox {
  556. padding: 41rpx 25rpx 24rpx 25rpx;
  557. }
  558. .titBox_title {
  559. padding: 21rpx;
  560. }
  561. .tabs {
  562. margin:10rpx;
  563. display: flex;
  564. .tab {
  565. margin: 0 4rpx;
  566. padding:10rpx 13rpx;
  567. text-align: center;
  568. color: #007aff;
  569. font-size: 28rpx;
  570. border-radius: 16rpx;
  571. background:#fff;
  572. &.current {
  573. color:#fff;
  574. background: #007AFF;
  575. }
  576. }
  577. }
  578. .ans {
  579. margin:8rpx 8rpx 8rpx;
  580. .ans_input {
  581. border-radius: 16rpx;
  582. background:#fff;
  583. .top {
  584. border-bottom:1rpx solid #EEEEEE;
  585. padding: 16rpx;
  586. display: flex;
  587. align-items: center;
  588. .icon {
  589. margin-right:20rpx;
  590. width: 40rpx;
  591. height: 38rpx;
  592. }
  593. .progress {
  594. flex:1;
  595. }
  596. .submit {
  597. width: 168rpx;
  598. height: 48rpx;
  599. line-height: 48rpx;
  600. text-align: center;
  601. color:#fff;
  602. font-size: 30rpx;
  603. background: #007AFF;
  604. border-radius: 24rpx;
  605. &.disabled {
  606. opacity: 0.6;
  607. }
  608. }
  609. }
  610. .textarea {
  611. textarea {
  612. width:100%;
  613. height:287rpx;
  614. padding:10rpx;
  615. }
  616. }
  617. .imgs {
  618. overflow: hidden;
  619. display: flex;
  620. width:100%;
  621. .img {
  622. width: 104rpx;
  623. height: 104rpx;
  624. border-radius: 8rpx;
  625. position:relative;
  626. margin:20rpx;
  627. text {
  628. position:absolute;
  629. right:-15rpx;
  630. top:-15rpx;
  631. width:30rpx;
  632. height:30rpx;
  633. text-align: center;
  634. line-height: 30rpx;
  635. color:#fff;
  636. background:#FF3B30;
  637. border-radius:50%;
  638. }
  639. image {
  640. width:100%;
  641. height:100%;
  642. }
  643. }
  644. }
  645. }
  646. .ans_submit {
  647. padding:16rpx;
  648. border-radius: 16rpx;
  649. background:#fff;
  650. .imgs {
  651. overflow: hidden;
  652. display: flex;
  653. width:100%;
  654. .img {
  655. width: 104rpx;
  656. height: 104rpx;
  657. border-radius: 8rpx;
  658. position:relative;
  659. margin:20rpx;
  660. image {
  661. width:100%;
  662. height:100%;
  663. }
  664. }
  665. }
  666. }
  667. }
  668. .leftLetters {
  669. display: flex;
  670. align-items: center;
  671. width: 220rpx;
  672. .btnType {
  673. padding: 5rpx 10rpx;
  674. border: 1rpx solid #007aff;
  675. border-radius: 10rpx;
  676. background-color: rgba(0, 122, 255, 0.1);
  677. font-size: 28rpx;
  678. color: #007aff;
  679. margin-right: 15rpx;
  680. }
  681. }
  682. .firstLetter {
  683. display: flex;
  684. justify-content: space-between;
  685. align-items: center;
  686. margin-bottom: 30rpx;
  687. }
  688. .popupView {
  689. height: 100%;
  690. padding-bottom: 100rpx;
  691. .popupTops {
  692. height: 77rpx;
  693. border-bottom: 1rpx solid #eee;
  694. text-align: center;
  695. line-height: 77rpx;
  696. font-size: 24rpx;
  697. color: #999;
  698. position: relative;
  699. .topIcon {
  700. position: absolute;
  701. top: 10rpx;
  702. left: 50%;
  703. transform: translateX(-50%);
  704. width: 80rpx;
  705. height: 8rpx;
  706. background-color: #999;
  707. border-radius: 4rpx;
  708. }
  709. }
  710. .popupContent {
  711. }
  712. }
  713. .pageContent {
  714. position:relative;
  715. background-color: #eaeef1;
  716. height: 100%;
  717. overflow-y: scroll;
  718. padding-top: 8rpx;
  719. padding-bottom: 100rpx;
  720. }
  721. .pad_8 {
  722. background-color: #fff;
  723. margin: 0rpx 8rpx 8rpx;
  724. border-radius: 16rpx;
  725. &.no-margin {
  726. margin-top:-16rpx;
  727. border-radius: 0 0 16rpx 16rpx;
  728. }
  729. }
  730. .answer {
  731. height: 80rpx;
  732. line-height: 80rpx;
  733. padding: 0rpx 24rpx;
  734. display: flex;
  735. align-items: center;
  736. justify-content: space-between;
  737. color: #666;
  738. font-size: 30rpx;
  739. }
  740. .footer_btn {
  741. background-color: #fff;
  742. z-index: 10078;
  743. position: fixed;
  744. bottom: 0rpx;
  745. display: flex;
  746. align-items: center;
  747. justify-content: space-between;
  748. width: 100%;
  749. height: 98rpx;
  750. padding: 0rpx 38rpx;
  751. border-top: 1rpx solid #eee;
  752. .flex_center {
  753. flex:1;
  754. display: flex;
  755. justify-content: center;
  756. align-items: center;
  757. flex-direction: column;
  758. margin:0 200rpx;
  759. font-size: 24rpx;
  760. color: #999999;
  761. .up-icon {
  762. margin-bottom:18rpx;
  763. width:100%;
  764. display: flex;
  765. justify-content: center;
  766. image {
  767. width:58rpx;
  768. height:21rpx;
  769. }
  770. }
  771. }
  772. .collect {
  773. visibility: hidden;
  774. width:100rpx;
  775. &.show {
  776. visibility: visible;
  777. }
  778. >view {
  779. display: flex;
  780. flex-direction: column;
  781. align-items: center;
  782. justify-content: center;
  783. image {
  784. width:32rpx;
  785. height:32rpx;
  786. margin-bottom:6rpx;
  787. }
  788. view {
  789. font-size: 24rpx;
  790. color: #999999;
  791. }
  792. }
  793. }
  794. }
  795. .boxSty {
  796. padding: 44rpx 41rpx 0rpx;
  797. }
  798. .liListSty {
  799. border:1rpx solid #EEEEEE;
  800. width: 88rpx;
  801. height: 88rpx;
  802. border-radius: 32rpx;
  803. text-align: center;
  804. line-height: 88rpx;
  805. color: #333;
  806. font-size: 32rpx;
  807. float: left;
  808. margin: 20rpx 23rpx;
  809. &.isRight {
  810. border:1rpx solid #EEEEEE;
  811. color:#fff;
  812. background: #36C75A;
  813. }
  814. &.isWrong {
  815. border:1rpx solid #EEEEEE;
  816. color:#fff;
  817. background: #FF3B30;
  818. }
  819. }
  820. .answerInfos {
  821. padding: 25rpx 25rpx 25rpx 23rpx;
  822. }
  823. .answerTitle {
  824. margin-bottom: 28rpx;
  825. color: #666;
  826. font-size: 30rpx;
  827. }
  828. .answerContent {
  829. font-size: 30rpx;
  830. color: #666;
  831. }
  832. .textChild {
  833. display: inline-block;
  834. vertical-align: middle;
  835. }
  836. .dialog {
  837. position: fixed;
  838. left:0;
  839. top:0;
  840. width:100%;
  841. height:100%;
  842. background-color: rgba(0,0,0,0.8);
  843. display: flex;
  844. flex-direction: column;
  845. align-items: center;
  846. justify-content: center;
  847. z-index: 20000;
  848. .pointer {
  849. width:338rpx;
  850. height:240rpx;
  851. }
  852. .text {
  853. font-size: 32rpx;
  854. color: #FFFFFF;
  855. text-align: center;
  856. }
  857. .btn {
  858. width: 242rpx;
  859. height: 82rpx;
  860. border: 2rpx solid #FFFFFF;
  861. border-radius: 16rpx;
  862. text-align: center;
  863. line-height: 82rpx;
  864. margin:41rpx auto;
  865. color:#fff;
  866. font-size: 32rpx;
  867. }
  868. }
  869. .popboxs {
  870. width: 100%;
  871. height: 100%;
  872. display: flex;
  873. flex-direction: column;
  874. align-items: center;
  875. }
  876. .classTops {
  877. flex-shrink: 0;
  878. padding: 39rpx 0rpx 4rpx;
  879. font-weight: bold;
  880. color: #333;
  881. font-size: 30rpx;
  882. }
  883. .textStys {
  884. width: 100%;
  885. flex: 1;
  886. padding: 36rpx;
  887. }
  888. .classFootsty {
  889. flex-shrink: 0;
  890. display: flex;
  891. align-items: center;
  892. justify-content: center;
  893. padding: 10rpx 0rpx 40rpx;
  894. .btnsty {
  895. width: 200rpx;
  896. height: 80rpx;
  897. border-radius: 40rpx;
  898. font-weight: bold;
  899. font-size: 30rpx;
  900. text-align: center;
  901. line-height: 80rpx;
  902. }
  903. .btns1 {
  904. background-color: #f5f5f5;
  905. color: #007aff;
  906. }
  907. .btns2 {
  908. margin-left: 40rpx;
  909. background-color: #007aff;
  910. color: #ffffff;
  911. }
  912. }
  913. </style>