wrongBank.vue 37 KB

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