questionBankAllExplain.vue 24 KB

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