questionBankTest.vue 37 KB

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