questionBankAllExplain.vue 24 KB

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