You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

813 lines
21 KiB

4 weeks ago
4 weeks ago
3 weeks ago
3 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
3 weeks ago
3 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
  1. <template>
  2. <view class="content">
  3. <up-navbar leftText=" " title="" :safeAreaInsetTop="false" :autoBack="true">
  4. <template #center>
  5. <view class="flex">
  6. <view class="lastText">剩余时间</view>
  7. <view class="lastText" style="margin: 8rpx 0 0 8rpx"><up-count-down :time="totalExamTime * 60 * 1000" format="mm:ss" @finish="finishFn" ref="countDownRef"></up-count-down></view>
  8. </view>
  9. </template>
  10. </up-navbar>
  11. <view class="top_row flex">
  12. <view class="itemCount">
  13. <up-icon name="checkmark-circle-fill" color="#55ff7f" size="20" ></up-icon>
  14. <view class="count">{{ yesNum }}</view>
  15. </view>
  16. <view class="itemCount">
  17. <up-icon name="close-circle-fill" color="#ff0000" size="20" ></up-icon>
  18. <view class="count">{{ noNum }}</view>
  19. </view>
  20. <view class="mr">
  21. <view class="count">{{currentIndex+1}}/<text>{{questionBankList.length}}</text></view>
  22. </view>
  23. </view>
  24. <view class="con padding">
  25. <view class="h1_row">
  26. <text class="tag" :class="{red: questionBank.types==2, blue: questionBank.types==3}">{{types[questionBank.types-1]}}</text>
  27. <text class="h1" @click="speak(questionBank.title)">{{ questionBank.title}}</text>
  28. </view>
  29. <view class="imgBox" style="width: 100%;padding: 0 0 30rpx 0;" v-if="questionBank.img">
  30. <image :src="questionBank.img" mode="widthFix"></image>
  31. </view>
  32. <view class="option">
  33. <view v-for="(item,index) in questionBank.optionArr" @click="chooseOption(item)">
  34. <!-- 多选题 -->
  35. <view class="optionItem flex" v-if="questionBank.types ==2&& (!curOption.answer||curOption.answer==questionBank.answer)">
  36. <up-icon name="checkmark-circle-fill" color="#55ff7f" size="20" v-if="curOption.ans?.includes(item.key)"></up-icon>
  37. <view class="icon" v-else></view>
  38. <view class="text"><text >{{item.key}}</text> {{item.text}}</view>
  39. </view>
  40. <!-- 正常答案 -->
  41. <view class="optionItem flex" v-else >
  42. <view class="icon" v-if="!curOption.key&&questionBank.types !=2"></view>
  43. <up-icon name="checkmark-circle-fill" color="#55ff7f" size="20" v-else-if="questionBank.answer.includes(item.key)"></up-icon>
  44. <up-icon name="close-circle-fill" color="#ff0000" size="20" v-else></up-icon>
  45. <view class="text"><text v-if="questionBank.types!=3">{{item.key}}</text> {{item.text}}</view>
  46. </view>
  47. <!-- ans -->
  48. </view>
  49. </view>
  50. <view class="answerCss flex" v-if="curOption.answer&&questionBank.answer!=curOption.answer">
  51. <view class="ans">正确答案是
  52. <text v-if="questionBank.types==3" >{{ questionBank.answer=='false'?'错误':'正确' }}</text>
  53. <text v-else >{{ questionBank.answer }}</text>
  54. </view>
  55. <view class="ans">您的答案是
  56. <text v-if="questionBank.types==3" class="red">{{ curOption.answer=='false'?'错误':'正确' }}</text>
  57. <text v-else class="red">{{ curOption.answer }}</text>
  58. </view>
  59. </view>
  60. <view class="btn_row flex-b">
  61. <!-- @click="$goPage('/pages/exercises/lastPage/lastPage')" -->
  62. <button class="btn border" @click="debounce(nextQuestion(-1), 500)" :class="{disable: currentIndex==0}" :disabled="currentIndex==0">上一题</button>
  63. <button class="btn bg" @click="debounce(nextQuestion(1), 500)" :class="{disable: currentIndex>=questionBankList.length-1}" :disabled="currentIndex>=questionBankList.length-1">下一题</button>
  64. </view>
  65. <view class="analysis" v-if="currentNav==2||(curOption.answer&&curOption.answer!=questionBank.answer)">
  66. <view class="tit">题目解析</view>
  67. <view class="txt">{{ questionBank.resolving }}</view>
  68. </view>
  69. </view>
  70. <view class="bottomBar">
  71. <view class="ul">
  72. <!-- <view class="li">
  73. <view class="icon" style="color: #55ff7f;">{{ yesNum }}</view>
  74. <view class="text">答对</view>
  75. </view>
  76. <view class="li">
  77. <view class="icon" style="color: #ff0000;">{{ noNum }}</view>
  78. <view class="text">答错</view>
  79. </view>
  80. <view class="li">
  81. <view class="icon">{{currentIndex}}/<text style="color: #999; font-size: 24rpx;">{{quesIdList.length}}</text></view>
  82. <view class="text">题目</view>
  83. </view> -->
  84. <view class="flex leftCotrl">
  85. <view class="li" @click="showCommt=true">
  86. <view class="icon">
  87. <image src="@/static/images/theory/fankui.png" mode=""></image>
  88. </view>
  89. <view class="text">反馈</view>
  90. </view>
  91. <view class="li" @click="openPopup">
  92. <view class="icon">
  93. <image src="@/static/images/theory/dtk.png" mode=""></image>
  94. </view>
  95. <view class="text">答题卡</view>
  96. </view>
  97. <view class="li" @click="questionWrongColleFn">
  98. <view class="icon">
  99. <image src="@/static/images/theory/scActive.png" mode="" v-if="questionBank.isCollect=='1'"></image>
  100. <image src="@/static/images/theory/sc.png" mode="" v-else></image>
  101. </view>
  102. <view class="text">收藏</view>
  103. </view>
  104. </view>
  105. <view class="submitBtn" @click="handApaper">交卷</view>
  106. </view>
  107. </view>
  108. <up-popup :show="show" @close="closePopup" @open="openPopup" mode="bottom" round="20" closeable>
  109. <view class="popupCon">
  110. <view class="h3">答题卡</view>
  111. <view class="ulRow">
  112. <view class="ul">
  113. <view class="li">
  114. <view class="icon" style="color: #55ff7f;">{{ yesNum }}</view>
  115. <view class="text">答对</view>
  116. </view>
  117. <view class="li">
  118. <view class="icon" style="color: #ff0000;">{{ noNum }}</view>
  119. <view class="text">答错</view>
  120. </view>
  121. <view class="li" style="margin-left: auto;">
  122. <view class="icon">{{currentIndex+1}}/<text style="color: #999; font-size: 24rpx;">{{questionBankList.length}}</text></view>
  123. <view class="text">题目</view>
  124. </view>
  125. </view>
  126. </view>
  127. <view class="ul2">
  128. <view class="li2" v-for="(item,index) in questionBankList" :key="index" @click="quesIdListClick(item,index)">
  129. <view class="num" :class="{yes: item.yes==1, no: item.yes==0}">{{ index+1 }} <text v-if="index==currentIndex">当前</text> </view>
  130. </view>
  131. </view>
  132. </view>
  133. </up-popup>
  134. <up-popup :show="showCommt" @close="showCommtClose" mode="bottom" round="20rpx" closeable>
  135. <view class="commtCon" style="padding: 30rpx">
  136. <up-textarea v-model.trim="contentStr" placeholder="请输入反馈内容" style="margin-top: 50rpx;" maxlength="300"></up-textarea>
  137. <up-button text="提 交" style="margin-top: 20rpx;" type="primary" @click="submitClick"></up-button>
  138. </view>
  139. </up-popup>
  140. <up-popup :show="showCommit" @close="closeCommitPopup" mode="center" round="20rpx" closeable >
  141. <view class="commitCon">
  142. <view class="tit" v-if="remaining">当前考试进度</view>
  143. <view class="tit" style="color: red;" v-else-if="passScore.value*1>yesNum.value">成绩不合格</view>
  144. <view class="flex">
  145. <view class="commitItem">
  146. <view class="num">{{ remaining }}</view>
  147. <view class="lab">未答题数</view>
  148. </view>
  149. <view class="commitItem">
  150. <view class="num">{{ questionBankList.length - remaining}}</view>
  151. <view class="lab">已答题数</view>
  152. </view>
  153. <view class="commitItem">
  154. <view class="num"><up-count-down :time="totalExamTime * 60 * 60 * 1000" format="HH:mm" ref="countDownRef"/></view>
  155. <view class="lab">剩余时间</view>
  156. </view>
  157. </view>
  158. <view class="imgAdd">
  159. <image src="@/static/images/bigImg/addImg.png" mode="widthFix"></image>
  160. </view>
  161. <view class="btn_commit_row flex-b" v-if="remaining">
  162. <view class="border btn" @click="goBack" >放弃考试</view>
  163. <view class="btn" @click="closeCommitPopup">继续考试</view>
  164. </view>
  165. <view class="btn_commit_row flex-b" v-else>
  166. <view class="border btn" @click="closeCommitPopup" >继续答题</view>
  167. <view class="btn" @click="submitBtnFn">现在交卷</view>
  168. </view>
  169. </view>
  170. </up-popup>
  171. </view>
  172. </template>
  173. <script setup>
  174. function speak(text) {
  175. const speech = new SpeechSynthesisUtterance(text); // 创建语音消息
  176. window.speechSynthesis.speak(speech); // 播报消息
  177. }
  178. import { startExam, getQuestionApi, questionCommentAdd, startExamDo, questionWrongColle } from '@/config/api.js'
  179. import { debounce } from '@/uni_modules/uview-plus';
  180. import {
  181. ref,
  182. reactive,
  183. watch,
  184. nextTick,
  185. } from 'vue';
  186. const currentNav = ref('1')
  187. const types = ref([
  188. '单选题',
  189. '多选题',
  190. '判断题'
  191. ])
  192. const yesNum = ref(0)
  193. const noNum = ref(0)
  194. let showCommit = ref(false)
  195. import carStore from '@/store/modules/car.js'
  196. let usecarStore = carStore()
  197. import {
  198. onLoad,
  199. onReady
  200. } from "@dcloudio/uni-app"
  201. let totalExamTime = ref(45)
  202. let passScore = ref(90)
  203. onLoad((options)=>{
  204. totalExamTime.value = options.totalExamTime
  205. passScore.value = options.score
  206. })
  207. // 1:单选题,2:多选题,3:判断题
  208. function changeNav(val) {
  209. console.log(window)
  210. if(currentNav.value == val) return
  211. currentNav.value = val
  212. }
  213. function goEmam() {
  214. uni.navigateTo({
  215. // url: '/pages/exercises/exam/exam',
  216. // url: '/pages/exercises/beforeExam/beforeExam',
  217. // url: '/pages/exercises/examResults/examResults',
  218. // url: '/pages/exercises/wrongQuestion/wrongQuestion',
  219. // url: '/pages/exercises/theoryStudy/theoryStudy',
  220. url: '/pages/vip/vipEntry/vipEntry'
  221. })
  222. }
  223. function changeTabbar(val) {
  224. console.log(val)
  225. }
  226. const show = ref(false)
  227. function closePopup() {
  228. show.value = false
  229. }
  230. function openPopup() {
  231. show.value = true
  232. }
  233. let showCommt = ref(false)
  234. let contentStr = ref('')
  235. function showCommtClose() {
  236. showCommt.value = false
  237. contentStr.value = ''
  238. }
  239. // 提交反馈
  240. async function submitCommt() {
  241. if(!contentStr.value) return uni.$u.toast('请输入内容')
  242. let obj = {
  243. content: contentStr.value,
  244. questionId: questionBank.value.id
  245. }
  246. const res = await questionCommentAdd(obj)
  247. if(res.errorcode==0) {
  248. uni.$u.toast('提交成功,感谢您的反馈')
  249. showCommt.value = false
  250. }
  251. }
  252. // 请求数据
  253. const questionBank = ref({})
  254. const questionBankList = ref([])
  255. let examInfo = ref([])
  256. let currentIndex = ref(0)
  257. async function startQuestionFn() {
  258. try{
  259. uni.showLoading({
  260. title: '正在加载...'
  261. })
  262. let obj = {
  263. carType: usecarStore.carInfo.carType,
  264. stepType: usecarStore.carInfo.stepType,
  265. examType: 1,
  266. }
  267. const {data: res} = await startExam(obj)
  268. uni.hideLoading()
  269. questionBank.value = res.questionBank[0]
  270. questionBankList.value = res.questionBank
  271. initOptionArr()
  272. examInfo.value = res
  273. }catch(e){
  274. uni.hideLoading()
  275. }
  276. }
  277. startQuestionFn()
  278. watch(()=>questionBankList, (newVal, oldVal)=>{
  279. yesNum.value = oldVal.value.filter(item=>item.yes).length
  280. noNum.value = oldVal.value.filter(item=>item.yes==0).length
  281. }, {deep: true})
  282. function initOptionArr() {
  283. questionBank.value.optionArr = []
  284. let abcd = [
  285. 'a',
  286. 'b',
  287. 'c',
  288. 'd',
  289. 'e',
  290. 'f'
  291. ]
  292. abcd.forEach((k,i)=>{
  293. let option = 'option'+k
  294. if(questionBank.value[option]) {
  295. let obj = {
  296. key: k.toLocaleUpperCase(),
  297. text: questionBank.value[option],
  298. index: i+1
  299. }
  300. questionBank.value.optionArr.push(obj)
  301. // console.log(questionBank.value.optionArr)
  302. }
  303. })
  304. // 如果是判断题
  305. if(questionBank.value.types==3) {
  306. questionBank.value.optionArr[0].key = 'true'
  307. questionBank.value.optionArr[1].key = 'false'
  308. }
  309. }
  310. // 下一题
  311. async function nextQuestion(num) {
  312. // 如果是多选题,什么时候不直接请求下一题,是多选题 ,并且有答案,答错了,并且不是next
  313. if(questionBank.value.types==2 && curOption.value.ans) {
  314. // 如果没有请求就请求一下
  315. if(!curOption.value.answer) {
  316. curOption.value.answer = curOption.value.ans
  317. }
  318. // 如果答案不一样,并且是第一次请求
  319. if(questionBank.value.answer != curOption.value.ans&&curOption.value.isNext != 'next') {
  320. curOption.value.isNext = 'next'
  321. questionBank.value.yes = 0
  322. return false
  323. }else if(questionBank.value.answer == curOption.value.ans) {
  324. questionBank.value.yes = 1
  325. }
  326. }
  327. curOption.value = {}
  328. currentIndex.value = currentIndex.value + num
  329. getQuestionFn()
  330. }
  331. // 请求下一题
  332. async function getQuestionFn() {
  333. console.log(currentIndex.value)
  334. // let questionId = quesIdList.value[currentIndex.value-1]
  335. // let obj = {
  336. // "carType": usecarStore.carInfo.carType,
  337. // "questionId": questionId,
  338. // "sort": currentIndex.value,
  339. // "stepType": usecarStore.carInfo.stepType,
  340. // 'tempId': questionBank.value.questionDoTemp.id
  341. // }
  342. // const {data: res} = await getQuestionApi(obj)
  343. questionBank.value = questionBankList.value[currentIndex.value]
  344. curOption.value = {}
  345. curOption.value.isNext = ''
  346. initOptionArr()
  347. }
  348. async function quesIdListClick(id, index) {
  349. curOption.value = {}
  350. currentIndex.value = index
  351. getQuestionFn()
  352. show.value = false
  353. }
  354. async function questionWrongColleFn() {
  355. let isAdd = questionBank.value.isCollect==1?'0':'1'
  356. const obj = {
  357. "carType": usecarStore.carInfo.carType,
  358. "isAdd": isAdd,
  359. "questionId": questionBank.value.id,
  360. "stepType": usecarStore.carInfo.stepType
  361. }
  362. const res = await questionWrongColle(obj)
  363. questionBank.value.isCollect = isAdd
  364. console.log(questionBank.value.isCollect)
  365. }
  366. // 选择答案
  367. const curOption = ref({})
  368. async function chooseOption(item) {
  369. console.log(item)
  370. if(curOption.value.answer) return
  371. if(questionBank.value.types != 2) {
  372. // 如果答案正确 下一题
  373. if(questionBank.value.answer==item.key) {
  374. questionBank.value.yes = 1
  375. currentIndex.value = currentIndex.value + 1
  376. curOption.value = item
  377. setTimeout(()=>{
  378. getQuestionFn()
  379. },500)
  380. }else {
  381. item.answer = item.key
  382. curOption.value = item
  383. questionBank.value.yes = 0
  384. }
  385. }else if(questionBank.value.types == 2){
  386. if(!curOption.value.ans) curOption.value.ans = ''
  387. if(curOption.value.ans.includes(item.key)) {
  388. curOption.value.ans = curOption.value.ans.replace(item.key, '')
  389. return
  390. }
  391. curOption.value.ans = (curOption.value.ans + item.key).split('').sort().join('')
  392. // console.log(curOption.value.ans)
  393. }
  394. }
  395. // 点击交卷
  396. let remaining = ref(0)
  397. let countDownRef = ref(null)
  398. function handApaper() {
  399. let arr = questionBankList.value.filter(item=>item.yes==undefined)
  400. // 不及格或者有没有做完的题
  401. if(arr.length || passScore.value*1>yesNum.value) {
  402. remaining.value = arr.length
  403. showCommit.value = true
  404. if (countDownRef.value) {
  405. countDownRef.value.pause();
  406. }
  407. }else {
  408. submitBtnFn()
  409. }
  410. }
  411. // 关闭交卷弹框
  412. function closeCommitPopup() {
  413. showCommit.value = false
  414. if (countDownRef.value) {
  415. countDownRef.value.start();
  416. }
  417. }
  418. // 交卷
  419. async function submitBtnFn() {
  420. let wrongArr = questionBankList.value.filter(item=>item.yes!=1)
  421. let worngId = wrongArr.map(item=>item.id).join(',')
  422. let obj = {
  423. "answer": null,
  424. "carType": usecarStore.carInfo.carType,
  425. "examId": examInfo.value.id,
  426. "examType": 1,
  427. "grade": questionBankList.value.length - wrongArr.length,
  428. "isEnd": 1,
  429. "pass": 1,
  430. "sort": examInfo.value.sort,
  431. "stepType": usecarStore.carInfo.stepType,
  432. "userId": examInfo.value.userId,
  433. "wrongQuestionIds": worngId
  434. }
  435. const res = await startExamDo(obj)
  436. console.log(res)
  437. uni.$u.toast('已交卷')
  438. setTimeout(()=>{
  439. uni.navigateBack()
  440. },1500)
  441. }
  442. function finishFn() {
  443. uni.$u.toast('考试时间已到,准备自动为您交卷')
  444. setTimeout(()=>{
  445. submitBtnFn()
  446. },1500)
  447. }
  448. // 返回
  449. function goBack() {
  450. uni.navigateBack()
  451. }
  452. </script>
  453. <style lang="scss" scoped>
  454. .top_row {
  455. height: 88rpx;
  456. font-weight: 500;
  457. font-size: 24rpx;
  458. color: #333333;
  459. border-bottom: 2rpx solid #F4F4F4;
  460. padding: 0 30rpx;
  461. margin-bottom: 30rpx;
  462. .itemCount {
  463. margin-right: 60rpx;
  464. display: flex;
  465. align-items: center;
  466. .count {
  467. margin-left: 20rpx;
  468. }
  469. }
  470. .mr {
  471. margin-left: auto;
  472. }
  473. }
  474. image {display: block;width: 100%;height: 100%;}
  475. .bottomBar {
  476. position: fixed;
  477. bottom: 0;
  478. left: 0;
  479. width: 100%;
  480. height: 98rpx;
  481. background: #FFFFFF;
  482. border-top: 1rpx solid #F4F4F4;
  483. }
  484. .ul {
  485. display: flex;
  486. justify-content: space-between;
  487. height: 100%;
  488. align-items: center;
  489. .leftCotrl {
  490. flex: 1;
  491. }
  492. .submitBtn {
  493. width: 100rpx;
  494. height: 50rpx;
  495. background: linear-gradient(0deg, #4FACFE 0%, #00F2FE 100%);
  496. border-radius: 25rpx;
  497. font-size: 24rpx;
  498. line-height: 50rpx;
  499. text-align: center;
  500. margin-right: 32rpx;
  501. color: #fff;
  502. }
  503. .li {
  504. // width: 16.6%;
  505. padding: 0 30rpx;
  506. display: flex;
  507. flex-direction: column;
  508. align-items: center;
  509. justify-content: center;
  510. .icon {
  511. font-size: 30rpx;
  512. height: 30rpx;
  513. line-height: 30rpx;
  514. image {
  515. display: block;
  516. margin-top: 4rpx;
  517. width: 26rpx;
  518. height: 26rpx;
  519. }
  520. }
  521. .text {
  522. font-weight: 500;
  523. font-size: 24rpx;
  524. color: #999999;
  525. margin-top: 10rpx;
  526. }
  527. }
  528. }
  529. .content {
  530. padding: 120rpx 0;
  531. min-height: 100vh;
  532. .u-nav-slot {
  533. width: 306rpx;
  534. height: 54rpx;
  535. border-radius: 10rpx;
  536. border: 1px solid #333333;
  537. display: flex;
  538. .btn {
  539. font-size: 24rpx;
  540. color: #333333;
  541. flex: 1;
  542. text-align: center;
  543. line-height: 54rpx;
  544. &.active {
  545. background-color: #333333;
  546. color: #fff;
  547. }
  548. }
  549. }
  550. .btn_row {
  551. padding: 60rpx 0 30rpx 0;
  552. .btn {
  553. width: 44%;
  554. height: 76rpx;
  555. border-radius: 38rpx;
  556. border: 1rpx solid $themC;
  557. line-height: 76rpx;
  558. text-align: center;
  559. font-size: 28rpx;
  560. color: $themC;
  561. &.disable {
  562. opacity: 0.4;
  563. }
  564. &.bg {
  565. background: #3776FF;
  566. border-radius: 38rpx;
  567. color: #fff;
  568. }
  569. }
  570. }
  571. .con {
  572. .h1_row {
  573. margin-bottom: 50rpx;
  574. .tag {
  575. display: inline-block;
  576. // width: 66px;
  577. height: 36rpx;
  578. line-height: 36rpx;
  579. padding: 4rpx 6rpx;
  580. background: #63C168;
  581. border-radius: 6rpx;
  582. margin-top: -2rpx;
  583. margin-right: 16rpx;
  584. font-size: 28rpx;
  585. color: #fff;
  586. &.blue {
  587. background: #3776FF;
  588. }
  589. &.red {
  590. background: orangered;
  591. }
  592. }
  593. text.h1 {
  594. font-size: 36rpx;
  595. }
  596. }
  597. .option {
  598. width: 100%;
  599. .optionItem {
  600. margin-bottom: 50rpx;
  601. align-items: center;
  602. .icon {
  603. width: 36rpx;
  604. height:36rpx;
  605. border-radius: 50%;
  606. border: 1rpx solid #999;
  607. }
  608. .text {
  609. font-size: 32rpx;
  610. margin-left: 16rpx;
  611. }
  612. }
  613. }
  614. .answerCss {
  615. height: 90rpx;
  616. background: #F4F4F4;
  617. padding: 30rpx;
  618. margin-top: 20rpx;
  619. justify-content: space-around;
  620. .ans {
  621. font-size: 30rpx;
  622. text {
  623. &.red {
  624. color: red;
  625. }
  626. }
  627. }
  628. }
  629. .analysis {
  630. margin-top: 60rpx;
  631. .tit {
  632. font-weight: 700;
  633. font-size: 32rpx;
  634. position: relative;
  635. padding-left: 30rpx;
  636. &::after {
  637. content: '';
  638. position: absolute;
  639. left: 0;
  640. top: 8rpx;
  641. width: 6rpx;
  642. height: 30rpx;
  643. background: linear-gradient(0deg, #43EA80 0%, #38F8D4 100%);
  644. border-radius: 3rpx;
  645. }
  646. }
  647. .txt {
  648. margin-top: 39rpx;
  649. font-size: 32rpx;
  650. color: #333333;
  651. }
  652. }
  653. }
  654. }
  655. .popupCon {
  656. width: 100%;
  657. height: calc(100vh - 200rpx);
  658. .h3 {
  659. height: 88rpx;
  660. border-bottom: 1px solid #F4F4F4;
  661. line-height: 88rpx;
  662. font-size: 30rpx;
  663. padding: 0rpx 0 0 30rpx;
  664. }
  665. .ulRow {
  666. height: 100rpx;
  667. padding: 30rpx 0;
  668. }
  669. .ul2 {
  670. display: flex;
  671. flex-wrap: wrap;
  672. padding: 30rpx 10rpx;
  673. height: calc(100vh - 388rpx);
  674. overflow-y: auto;
  675. .li2 {
  676. width: 16.6%;
  677. margin-bottom: 20rpx;
  678. .num {
  679. width: 100rpx;
  680. height: 100rpx;
  681. border-radius: 50%;
  682. margin: auto;
  683. background: #F6F7FA;
  684. font-size: 32rpx;
  685. line-height: 100rpx;
  686. text-align: center;
  687. position: relative;
  688. text {
  689. width: 68rpx;
  690. height: 34rpx;
  691. background: #3776FF;
  692. border-radius: 17rpx;
  693. display: block;
  694. font-weight: 400;
  695. font-size: 24rpx;
  696. color: #FFFFFF;
  697. text-align: center;
  698. line-height: 34rpx;
  699. position: absolute;
  700. bottom: -14rpx;
  701. left: 16rpx;
  702. }
  703. &.yes {
  704. border: 1px solid #63C168;
  705. background: rgba(99,193,104,0.1);
  706. color: #63C168;
  707. }
  708. &.no {
  709. border: 1px solid #FF3333;
  710. background: rgba(255,51,51,0.1);
  711. color: #FF3333;
  712. }
  713. }
  714. }
  715. }
  716. }
  717. .commitCon {
  718. width: calc(100vw - 100rpx);
  719. padding: 30rpx;
  720. .tit {
  721. font-weight: 500;
  722. font-size: 36rpx;
  723. color: #333333;
  724. text-align: center;
  725. }
  726. .flex {
  727. .commitItem {
  728. flex: 1;
  729. text-align: center;
  730. padding: 50rpx 0 40rpx 0;
  731. .lab {
  732. font-size: 28rpx;
  733. color: #CCCCCC;
  734. margin-top: 10rpx;
  735. }
  736. .num {
  737. font-weight: bold;
  738. font-size: 36rpx;
  739. color: #333333;
  740. }
  741. }
  742. }
  743. .imgAdd {
  744. width: 100%;
  745. img {
  746. }
  747. }
  748. .btn_commit_row {
  749. padding-top: 40rpx;
  750. .border.btn {
  751. border: 1rpx solid #CCCCCC;
  752. color: #CCCCCC;
  753. background: none;
  754. }
  755. .btn {
  756. width: 46%;
  757. height: 77rpx;
  758. text-align: center;
  759. line-height: 77rpx;
  760. background: #3776FF;
  761. border-radius: 39rpx;
  762. font-size: 28rpx;
  763. color: #FFFFFF;
  764. }
  765. }
  766. }
  767. </style>