wrongBank.vue 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441
  1. <template>
  2. <view id="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" @click="radioSelect(item.optionsId,bankIndex)">
  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 v-if="bank.ques">
  41. <view class="pad_8 answer">
  42. <view>正确答案:{{ast[bank.ans-1]}}</view>
  43. <view v-if="!explain">我的答案:{{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" @click="checkboxSelect(item.optionsId,bankIndex,index)">
  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" class="submit_checkbox" :class="{disabled:!isCheckboxChecked(bank.jsonStr)}" @click="checkboxSubmit(bankIndex)">
  62. 确认答案
  63. </view>
  64. <view v-if="bank.ques">
  65. <view v-for="(item, index) in bank.jsonStr" :key="index" class="lisSty">
  66. <text :class="{right:(bank.ques.indexOf(item.optionsId) != -1 ) || (bank.ans.indexOf(item.optionsId) != -1),wrong:(bank.ques.indexOf(item.optionsId) != -1 ) && (bank.ans.indexOf(item.optionsId) == -1)}" class="activeTI">{{ ast[index] }}</text>
  67. <view class="flex_auto">{{ item.content }}</view>
  68. </view>
  69. </view>
  70. </view>
  71. <view v-if="bank.ques">
  72. <view class="pad_8 answer">
  73. <view>正确答案:
  74. <text v-for="ansItem in bank.ans">{{ast[ansItem-1]}}</text>
  75. </view>
  76. <view v-if="!explain">我的答案:
  77. <text v-for="quesItem in bank.ques">{{ast[quesItem-1]}}</text>
  78. </view>
  79. </view>
  80. <view class="pad_8 answerInfos">
  81. <view class="answerTitle">答案解析</view>
  82. <view class="answerContent">
  83. <rich-text :nodes="bank.analysisContent"></rich-text>
  84. </view>
  85. </view>
  86. </view>
  87. </template>
  88. <template v-if="bank.type == 3">
  89. <view class="pad_8 titBox no-margin">
  90. <view v-if="!bank.ques">
  91. <view v-for="(item, index) in judge" :key="index" class="lisSty" @click="judgeSelect(index,bankIndex)">
  92. <view class="activeTI">{{ ast[index] }}</view>
  93. {{ item }}
  94. </view>
  95. </view>
  96. <view v-if="bank.ques">
  97. <view v-for="(item, index) in judge" :key="index" class="lisSty">
  98. <text :class="{right:(index == bank.ques) || (index == bank.ans),wrong:(index == bank.ques) && (bank.ques != bank.ans)}" class="activeTI">{{ ast[index] }}</text>
  99. {{ item }}
  100. </view>
  101. </view>
  102. </view>
  103. <view v-if="bank.ques">
  104. <view class="pad_8 answer">
  105. <view>正确答案:{{ast[bank.ans]}}</view>
  106. <view v-if="!explain">我的答案:{{ast[bank.ques]}}</view>
  107. </view>
  108. <view class="pad_8 answerInfos">
  109. <view class="answerTitle">答案解析</view>
  110. <view class="answerContent">
  111. <rich-text :nodes="bank.analysisContent"></rich-text>
  112. </view>
  113. </view>
  114. </view>
  115. </template>
  116. <!-- 简答题 -->
  117. <template v-if="bank.type == 5">
  118. <view class="pad_8 titBox">
  119. <view class="ans">
  120. <view class="ans_input" v-if="!bank.ques">
  121. <view class="top flex">
  122. <image :data-index="bankIndex" class="icon" @click="chooseImg(bankIndex)" src="/static/08-10_032.jpg" mode=""></image>
  123. <view class="progress">{{bank.ansText.imageList.length || '0'}}/4</view>
  124. <view class="submit" @click="submitAns(bankIndex)" >确认答案</view>
  125. </view>
  126. <view class="textarea">
  127. <textarea v-model="bank.ansText.text" placeholder="在此输入答案"></textarea>
  128. </view>
  129. <view class="imgs">
  130. <view class="img" v-for="(img,imgIndex) in bank.ansText.imageList" >
  131. <text @click="deleteImg(imgIndex,bankIndex)">x</text>
  132. <image :src="$method.splitImgHost(img, true)"></image>
  133. </view>
  134. </view>
  135. </view>
  136. <view class="ans_submit answerInfos" v-if="bank.ques && !explain">
  137. <view class="answerTitle">我的答案:</view>
  138. {{bank.ques.text}}
  139. <view class="imgs">
  140. <image class="img" v-for="ques in bank.ques.imageList" :src="$method.splitImgHost(ques,true)"></image>
  141. </view>
  142. </view>
  143. </view>
  144. </view>
  145. <view v-if="bank.ques">
  146. <view class="pad_8 answerInfos">
  147. <view class="answerTitle">答案解析:</view>
  148. <view class="answerContent">
  149. <rich-text :nodes="bank.analysisContent"></rich-text>
  150. </view>
  151. </view>
  152. </view>
  153. </template>
  154. <!-- 案例题 -->
  155. <template v-if="bank.type == 4">
  156. <view class="tabs">
  157. <view class="tab" :class="{current:tabIndex == bank.current}" :key="tabIndex" v-for="(tab,tabIndex) in bank.jsonStr" @click="tabSelect(tabIndex,bankIndex)">问题{{tabIndex+1}}</view>
  158. </view>
  159. <view v-for="(ansItem,ansIndex) in bank.jsonStr" v-if="bank.current == ansIndex" :key="ansIndex">
  160. <template v-if="ansItem.type == 1">
  161. <view class="pad_8 titBox">
  162. <view class="titles">
  163. <rich-text :nodes="ansItem.content"></rich-text>
  164. </view>
  165. <view v-if="!bank.ques[ansIndex]">
  166. <view v-for="(option, childIndex) in ansItem.optionsList" :key="childIndex" class="lisSty" @click="radioSelectChild(option.optionsId,ansIndex,bankIndex)">
  167. <view class="activeTI">{{ ast[childIndex] }}</view>
  168. <rich-text class="textChild" :nodes="option.content"></rich-text>
  169. </view>
  170. </view>
  171. <view v-if="bank.ques[ansIndex]">
  172. <view v-for="(option, childIndex) in ansItem.optionsList" :key="index" class="lisSty">
  173. <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>
  174. <rich-text :nodes="option.content"></rich-text>
  175. </view>
  176. </view>
  177. </view>
  178. <view v-if="bank.ques[ansIndex]">
  179. <view class="pad_8 answer">
  180. <view>正确答案:{{ast[bank.ans[ansIndex]-1]}}</view>
  181. <view v-if="!explain">我的答案:{{ast[bank.ques[ansIndex]-1]}}</view>
  182. </view>
  183. <view class="pad_8 answerInfos">
  184. <view class="answerTitle">答案解析</view>
  185. <view class="answerContent">
  186. <rich-text :nodes="option.analysisContent"></rich-text>
  187. </view>
  188. </view>
  189. </view>
  190. </template>
  191. <template v-if="ansItem.type == 2">
  192. <view class="pad_8 titBox">
  193. <view class="titles">
  194. <rich-text :nodes="ansItem.content"></rich-text>
  195. </view>
  196. <view v-if="!bank.ques[ansIndex]">
  197. <view v-for="(option, childindex) in ansItem.optionsList" :key="childindex" class="lisSty" @click="checkboxSelectChild(bankIndex,ansIndex,childindex)">
  198. <view :class="{checked:option.checked}" class="activeTI">{{ ast[childindex] }}</view>
  199. <rich-text :nodes="option.content"></rich-text>
  200. </view>
  201. </view>
  202. <view v-if="!bank.ques[ansIndex]" class="submit_checkbox" :class="{disabled:!isCheckboxChecked(ansItem.optionsList)}" @click="checkboxSubmitChild(bankIndex,ansIndex)">
  203. 确认答案
  204. </view>
  205. <view v-if="bank.ques && bank.ques[ansIndex]">
  206. <view v-for="(option, childindex) in ansItem.optionsList" :key="childindex" class="lisSty">
  207. <text :class="{right:right(bankIndex,ansIndex,option),wrong:wrong(bankIndex,ansIndex,option)}" class="activeTI">{{ ast[childindex] }}</text>
  208. <rich-text :nodes="option.content"></rich-text>
  209. </view>
  210. </view>
  211. </view>
  212. <view v-if="bank.ques[ansIndex]">
  213. <view class="pad_8 answer">
  214. <view>正确答案:
  215. <text v-for="ansItem1 in bank.ans[ansIndex]">{{ast[ansItem1-1]}}</text>
  216. </view>
  217. <view v-if="!explain">我的答案:
  218. <text v-for="quesItem 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="titles">
  232. <rich-text :nodes="ansItem.content"></rich-text>
  233. </view>
  234. <view v-if="!bank.ques[ansIndex]">
  235. <view v-for="(option, childindex) in judge" :key="childindex" class="lisSty" @click="judgeSelectChild(ansIndex,childindex,bankIndex)">
  236. <view class="activeTI">{{ ast[childindex] }}</view>
  237. {{ option }}
  238. </view>
  239. </view>
  240. <view v-if="bank.ques[ansIndex]">
  241. <view v-for="(option, childindex) in judge" :key="childindex" class="lisSty">
  242. <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>
  243. {{ option }}
  244. </view>
  245. </view>
  246. </view>
  247. <view v-if="bank.ques[ansIndex]">
  248. <view class="pad_8 answer">
  249. <view>正确答案:{{ast[bank.ans[ansIndex]]}}</view>
  250. <view v-if="!explain">我的答案:{{ast[bank.ques[ansIndex]]}}</view>
  251. </view>
  252. <view class="pad_8 answerInfos">
  253. <view class="answerTitle">答案解析</view>
  254. <view class="answerContent">
  255. <rich-text :nodes="ansItem.analysisContent"></rich-text>
  256. </view>
  257. </view>
  258. </view>
  259. </template>
  260. <!-- 简答题 -->
  261. <template v-if="ansItem.type == 5">
  262. <view class="pad_8 titBox_title">
  263. <view class="titles">
  264. <rich-text :nodes="ansItem.content"></rich-text>
  265. </view>
  266. </view>
  267. <view class="pad_8 titBox_title">
  268. <view class="ans">
  269. <view class="ans_input" v-if="!bank.ques[ansIndex]">
  270. <view class="top flex">
  271. <image class="icon" @click="chooseImgChild(bankIndex,ansIndex)" src="/static/08-10_032.jpg" mode=""></image>
  272. <view class="progress">{{ansItem.ansText.imageList.length || '0'}}/4</view>
  273. <view class="submit" @click="submitAnsChild(bankIndex,ansIndex)">确认答案</view>
  274. </view>
  275. <view class="textarea">
  276. <textarea v-model="ansItem.ansText.text" placeholder="在此输入答案"></textarea>
  277. </view>
  278. <view class="imgs">
  279. <view class="img" v-for="(img,imgIndex) in ansItem.ansText.imageList" >
  280. <text @click="deleteImgChild(imgIndex,bankIndex,ansIndex)">x</text>
  281. <image :src="$method.splitImgHost(img, true)"></image>
  282. </view>
  283. </view>
  284. </view>
  285. <view class="ans_submit answerInfos" v-if="bank.ques[ansIndex] && !explain">
  286. <view class="answerTitle">我的答案</view>
  287. {{bank.ques[ansIndex].text}}
  288. <view class="imgs">
  289. <image class="img" v-for="ques in bank.ques[ansIndex].imageList" :src="$method.splitImgHost(ques,true)"></image>
  290. </view>
  291. </view>
  292. </view>
  293. </view>
  294. <view v-if="bank.ques[ansIndex]">
  295. <view class="pad_8 answerInfos">
  296. <view class="answerTitle">答案解析</view>
  297. <view class="answerContent">
  298. <rich-text :nodes="ansItem.analysisContent"></rich-text>
  299. </view>
  300. </view>
  301. </view>
  302. </template>
  303. </view>
  304. </template>
  305. <view class="footer_btn">
  306. <view class="flex_center" @click="openFooterTab">
  307. <view class="up-icon">
  308. <image src="/static/up.png"></image>
  309. </view>
  310. 答题卡
  311. </view>
  312. <view class="collect" :class="{show:!explain}" @click="pdsubmit">
  313. <view>
  314. <image src="/static/jj.png" mode=""></image>
  315. <view>交卷</view>
  316. </view>
  317. </view>
  318. </view>
  319. </view>
  320. </swiper-item>
  321. </swiper>
  322. <u-popup v-model="show" mode="bottom" border-radius="14" height="680rpx">
  323. <view class="popupView">
  324. <view class="popupTops">
  325. <view class="topIcon"></view>
  326. 点击编号即可跳转至对应题目
  327. </view>
  328. <view class="popupContent">
  329. <scroll-view scroll-y="true" style="height: 506rpx;">
  330. <view class="boxSty">
  331. <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>
  332. </view>
  333. </scroll-view>
  334. </view>
  335. </view>
  336. </u-popup>
  337. <view class="dialog" v-if="showDialog">
  338. <image src="/static/pointer.png" class="pointer" mode=""></image>
  339. <view class="text">左右滑动切换上下题</view>
  340. <view class="btn" @click="hideDialog">我知道了</view>
  341. </view>
  342. </view>
  343. </template>
  344. <script>
  345. export default {
  346. data() {
  347. return {
  348. id:'',
  349. current:0,
  350. questionList:[],
  351. ast: ['A', 'B', 'C', 'D','E','F','G'],
  352. judge:['错误','正确'],
  353. show: false,
  354. showDialog:false,
  355. isFromReport:'', //来自答题报告
  356. bankList: [],
  357. collectList:[],
  358. goodsId:'',
  359. examId:'',
  360. explain:'',
  361. };
  362. },
  363. onLoad(option){
  364. this.id = option.id || '';
  365. this.examId = option.examId || '';
  366. this.isFromReport = option.isFromReport;
  367. this.explain = option.explain || '';
  368. let showDialog = uni.getStorageSync('showDialog');
  369. if(showDialog) {
  370. this.showDialog = false;
  371. } else {
  372. this.showDialog = true;
  373. uni.setStorageSync('showDialog','1');
  374. }
  375. // if(this.isFromReport) { //通过答题报告查询错题列表
  376. // console.log(2)
  377. // this.wrongRecordList();
  378. // } else { //通过错题集查询错题列表
  379. // console.log(1)
  380. this.wrongRecordExamQuestionList();
  381. // }
  382. },
  383. onUnload() {
  384. },
  385. methods: {
  386. /**
  387. * 通过答题报告查询错题列表
  388. */
  389. wrongRecordList() {
  390. this.$api.wrongRecordList({
  391. recordId:this.id,
  392. }).then(res => {
  393. res.data.rows.forEach((item,index) => {
  394. if(typeof item.jsonStr == 'string') {
  395. item.jsonStr = JSON.parse(item.jsonStr)
  396. if(item.type == 2) { //多选
  397. item.jsonStr.forEach(str => {
  398. str.optionsId = ''+str.optionsId;
  399. })
  400. let arr = item.answerQuestion.split(',');
  401. arr.forEach((a,i) => {
  402. arr[i] = ''+a;
  403. })
  404. item.ans = arr;
  405. if(this.explain) {
  406. item.ques = item.ans;
  407. }
  408. return;
  409. } else if(item.type == 5) {
  410. item.ansText = {
  411. text: '',
  412. imageList: []
  413. }
  414. if(this.explain) {
  415. item.ques = {
  416. text:item.analysisContent
  417. }
  418. return;
  419. }
  420. } else if(item.type == 4) {
  421. console.log(item.jsonStr)
  422. item.ques = []
  423. item.current = 0;
  424. let ansArr = [];
  425. item.jsonStr.forEach((json,index) => {
  426. if(json.type == 1) {
  427. ansArr[index] = json.answerQuestion;
  428. } else if(json.type == 2) {
  429. json.optionsList.forEach(str => {
  430. str.optionsId = ''+str.optionsId;
  431. })
  432. let arr = json.answerQuestion.split(',');
  433. arr.forEach((a,i) => {
  434. arr[i] = ''+a;
  435. })
  436. ansArr[index] = arr
  437. } else if(json.type == 3) {
  438. ansArr[index] = json.answerQuestion;
  439. } else if(json.type == 5) {
  440. ansArr[index] = {
  441. text: '',
  442. imageList: []
  443. }
  444. json.ansText = {
  445. text: '',
  446. imageList: []
  447. }
  448. }
  449. })
  450. item.ans = ansArr
  451. if(this.explain) {
  452. item.ques = item.ans;
  453. }
  454. return;
  455. }
  456. item.ans = item.answerQuestion
  457. if(this.explain) {
  458. item.ques = item.ans;
  459. }
  460. } else {
  461. if(this.explain) {
  462. item.ques = item.ans;
  463. }
  464. }
  465. })
  466. this.questionList = res.data.rows;
  467. })
  468. },
  469. /**
  470. * 通过错题集查询错题列表
  471. */
  472. wrongRecordExamQuestionList() {
  473. this.$api.wrongRecordExamQuestionList({
  474. examId:this.examId,
  475. recordId:this.id,
  476. }).then(res => {
  477. res.data.rows.forEach((item,index) => {
  478. if(typeof item.jsonStr == 'string') {
  479. item.jsonStr = JSON.parse(item.jsonStr)
  480. if(item.type == 2) { //多选
  481. item.jsonStr.forEach(str => {
  482. str.optionsId = ''+str.optionsId;
  483. })
  484. let arr = item.answerQuestion.split(',');
  485. arr.forEach((a,i) => {
  486. arr[i] = ''+a;
  487. })
  488. item.ans = arr;
  489. if(this.explain) {
  490. item.ques = item.ans;
  491. }
  492. return;
  493. } else if(item.type == 5) {
  494. item.ansText = {
  495. text: '',
  496. imageList: []
  497. }
  498. if(this.explain) {
  499. item.ques = {
  500. text:item.analysisContent
  501. }
  502. return;
  503. }
  504. } else if(item.type == 4) {
  505. console.log(item.jsonStr)
  506. item.ques = []
  507. item.current = 0;
  508. let ansArr = [];
  509. item.jsonStr.forEach((json,index) => {
  510. if(json.type == 1) {
  511. ansArr[index] = json.answerQuestion;
  512. } else if(json.type == 2) {
  513. json.optionsList.forEach(str => {
  514. str.optionsId = ''+str.optionsId;
  515. })
  516. let arr = json.answerQuestion.split(',');
  517. arr.forEach((a,i) => {
  518. arr[i] = ''+a;
  519. })
  520. ansArr[index] = arr
  521. } else if(json.type == 3) {
  522. ansArr[index] = json.answerQuestion;
  523. } else if(json.type == 5) {
  524. ansArr[index] = {
  525. text: '',
  526. imageList: []
  527. }
  528. json.ansText = {
  529. text: '',
  530. imageList: []
  531. }
  532. }
  533. })
  534. item.ans = ansArr
  535. if(this.explain) {
  536. item.ques = item.ans;
  537. }
  538. return;
  539. }
  540. item.ans = item.answerQuestion
  541. if(this.explain) {
  542. item.ques = item.ans;
  543. }
  544. } else {
  545. if(this.explain) {
  546. item.ques = item.ans;
  547. }
  548. }
  549. })
  550. this.questionList = res.data.rows;
  551. })
  552. },
  553. /**
  554. * @param {Object} e单选点击
  555. */
  556. radioSelect(optionsId,bindex) {
  557. if(this.questionList[bindex].ques) return;
  558. this.$set(this.questionList[bindex],'ques',optionsId)
  559. // 回答错误
  560. if(this.questionList[bindex].ques != this.questionList[bindex].ans) {
  561. } else {
  562. this.$api.wrongRecordDelete({
  563. "examId": this.questionList[bindex].examId,
  564. "goodsId": this.questionList[bindex].goodsId,
  565. "questionId": this.questionList[bindex].questionId,
  566. }).then(res => {
  567. })
  568. }
  569. },
  570. /**
  571. * @param {Object} e单选点击
  572. */
  573. radioSelectChild(optionsId,ansIndex,bindex) {
  574. if(this.questionList[bindex].ques[ansIndex]) return;
  575. this.$set(this.questionList[bindex].ques,ansIndex,optionsId)
  576. },
  577. /**
  578. * @param {Object} 多选点击
  579. */
  580. checkboxSelect(optionsId,bindex,index) {
  581. this.$set(this.questionList[bindex].jsonStr[index],'checked',!this.questionList[bindex].jsonStr[index].checked)
  582. },
  583. /**
  584. * @param {Object} 多选点击
  585. */
  586. checkboxSelectChild(bindex,ansIndex,childIndex) {
  587. this.$set(this.questionList[bindex].jsonStr[ansIndex].optionsList[childIndex],'checked',!this.questionList[bindex].jsonStr[ansIndex].optionsList[childIndex].checked)
  588. },
  589. isCheckboxChecked(arr) {
  590. return arr.some(item => {
  591. if (item.checked) {
  592. return true;
  593. }
  594. });
  595. },
  596. /**
  597. * @param {Object} 多选确认
  598. */
  599. checkboxSubmit(bindex) {
  600. if(this.questionList[bindex].ques) return;
  601. let arr = [];
  602. this.questionList[bindex].jsonStr.forEach(item => {
  603. if(item.checked) {
  604. arr.push(item.optionsId)
  605. }
  606. })
  607. if(!arr.length) {
  608. uni.showToast({
  609. title:'请选择答案',
  610. icon:'none'
  611. })
  612. return;
  613. }
  614. this.$set(this.questionList[bindex],'ques',arr)
  615. let isWrong = this.questionList[bindex].ques.some((quesItem,quesIndex) => {
  616. return this.questionList[bindex].ques[quesIndex] != this.questionList[bindex].ans[quesIndex]
  617. })
  618. // 回答错误
  619. if(isWrong) {
  620. } else {
  621. let question = this.questionList.find(item => item.questionId == this.questionList[bindex].questionId);
  622. if(question) {
  623. this.$api.wrongRecordDelete({
  624. "examId": question.examId,
  625. "goodsId": question.goodsId,
  626. "questionId": question.questionId,
  627. }).then(res => {
  628. })
  629. }
  630. }
  631. },
  632. /**
  633. * @param {Object} 多选确认
  634. */
  635. checkboxSubmitChild(bindex,ansIndex) {
  636. if(this.questionList[bindex].ques[ansIndex]) return;
  637. let arr = [];
  638. this.questionList[bindex].jsonStr[ansIndex].optionsList.forEach(item => {
  639. if(item.checked) {
  640. arr.push(item.optionsId)
  641. }
  642. })
  643. if(!arr.length) {
  644. uni.showToast({
  645. title:'请选择答案',
  646. icon:'none'
  647. })
  648. return;
  649. }
  650. this.$set(this.questionList[bindex].ques,ansIndex,arr)
  651. },
  652. judgeSelect(index,bindex) {
  653. if(this.questionList[bindex].ques) return;
  654. this.$set(this.questionList[bindex],'ques',index+'')
  655. // 回答错误
  656. if(this.questionList[bindex].ques != this.questionList[bindex].ans) {
  657. } else {
  658. this.$api.wrongRecordDelete({
  659. "examId": this.questionList[bindex].examId,
  660. "goodsId": this.questionList[bindex].goodsId,
  661. "questionId": this.questionList[bindex].questionId,
  662. }).then(res => {
  663. })
  664. }
  665. },
  666. judgeSelectChild(ansindex,childindex,bindex) {
  667. if(this.questionList[bindex].ques[ansindex]) return;
  668. this.$set(this.questionList[bindex].ques,ansindex,childindex+'')
  669. },
  670. openFooterTab() {
  671. this.show = true;
  672. },
  673. hideDialog() {
  674. this.showDialog = false
  675. },
  676. changeIndex(index) {
  677. this.current = index
  678. },
  679. swiperChange(e) {
  680. this.current = e.detail.current;
  681. },
  682. deleteImg(imgIndex,bankIndex) {
  683. this.questionList[bankIndex].ansText.imageList.splice(imgIndex,1)
  684. },
  685. deleteImgChild(imgIndex,bankIndex,ansIndex) {
  686. this.questionList[bankIndex].jsonStr[ansIndex].ansText.imageList.splice(imgIndex,1)
  687. },
  688. chooseImg(bankindex) {
  689. uni.chooseImage({
  690. count: 1, //默认9
  691. sizeType: ['compressed', ], //可以指定是原图还是压缩图,默认二者都有
  692. sourceType: ['album','camera'], //从相册选择
  693. success: (res) => {
  694. let self = this;
  695. // console.log(JSON.stringify(res.tempFilePaths));
  696. let img = res.tempFilePaths[0];
  697. uni.getImageInfo({
  698. src: img,
  699. success: async res => {
  700. let canvasWidth = res.width; //图片原始长宽
  701. let canvasHeight = res.height;
  702. if (canvasWidth > 1000 || canvasHeight > 1000) {
  703. uni.compressImage({
  704. src: img,
  705. quality: 75,
  706. width: '50%',
  707. height: '50%',
  708. success: async rest => {
  709. const dir = await self.uploadFile(rest.tempFilePath, 0);
  710. this.questionList[bankindex].ansText.imageList.push(dir)
  711. }
  712. });
  713. } else {
  714. const dir = await self.uploadFile(img, 0);
  715. this.questionList[bankindex].ansText.imageList.push(dir)
  716. }
  717. }
  718. });
  719. }
  720. })
  721. },
  722. chooseImgChild(bankindex,ansindex) {
  723. uni.chooseImage({
  724. count: 1, //默认9
  725. sizeType: ['compressed', ], //可以指定是原图还是压缩图,默认二者都有
  726. sourceType: ['album','camera'], //从相册选择
  727. success: (res) => {
  728. let self = this;
  729. // console.log(JSON.stringify(res.tempFilePaths));
  730. let img = res.tempFilePaths[0];
  731. uni.getImageInfo({
  732. src: img,
  733. success: async res => {
  734. let canvasWidth = res.width; //图片原始长宽
  735. let canvasHeight = res.height;
  736. if (canvasWidth > 1000 || canvasHeight > 1000) {
  737. uni.compressImage({
  738. src: img,
  739. quality: 75,
  740. width: '50%',
  741. height: '50%',
  742. success: async rest => {
  743. const dir = await self.uploadFile(rest.tempFilePath, 0);
  744. this.questionList[bankindex].jsonStr[ansindex].ansText.imageList.push(dir)
  745. }
  746. });
  747. } else {
  748. const dir = await self.uploadFile(img, 0);
  749. this.questionList[bankindex].jsonStr[ansindex].ansText.imageList.push(dir)
  750. }
  751. }
  752. });
  753. }
  754. })
  755. },
  756. uploadFile(options, int) {
  757. var self = this;
  758. return new Promise((resolve, reject) => {
  759. var data = {
  760. imageStatus: int
  761. };
  762. self.$api.aliyunpolicy(data).then(res => {
  763. console.log(res.data,6)
  764. if(res.data.code!=200){
  765. self.$method.showToast('签名错误'+JSON.stringify(res.data))
  766. return
  767. }
  768. var ossToken = res.data.data.resultContent;
  769. if(ossToken.host==null||ossToken.host==undefined){
  770. self.$method.showToast('上传路径报错'+JSON.stringify(res.data))
  771. return
  772. }
  773. uni.uploadFile({
  774. url: ossToken.host,
  775. name: 'file',
  776. filePath: options,
  777. fileType: 'image',
  778. header: {
  779. AuthorizationToken: 'WX ' + uni.getStorageSync('token')
  780. },
  781. formData: {
  782. key: ossToken.dir,
  783. OSSAccessKeyId: ossToken.accessid,
  784. policy: ossToken.policy,
  785. Signature: ossToken.signature,
  786. callback: ossToken.callback,
  787. success_action_status: 200
  788. },
  789. success: result => {
  790. if (result.statusCode === 200) {
  791. resolve(ossToken.dir);
  792. } else {
  793. uni.showToast({
  794. title: '上传失败',
  795. icon: 'none'
  796. });
  797. return;
  798. }
  799. },
  800. fail: error => {
  801. uni.showToast({
  802. title: '上传接口报错'+error,
  803. icon: 'none'
  804. });
  805. return;
  806. }
  807. });
  808. });
  809. });
  810. },
  811. submitAns(bankindex) {
  812. console.log(this.questionList[bankindex])
  813. if(!this.questionList[bankindex].ansText.text && !this.questionList[bankindex].ansText.imageList.length) {
  814. uni.showToast({
  815. title: '请输入内容或上传图片',
  816. duration: 2000,
  817. icon:'none'
  818. });
  819. return
  820. }
  821. this.$set(this.questionList[bankindex],'ques',{
  822. imageList:this.questionList[bankindex].ansText.imageList,
  823. text:this.questionList[bankindex].ansText.text,
  824. })
  825. },
  826. submitAnsChild(bankindex,ansindex) {
  827. if(!this.questionList[bankindex].jsonStr[ansindex].ansText.text && !this.questionList[bankindex].jsonStr[ansindex].ansText.imageList.length) {
  828. uni.showToast({
  829. title: '请输入内容或上传图片',
  830. duration: 2000,
  831. icon:'none'
  832. });
  833. return
  834. }
  835. this.$set(this.questionList[bankindex].ques,ansindex,{
  836. imageList:this.questionList[bankindex].jsonStr[ansindex].ansText.imageList,
  837. text:this.questionList[bankindex].jsonStr[ansindex].ansText.text,
  838. })
  839. },
  840. isRight(item,index) {
  841. //单选
  842. if(this.questionList[index].ques) {
  843. if(item.type == 1) {
  844. return this.questionList[index].ques == this.questionList[index].ans;
  845. //多选
  846. } else if(item.type == 2) {
  847. //每一项都相等
  848. return this.questionList[index].ques.every((item,i) => {
  849. return item == this.questionList[index].ans[i];
  850. })
  851. //判断
  852. } else if(item.type == 3) {
  853. return this.questionList[index].ques == this.questionList[index].ans;
  854. } else {
  855. return false;
  856. }
  857. } else {
  858. return false;
  859. }
  860. },
  861. right(bankIndex,ansIndex,option) {
  862. if(this.questionList[bankIndex].ques[ansIndex] && this.questionList[bankIndex].ans[ansIndex]) {
  863. if((this.questionList[bankIndex].ques[ansIndex].indexOf(option.optionsId) != -1 ) || (this.questionList[bankIndex].ans[ansIndex].indexOf(option.optionsId) != -1)) {
  864. return true
  865. } else {
  866. return false;
  867. }
  868. } else {
  869. return false;
  870. }
  871. },
  872. wrong(bankIndex,ansIndex,option) {
  873. if(this.questionList[bankIndex].ques[ansIndex] && this.questionList[bankIndex].ans[ansIndex]) {
  874. if((this.questionList[bankIndex].ques[ansIndex].indexOf(option.optionsId) != -1 ) && (this.questionList[bankIndex].ans[ansIndex].indexOf(option.optionsId) == -1)) {
  875. return true;
  876. } else {
  877. return false;
  878. }
  879. } else {
  880. return false;
  881. }
  882. },
  883. isWrong(item,index) {
  884. if(this.questionList[index].ques) {
  885. //单选
  886. if(item.type == 1) {
  887. return this.questionList[index].ques != this.questionList[index].ans;
  888. //多选
  889. } else if(item.type == 2) {
  890. //每一项都相等
  891. return this.questionList[index].ques.some((item,index) => {
  892. return item != this.questionList[index].ans;
  893. })
  894. //判断
  895. } else if(item.type == 3) {
  896. return this.questionList[index].ques != this.questionList[index].ans;
  897. } else {
  898. return false;
  899. }
  900. } else {
  901. return false;
  902. }
  903. },
  904. tabSelect(index,bankindex) {
  905. this.$set(this.questionList[bankindex],'current',index)
  906. },
  907. pdsubmit() {
  908. uni.showToast({
  909. icon:'none',
  910. title:'交卷成功',
  911. duration:1000,
  912. })
  913. setTimeout(() => {
  914. uni.navigateBack({
  915. delta:1
  916. })
  917. },1000)
  918. }
  919. }
  920. };
  921. </script>
  922. <style lang="scss" scoped>
  923. .swiper {
  924. width:100%;
  925. height:100vh;
  926. }
  927. .lisSty {
  928. margin-bottom: 16rpx;
  929. display: flex;
  930. align-items: center;
  931. .flex_auto {
  932. flex:1;
  933. }
  934. }
  935. .activeTI {
  936. vertical-align: middle;
  937. display: inline-block;
  938. border: 1rpx solid #eee;
  939. border-radius: 50rpx;
  940. height: 48rpx;
  941. line-height: 46rpx;
  942. text-align: center;
  943. width: 48rpx;
  944. margin-right: 15rpx;
  945. color: #666;
  946. font-size: 30rpx;
  947. &.right {
  948. color:#fff;
  949. background:#36C75A;
  950. }
  951. &.wrong {
  952. color:#fff;
  953. background:#FF3B30;
  954. }
  955. &.checked {
  956. color:#fff;
  957. background:#007AFF;
  958. }
  959. }
  960. .submit_checkbox {
  961. position:fixed;
  962. left:0;
  963. right:0;
  964. bottom:120rpx;
  965. margin: 20rpx auto;
  966. width: 526rpx;
  967. height: 80rpx;
  968. background: rgba(0, 122, 255, 1);
  969. color:#fff;
  970. text-align: center;
  971. line-height: 80rpx;
  972. font-size: 30rpx;
  973. border-radius: 40rpx;
  974. &.disabled {
  975. opacity: 0.6;
  976. }
  977. }
  978. .titles {
  979. overflow: hidden;
  980. margin-bottom: 24rpx;
  981. }
  982. .titBox {
  983. padding: 41rpx 25rpx 24rpx 25rpx;
  984. }
  985. .titBox_title {
  986. padding: 21rpx;
  987. }
  988. .tabs {
  989. margin:10rpx;
  990. display: flex;
  991. .tab {
  992. margin: 0 4rpx;
  993. padding:10rpx 13rpx;
  994. text-align: center;
  995. color: #007aff;
  996. font-size: 28rpx;
  997. border-radius: 16rpx;
  998. background:#fff;
  999. &.current {
  1000. color:#fff;
  1001. background: #007AFF;
  1002. }
  1003. }
  1004. }
  1005. .ans {
  1006. margin:8rpx 8rpx 8rpx;
  1007. .ans_input {
  1008. border-radius: 16rpx;
  1009. background:#fff;
  1010. .top {
  1011. border-bottom:1rpx solid #EEEEEE;
  1012. padding: 16rpx;
  1013. display: flex;
  1014. align-items: center;
  1015. .icon {
  1016. margin-right:20rpx;
  1017. width: 40rpx;
  1018. height: 38rpx;
  1019. }
  1020. .progress {
  1021. flex:1;
  1022. }
  1023. .submit {
  1024. width: 168rpx;
  1025. height: 48rpx;
  1026. line-height: 48rpx;
  1027. text-align: center;
  1028. color:#fff;
  1029. font-size: 30rpx;
  1030. background: #007AFF;
  1031. border-radius: 24rpx;
  1032. }
  1033. }
  1034. .textarea {
  1035. textarea {
  1036. width:100%;
  1037. height:287rpx;
  1038. padding:10rpx;
  1039. }
  1040. }
  1041. .imgs {
  1042. overflow: hidden;
  1043. display: flex;
  1044. width:100%;
  1045. .img {
  1046. width: 104rpx;
  1047. height: 104rpx;
  1048. border-radius: 8rpx;
  1049. position:relative;
  1050. margin:20rpx;
  1051. text {
  1052. position:absolute;
  1053. right:-15rpx;
  1054. top:-15rpx;
  1055. width:30rpx;
  1056. height:30rpx;
  1057. text-align: center;
  1058. line-height: 30rpx;
  1059. color:#fff;
  1060. background:#FF3B30;
  1061. border-radius:50%;
  1062. }
  1063. image {
  1064. width:100%;
  1065. height:100%;
  1066. }
  1067. }
  1068. }
  1069. }
  1070. .ans_submit {
  1071. padding:16rpx;
  1072. border-radius: 16rpx;
  1073. background:#fff;
  1074. .imgs {
  1075. overflow: hidden;
  1076. display: flex;
  1077. width:100%;
  1078. .img {
  1079. width: 104rpx;
  1080. height: 104rpx;
  1081. border-radius: 8rpx;
  1082. position:relative;
  1083. margin:20rpx;
  1084. image {
  1085. width:100%;
  1086. height:100%;
  1087. }
  1088. }
  1089. }
  1090. }
  1091. }
  1092. .firstLetter {
  1093. display: flex;
  1094. justify-content: space-between;
  1095. align-items: center;
  1096. margin-bottom: 30rpx;
  1097. .leftLetters {
  1098. display: flex;
  1099. align-items: center;
  1100. width: 220rpx;
  1101. .btnType {
  1102. padding: 5rpx 10rpx;
  1103. border: 1rpx solid #007aff;
  1104. border-radius: 10rpx;
  1105. background-color: rgba(0, 122, 255, 0.1);
  1106. font-size: 28rpx;
  1107. color: #007aff;
  1108. margin-right: 15rpx;
  1109. }
  1110. }
  1111. }
  1112. .popupView {
  1113. height: 100%;
  1114. padding-bottom: 100rpx;
  1115. .popupTops {
  1116. height: 77rpx;
  1117. border-bottom: 1rpx solid #eee;
  1118. text-align: center;
  1119. line-height: 77rpx;
  1120. font-size: 24rpx;
  1121. color: #999;
  1122. position: relative;
  1123. .topIcon {
  1124. position: absolute;
  1125. top: 10rpx;
  1126. left: 50%;
  1127. transform: translateX(-50%);
  1128. width: 80rpx;
  1129. height: 8rpx;
  1130. background-color: #999;
  1131. border-radius: 4rpx;
  1132. }
  1133. }
  1134. .popupContent {
  1135. }
  1136. }
  1137. .pageContent {
  1138. position:relative;
  1139. background-color: #eaeef1;
  1140. height: 100%;
  1141. overflow-y: scroll;
  1142. padding-top: 8rpx;
  1143. padding-bottom: 100rpx;
  1144. }
  1145. .pad_8 {
  1146. background-color: #fff;
  1147. margin: 0rpx 8rpx 8rpx;
  1148. border-radius: 16rpx;
  1149. &.no-margin {
  1150. margin-top:-16rpx;
  1151. border-radius: 0 0 16rpx 16rpx;
  1152. }
  1153. }
  1154. .answer {
  1155. height: 80rpx;
  1156. line-height: 80rpx;
  1157. padding: 0rpx 24rpx;
  1158. display: flex;
  1159. align-items: center;
  1160. justify-content: space-between;
  1161. color: #666;
  1162. font-size: 30rpx;
  1163. }
  1164. .footer_btn {
  1165. background-color: #fff;
  1166. z-index: 10078;
  1167. position: fixed;
  1168. bottom: 0rpx;
  1169. display: flex;
  1170. align-items: center;
  1171. justify-content: space-between;
  1172. width: 100%;
  1173. height: 98rpx;
  1174. padding: 0rpx 38rpx;
  1175. border-top: 1rpx solid #eee;
  1176. .flex_center {
  1177. flex:1;
  1178. display: flex;
  1179. justify-content: center;
  1180. align-items: center;
  1181. flex-direction: column;
  1182. margin:0 200rpx;
  1183. font-size: 24rpx;
  1184. color: #999999;
  1185. .up-icon {
  1186. margin-bottom:18rpx;
  1187. width:100%;
  1188. display: flex;
  1189. justify-content: center;
  1190. image {
  1191. width:58rpx;
  1192. height:21rpx;
  1193. }
  1194. }
  1195. }
  1196. .collect {
  1197. visibility: hidden;
  1198. &.show {
  1199. visibility: visible;
  1200. }
  1201. >view {
  1202. display: flex;
  1203. flex-direction: column;
  1204. align-items: center;
  1205. justify-content: center;
  1206. image {
  1207. width:32rpx;
  1208. height:32rpx;
  1209. margin-bottom:6rpx;
  1210. }
  1211. view {
  1212. font-size: 24rpx;
  1213. color: #999999;
  1214. }
  1215. }
  1216. }
  1217. }
  1218. .boxSty {
  1219. padding: 44rpx 41rpx 0rpx;
  1220. }
  1221. .liListSty {
  1222. border:1rpx solid #EEEEEE;
  1223. width: 88rpx;
  1224. height: 88rpx;
  1225. border-radius: 32rpx;
  1226. text-align: center;
  1227. line-height: 88rpx;
  1228. color: #333;
  1229. font-size: 32rpx;
  1230. float: left;
  1231. margin: 20rpx 23rpx;
  1232. &.isRight {
  1233. border:1rpx solid #EEEEEE;
  1234. color:#fff;
  1235. background: #36C75A;
  1236. }
  1237. &.isWrong {
  1238. border:1rpx solid #EEEEEE;
  1239. color:#fff;
  1240. background: #FF3B30;
  1241. }
  1242. }
  1243. .answerInfos {
  1244. padding: 25rpx 25rpx 25rpx 23rpx;
  1245. }
  1246. .answerTitle {
  1247. margin-bottom: 28rpx;
  1248. color: #666;
  1249. font-size: 30rpx;
  1250. }
  1251. .answerContent {
  1252. font-size: 30rpx;
  1253. color: #666;
  1254. }
  1255. .textChild {
  1256. display: inline-block;
  1257. vertical-align: middle;
  1258. }
  1259. .dialog {
  1260. position: fixed;
  1261. left:0;
  1262. top:0;
  1263. width:100%;
  1264. height:100%;
  1265. background-color: rgba(0,0,0,0.8);
  1266. display: flex;
  1267. flex-direction: column;
  1268. align-items: center;
  1269. justify-content: center;
  1270. z-index: 20000;
  1271. .pointer {
  1272. width:338rpx;
  1273. height:240rpx;
  1274. }
  1275. .text {
  1276. font-size: 32rpx;
  1277. color: #FFFFFF;
  1278. text-align: center;
  1279. }
  1280. .btn {
  1281. width: 242rpx;
  1282. height: 82rpx;
  1283. border: 2rpx solid #FFFFFF;
  1284. border-radius: 16rpx;
  1285. text-align: center;
  1286. line-height: 82rpx;
  1287. margin:41rpx auto;
  1288. color:#fff;
  1289. font-size: 32rpx;
  1290. }
  1291. }
  1292. </style>