Scale.vue 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989
  1. <script setup lang="ts">
  2. // import { format } from 'date-fns/format';
  3. // import { format as myFormat } from 'date-fns/format';
  4. // import { format } from 'date-fns';
  5. import { format } from "date-fns";
  6. import CpmdHeader from '@/components/CpmdHeader.vue';
  7. import { onMounted, onUnmounted, ref } from 'vue'
  8. import { Check } from '@element-plus/icons-vue'
  9. import { number } from 'echarts';
  10. import { ElMessage } from 'element-plus';
  11. import { useRouter, useRoute } from 'vue-router';
  12. import { getCurrentTimeApi, getScaleApi, queryScaleDetailApi, saveScaleApi } from '@/api/plan';
  13. import { userInfoStore } from '@/stores'
  14. import CpdmTip from "@/components/CpdmTip.vue";
  15. //调用子组件的ref
  16. // 加一个锁表示不能重复点击
  17. const isLock = ref<boolean>(false)
  18. import { userPlanApi, userPlanDetailApi } from '@/api/home';
  19. import { id } from 'element-plus/es/locales.mjs';
  20. const userInfo = userInfoStore()
  21. const router = useRouter()
  22. const route = useRoute()
  23. //持久化设置 菜单状态
  24. // import { menuStatusStore } from '@/stores'
  25. // const menuStatus = menuStatusStore();
  26. // menuStatus.saveActiveIndex('3')
  27. const cpdmTip = ref<any>()
  28. //当前量表是否已经提交
  29. const isCompleted = ref<boolean>(false)
  30. const planObj = ref<any>({})
  31. const flag = ref<string>('')
  32. const flagName = ref<string>('')
  33. const planId = ref<string>('')
  34. const planName = ref<string>('')
  35. const startTime = ref<string>('')
  36. const num = ref<string>('')
  37. const isComplate = ref<string>('')
  38. //测试全部数字
  39. const planAllNum = ref<number>(0);
  40. //测试已完成的
  41. const planIsComplateNum = ref<number>(0);
  42. //测试未完成的
  43. const planNoComplateNum = ref<number>(0);
  44. //获取到的题目数组
  45. const scaleList = ref<any>([
  46. // {
  47. // id: '',
  48. // questionNo: '1',
  49. // serialNo: '',
  50. // content: '我发现我自己被一些琐碎的事情弄得很不开心',
  51. // checkItems: '非常符合;大部分符合;小部分符合;完全不符合',
  52. // questionType: '0',
  53. // questionParam: '',
  54. // weight: '',
  55. // score: '',
  56. // scoreDirection: '',
  57. // flag: '',
  58. // isCheck: '',
  59. // answerList: [{ name: '' }]
  60. // }
  61. ])
  62. //当前题的对象
  63. //刚进页面时第几题
  64. const topicIndex = ref<number>(1)
  65. //存储--方法的
  66. //有三个储存数组分别储存
  67. //抑郁自评量表
  68. //抑郁自评量表flag是"20210617020516"
  69. const listDepressed = ref<any>([])
  70. //知觉压力问卷
  71. //知觉压力量表flag是"20210913093250"
  72. const listStress = ref<any>([])
  73. //焦虑自评量表
  74. //焦虑自评量表flag是"20210617000853"
  75. const listAnxiety = ref<any>([])
  76. //下一题的方法
  77. const nextTopic = () => {
  78. //应该需要个防抖函数
  79. //记录一个索引
  80. //当前选项的flag //是多少题
  81. //判断当前索引下的数组中是否有isCheck为空
  82. //先判断这个是不是
  83. if (scaleList.value[topicIndex.value - 1].isCheck == '') {
  84. ElMessage({
  85. message: '请选择当前题目',
  86. type: "warning",
  87. })
  88. return
  89. }
  90. //已经选择的话---需要拿到当前对象---判断flag是另外三个的flag吗
  91. //如果是--则判断是否在数组里边--如果不在则存储
  92. //将抑郁自评量表的数据存储进数组
  93. if (scaleList.value[topicIndex.value - 1].flag == '20210617020516' && !listDepressed.value.includes(scaleList.value[topicIndex.value - 1].id)) {
  94. listDepressed.value.push(scaleList.value[topicIndex.value - 1].id)
  95. //判断抑郁压力数组的长度是20 调用保存接口
  96. //循环到数组 当前中所有flag 等于抑郁自评量表的数组--然后传输给保存方法
  97. //判断此数组长度是多少
  98. if (listDepressed.value.length == 20) {
  99. let list = []
  100. for (let i = 0; i < scaleList.value.length; i++) {
  101. if (scaleList.value[i].flag == '20210617020516') {
  102. list.push(scaleList.value[i])
  103. }
  104. }
  105. let listTm = JSON.parse(JSON.stringify(list))
  106. subScaleData(listTm, "20210617020516")
  107. }
  108. }
  109. //将知觉压力问卷的数据存储进数组
  110. if (scaleList.value[topicIndex.value - 1].flag == '20210913093250' && !listStress.value.includes(scaleList.value[topicIndex.value - 1].id)) {
  111. listStress.value.push(scaleList.value[topicIndex.value - 1].id)
  112. //调用知觉压力数据保存接口
  113. //如果长度达到指定数目
  114. if (listStress.value.length == 30) {
  115. let list = []
  116. for (let i = 0; i < scaleList.value.length; i++) {
  117. if (scaleList.value[i].flag == '20210913093250') {
  118. list.push(scaleList.value[i])
  119. }
  120. }
  121. let listTm = JSON.parse(JSON.stringify(list))
  122. subScaleData(listTm, "20210913093250")
  123. }
  124. }
  125. //将焦虑自评量的数据存储进数组
  126. if (scaleList.value[topicIndex.value - 1].flag == '20210617000853' && !listAnxiety.value.includes(scaleList.value[topicIndex.value - 1].id)) {
  127. listAnxiety.value.push(scaleList.value[topicIndex.value - 1].id)
  128. //调用焦虑
  129. if (listAnxiety.value.length == 20) {
  130. let list = []
  131. for (let i = 0; i < scaleList.value.length; i++) {
  132. if (scaleList.value[i].flag == '20210617000853') {
  133. list.push(scaleList.value[i])
  134. }
  135. }
  136. let listTm = JSON.parse(JSON.stringify(list))
  137. subScaleData(listTm, "20210617000853")
  138. }
  139. }
  140. //判断当前是不是最后一题
  141. //如果是最后一题就不++了
  142. if (topicIndex.value == scaleList.value.length) {
  143. // 最后一题就进行提交了
  144. //判断不是这三个的话
  145. if (scaleList.value[topicIndex.value - 1].flag != '20210617020516' && scaleList.value[topicIndex.value - 1].flag != '20210913093250' && scaleList.value[topicIndex.value - 1].flag != '20210617000853') {
  146. let listTm = JSON.parse(JSON.stringify(scaleList.value))
  147. subScaleData(listTm, flag.value)
  148. }
  149. // subScaleData(listTm, "20210617000853")
  150. return
  151. }
  152. topicIndex.value++
  153. }
  154. //将选择的传输给方法---自带flag
  155. const subScaleData = async (data: any, flag: string) => {
  156. if (isLock.value) {
  157. return
  158. }
  159. isLock.value = true
  160. // if (scaleList.value[topicIndex.value - 1].isCheck == '') {
  161. // ElMessage({
  162. // message: '请选择当前题目',
  163. // type: "warning",
  164. // })
  165. // return
  166. // }
  167. //开始调用提交数据的方法
  168. // testRecord: JSON.stringify(productData()),
  169. //开始处理数据
  170. // productData()
  171. let time = '' + startTime.value
  172. let params = {
  173. beginTime: time,
  174. orgName: userInfo.userInfo.orgName,
  175. orgNo: userInfo.userInfo.orgNo,
  176. planId: planId.value,
  177. planName: planName.value,
  178. taskFlag: flag,
  179. taskName: flagName.value,
  180. testRecord: JSON.stringify(productData(data)),
  181. type: '0',
  182. userName: userInfo.userInfo.userName,
  183. userNo: userInfo.userInfo.userNo,
  184. }
  185. const res = await saveScaleApi(params)
  186. //1.先判断是否需要做附加题---根据查询出来列表 --不显示但是必做的---且状态含有未完成,
  187. //2.接下来查看需要看总共几个需要做的附加题---将未完成的题目---合并到一块---到时候
  188. //3.判断做完的有且有多少个题目-----未做完的量表有多少个题目
  189. getStartTime()
  190. isLock.value = false
  191. //判断当前 flag 是可选的三个吗
  192. //如果是的话---
  193. if (flag == '20210617020516' || flag == '20210913093250' || flag == '20210617000853') {
  194. //判断是否是做完了
  195. if (topicIndex.value == scaleList.value.length) {
  196. //这时是全部的都做完了
  197. //做完后目前先跳转到测试计划页面
  198. ElMessage({
  199. message: '提交完成',
  200. type: "success",
  201. })
  202. router.push({ name: 'plan' })
  203. }
  204. }
  205. if (flag == '20210617140713') {
  206. queryNeedScale()
  207. //如果是排除是其他两个则直接返回
  208. } else if (flag != '20210617020516' && flag != '20210913093250' && flag != '20210617000853') {
  209. //此时做完需要跳转到计划页面
  210. ElMessage({
  211. message: '提交完成',
  212. type: "success",
  213. })
  214. router.push({ name: 'plan' })
  215. }
  216. // isCompleted.value = true
  217. //跳转到缓冲中间件
  218. // setTimeout(() => {
  219. // isLock.value = false;
  220. // router.push({
  221. // name: 'scaleMid', params: {
  222. // planId: planId.value,
  223. // planName: planName.value,
  224. // flag: flag.value,
  225. // flagName: flagName.value,
  226. // // num: num.value
  227. // }
  228. // })
  229. // }, 1500)
  230. }
  231. //查看scl90是否已经完成了
  232. const sclIsCom = async () => {
  233. if (userInfo.token) {
  234. let userNo = ''
  235. //登录的话
  236. //判断当前是否有后台管理
  237. userNo = userInfo.userInfo.userNo
  238. //调用根据用户查询计划的API
  239. let res: any = await userPlanApi(userNo)
  240. for (let i = 0; i < res.data.length; i++) {
  241. if (res.data[i].id = planId.value) {
  242. planObj.value = res.data[i]
  243. }
  244. }
  245. //将list赋值进去
  246. planObj.value.list = [];
  247. let params = {
  248. planId: planObj.value.id,
  249. userNo: userInfo.userInfo.userNo
  250. }
  251. //调用详细的API
  252. let temp: any = await userPlanDetailApi(params)
  253. planObj.value.list = temp.data
  254. //判断是否需要
  255. //判断量表中有几个是必须测试的且不显示的
  256. for (let i = 0; i < planObj.value.list.length; i++) {
  257. //先判断类型--在判断必做且不显示的---将这个写存储在数组
  258. if (planObj.value.list[i].flag == '20210617140713') {
  259. if (planObj.value.list[i].isCompleted == '1') {
  260. isComplate.value = '2';
  261. }
  262. if (planObj.value.list[i].isCompleted == '0') {
  263. isComplate.value = '0';
  264. }
  265. }
  266. }
  267. }
  268. }
  269. //根据计划ID查询问题
  270. const queryNeedScale = async () => {
  271. //
  272. //查询需要测试的计划
  273. //如果在就是登录了
  274. if (userInfo.token) {
  275. let userNo = ''
  276. //登录的话
  277. //判断当前是否有后台管理
  278. userNo = userInfo.userInfo.userNo
  279. //调用根据用户查询计划的API
  280. let res: any = await userPlanApi(userNo)
  281. //
  282. for (let i = 0; i < res.data.length; i++) {
  283. if (res.data[i].id = planId.value) {
  284. planObj.value = res.data[i]
  285. }
  286. }
  287. //将list赋值进去
  288. planObj.value.list = [];
  289. let params = {
  290. planId: planObj.value.id,
  291. userNo: userInfo.userInfo.userNo
  292. }
  293. //调用详细的API
  294. let temp: any = await userPlanDetailApi(params)
  295. planObj.value.list = temp.data
  296. //判断是否需要
  297. //判断量表中有几个是必须测试的且不显示的
  298. let list = []
  299. for (let i = 0; i < planObj.value.list.length; i++) {
  300. //先判断类型--在判断必做且不显示的---将这个写存储在数组
  301. if (planObj.value.list[i].contentType == '0' && planObj.value.list[i].isAvailable == '1' && planObj.value.list[i].isDisplayed == '0') {
  302. //修改
  303. //
  304. list.push(planObj.value.list[i])
  305. }
  306. }
  307. //将对象的list字段设置新的需要测试的
  308. planObj.value.list = list;
  309. //以此查询出来需要需要做的但是未完成的
  310. //必做的全部计算出来全部需要做的题
  311. let listNeedAll = []
  312. let listIsComplate = []
  313. let listNoComplate = []
  314. for (let i = 0; i < planObj.value.list.length; i++) {
  315. //查询出全部的问题
  316. //根据flag查询出来的题
  317. //let res: any = await queryScaleDetailApi(planObj.value.list[i].flag)
  318. if (planObj.value.list[i].isCompleted == '1') {
  319. let res: any = await getScaleApi(planObj.value.list[i].flag)
  320. listIsComplate.push(...res.data)
  321. listNeedAll.push(...res.data)
  322. }
  323. //计算未完成数目
  324. if (planObj.value.list[i].isCompleted == '0') {
  325. let res: any = await getScaleApi(planObj.value.list[i].flag)
  326. listNoComplate.push(...res.data)
  327. listNeedAll.push(...res.data)
  328. }
  329. //查询出来后将值赋值给另一数组
  330. //总共需要做的题的数目
  331. }
  332. //测试全部数字
  333. planAllNum.value = listNeedAll.length;
  334. //测试已完成
  335. planIsComplateNum.value = listIsComplate.length;
  336. //测试未完成
  337. planNoComplateNum.value = listNoComplate.length;
  338. //判断 如果总长度是0的话--需要跳转到测试计划页
  339. if (planAllNum.value == 0) {
  340. //跳转计划页面
  341. router.push({ name: 'plan' })
  342. } else {
  343. //如果长度不是0的话--需要修改文本
  344. //设置标志为2
  345. isComplate.value = '2'
  346. }
  347. //这时应该清空一下index
  348. topicIndex.value = 1
  349. scaleList.value = listNoComplate
  350. for (let i = 0; i < scaleList.value.length; i++) {
  351. scaleList.value[i].isCheck = ''
  352. }
  353. }
  354. }
  355. //根据flag查询量表详情
  356. // scaleName.value = res.data.name;
  357. // detail.value = res.data.description;
  358. // theory.value = res.data.theory;
  359. // //参考文献
  360. // reference.value = res.data.reference.split('//');
  361. const productData = (data: any) => {
  362. //循环列表
  363. //查看isCheck字段
  364. //根据字段拿出答案
  365. //将答案放入数组
  366. let testRecord = []
  367. for (let i = 0; i < data.length; i++) {
  368. for (let k = 0; k < data[i].answerList.length; k++) {
  369. if (data[i].isCheck === data[i].answerList[k].name) {
  370. //r
  371. testRecord.push(data[i].answerList[k])
  372. }
  373. }
  374. }
  375. return testRecord
  376. }
  377. //上一题的方法
  378. const lastTopic = () => {
  379. if (topicIndex.value == 1) {
  380. ElMessage({
  381. message: '已经是第一题了',
  382. type: "warning",
  383. })
  384. return
  385. }
  386. topicIndex.value--
  387. }
  388. //定义时间间隔数组
  389. const timeNum = ref<number>(0)
  390. //定义数组一个空数组
  391. const listTime = ref<any>([])
  392. //再记录一个计数器
  393. const countTime = ref<number>(0)
  394. //获取当前时间
  395. //点击选中选项的事件
  396. const radioFun = () => {
  397. overTimeFun()
  398. countTime.value += 1
  399. //获取新时间
  400. let currentTime = new Date().getTime();
  401. //获取时间差
  402. let difference = currentTime - timeNum.value;
  403. timeNum.value = currentTime;
  404. listTime.value.push(difference)
  405. if (countTime.value == 5) {
  406. //当计数器等于5时
  407. //设置计数器为0;
  408. //先判断时间差
  409. //如果时间差小于5秒就弹出框,
  410. //如果大于5秒了,就将计数器重置为0--且数组重置为空
  411. if (listTime.value.length == 5) {
  412. let timeTotal = 0
  413. for (let i = 0; i < listTime.value.length; i++) {
  414. timeTotal += listTime.value[i]
  415. }
  416. if (timeTotal < 1000 * 5) {
  417. //需要弹出框
  418. cpdmTip.value.open({ type: 1, message: '请认真答题' })
  419. countTime.value = 0;
  420. listTime.value = []
  421. } else {
  422. //将计时器清空
  423. countTime.value = 0;
  424. listTime.value = []
  425. }
  426. }
  427. }
  428. nextTopic()
  429. }
  430. const overTime = ref()
  431. //定义一个超时的方法
  432. const overTimeFun = () => {
  433. clearTimeout(overTime.value)
  434. overTime.value = setTimeout(() => {
  435. //弹出框进行提示
  436. cpdmTip.value.open({ type: 2, message: '离开太久了,请尽快做题!' })
  437. }, 1000 * 300)
  438. // 1000 * 300
  439. }
  440. //刚进入页面就将高度设置为页面需要的
  441. onMounted(async () => {
  442. overTimeFun()
  443. //刚到页面就创建个定时器
  444. //得到进度设置
  445. //看看是不是scl90 如果是的话
  446. //如果flag是scal90的话----需要看看scal90是否是完成了
  447. //如果完成了---判断是否还有附加题--如果有将flag设置为
  448. //需要做的应该及就是判断scl90的量表是否是做完了
  449. timeNum.value = new Date().getTime()
  450. flag.value = route.params.flag as string;
  451. planId.value = route.params.planId as string
  452. planName.value = route.params.planName as string
  453. flagName.value = route.params.flagName as string
  454. isComplate.value = route.params.isComplate as string
  455. //进到界面开始轮询
  456. // 判断是否SCL90
  457. if (flag.value == '20210617140713') {
  458. //在这里判断scl90是否是已完成
  459. await sclIsCom()
  460. //如果是的话--判断scl90的状态
  461. if (isComplate.value == '0') {
  462. getScaleFun(flag.value)
  463. } else if (isComplate.value == '2') {
  464. queryNeedScale();
  465. }
  466. } else {
  467. getScaleFun(flag.value)
  468. }
  469. getStartTime()
  470. //判断是否是完成了
  471. //如果标志是
  472. })
  473. //获取当前时间
  474. const getStartTime = async () => {
  475. let res: any = await getCurrentTimeApi();
  476. // let date = new Date()
  477. startTime.value = res.data;
  478. // startTime.value = format(date, "yyyy-MM-dd HH:mm:ss");
  479. }
  480. //根据flag 获取当前的题目
  481. const getScaleFun = async (val: string) => {
  482. scaleList.value = []
  483. let res: any = await getScaleApi(val)
  484. scaleList.value = res.data
  485. for (let i = 0; i < scaleList.value.length; i++) {
  486. scaleList.value[i].isCheck = ''
  487. }
  488. }
  489. //界面销毁函数
  490. //轮旋切换页面的方法
  491. //退出页面销毁 方法
  492. onUnmounted(() => {
  493. clearTimeout(overTime.value)
  494. })
  495. </script>
  496. <template>
  497. <div class="home_header_out">
  498. <div class=" home_header_inner">
  499. <CpmdHeader />
  500. <div class="report_top">
  501. <div class="report_jt">
  502. <span v-if="!(flag == '20210617140713' && isComplate == '2')">{{ flagName }}</span>
  503. <span v-if="flag == '20210617140713' && isComplate == '2'"> 心理健康测评基础量表(附加题)</span>
  504. <span v-show="!isCompleted" class="des">请根据您的表现回答下列问题,每道题请选择最符合您的情况的选项。</span>
  505. </div>
  506. <img v-show="!isCompleted" class="xlts_img" src="../assets/scale/scale.png" />
  507. </div>
  508. </div>
  509. <div class="kply">
  510. <div class="kply_inner" :style="{ border: isCompleted ? '8px solid #ffffff' : '8px solid #B2F2D2' }">
  511. <div style="padding :10px 100px">
  512. <el-progress v-if="!(flag == '20210617140713' && isComplate == '2')" :text-inside="true"
  513. :stroke-width="20" :percentage="(topicIndex / scaleList.length) * 100" color="#48D68E">
  514. <span style="color:#000000">{{ topicIndex }}/{{ scaleList.length }}</span>
  515. </el-progress>
  516. <el-progress v-if="flag == '20210617140713' && isComplate == '2'" :text-inside="true"
  517. :stroke-width="20" :percentage="((topicIndex + planIsComplateNum) / planAllNum) * 100"
  518. color="#48D68E">
  519. <span style="color:#000000">{{ topicIndex + planIsComplateNum }}/{{ planAllNum }}</span>
  520. </el-progress>
  521. <div v-if="scaleList.length > 0">
  522. <div class="scale_title" v-if="!(flag == '20210617140713' && isComplate == '2')">{{ topicIndex
  523. }}:{{ scaleList[topicIndex - 1].content }}</div>
  524. <div class="scale_title" v-if="flag == '20210617140713' && isComplate == '2'">{{ topicIndex +
  525. planIsComplateNum }}:{{ scaleList[topicIndex - 1].content }}</div>
  526. <el-radio-group v-model="scaleList[topicIndex - 1].isCheck" class="scale_radio_group">
  527. <el-radio-button
  528. v-for="item in scaleList[topicIndex - 1].checkItems.split(';').sort(() => { return Math.random() - 0.5 }) "
  529. @change="radioFun" :label="item" :value="item" />
  530. </el-radio-group>
  531. <div class="scale_button">
  532. <el-row>
  533. <el-col :span="12" class="scale_button_inner">
  534. <div v-show="topicIndex > 1" class="scale_button_self" @click="lastTopic">上一题
  535. </div>
  536. </el-col>
  537. <el-col :span="12" class="scale_button_inner">
  538. <div v-show="topicIndex < scaleList.length" class="scale_button_self"
  539. @click="nextTopic">下一题</div>
  540. <!-- <div v-show="topicIndex == scaleList.length" class="scale_button_self"
  541. @click="subScaleData">提交</div> -->
  542. </el-col>
  543. </el-row>
  544. </div>
  545. </div>
  546. </div>
  547. </div>
  548. </div>
  549. <CpdmTip ref="cpdmTip" />
  550. </div>
  551. </template>
  552. <style scoped>
  553. :deep(.dig_kg> .el-dialog__header) {
  554. padding-right: 0px !important;
  555. }
  556. </style>
  557. <style lang="scss" scoped>
  558. :deep(.el-progress-bar__outer) {
  559. background-color: #f3f3f3;
  560. border-radius: 100px;
  561. height: 6px;
  562. overflow: hidden;
  563. position: relative;
  564. vertical-align: middle;
  565. }
  566. :deep(.el-radio-group) {
  567. align-items: center;
  568. display: flex;
  569. flex-wrap: wrap;
  570. font-size: 0;
  571. flex-direction: column;
  572. }
  573. :deep(.el-radio-button) {
  574. display: inline-block;
  575. outline: none;
  576. position: relative;
  577. width: 80% !important;
  578. }
  579. :deep(.el-radio-button__inner) {
  580. width: 100%;
  581. border-radius: 40px !important;
  582. margin-top: 10px;
  583. border: 4px solid #B2F2D2;
  584. border-left: 4px solid #B2F2D2 !important;
  585. padding: 10px 10px;
  586. font-size: 14px;
  587. font-weight: 700;
  588. text-align: left;
  589. }
  590. :deep(.el-radio-button__inner:hover) {
  591. width: 100%;
  592. border-radius: 40px !important;
  593. margin-top: 10px;
  594. border: 4px solid #B2F2D2;
  595. border-left: 4px solid #B2F2D2 !important;
  596. padding: 10px 10px;
  597. font-size: 14px;
  598. font-weight: 700;
  599. text-align: left;
  600. color: #000000;
  601. background-color: #48D68E;
  602. color: #ffffff;
  603. }
  604. // :deep().el-radio-button__original-radio:checked+.el-radio-button__inner {
  605. // background-color: #48D68E !important;
  606. // border-color: #B2F2D2 !important;
  607. // box-shadow: 0 0 0 0 var(--el-radio-button-checked-border-color, var(--el-color-primary)) !important;
  608. // color: var(--el-radio-button-checked-text-color, var(--el-color-white));
  609. // }
  610. :deep().el-radio-button.is-active .el-radio-button__original-radio:not(:disabled)+.el-radio-button__inner {
  611. background-color: #48D68E !important;
  612. border-color: #B2F2D2 !important;
  613. box-shadow: 0 0 0 0 var(--el-radio-button-checked-border-color, var(--el-color-primary)) !important;
  614. color: var(--el-radio-button-checked-text-color, var(--el-color-white));
  615. }
  616. .home_header_out {
  617. // position: relative;
  618. padding-bottom: 60px;
  619. width: 100%;
  620. min-width: 1200px;
  621. background-image: url('../assets/home/bg_ty.png');
  622. background-repeat: no-repeat;
  623. background-size: contain;
  624. background-color: #B3F1DA; //估计是需要动态
  625. flex: 1;
  626. //获取屏幕宽度home_header_out 这个div的宽度--然后宽度*1000再除1920即为当前div的宽度
  627. .home_header_inner {
  628. min-height: 1;
  629. left: 0;
  630. right: 0;
  631. margin: auto;
  632. // height: 100px;
  633. width: 1200px;
  634. .report_top {
  635. width: 860px;
  636. margin-left: 170px;
  637. margin-top: 20px;
  638. display: flex;
  639. flex-direction: row;
  640. justify-content: space-between;
  641. align-items: center;
  642. margin-bottom: 0px;
  643. .xlts_img {
  644. margin-right: 60px;
  645. width: 40px;
  646. height: 30px;
  647. // width: 100px;
  648. }
  649. .report_jt {
  650. display: flex;
  651. flex-direction: column;
  652. font-size: 20px;
  653. font-weight: 700;
  654. letter-spacing: 3px;
  655. .des {
  656. color: #888888;
  657. // opacity: 0.4;
  658. font-size: 15px;
  659. letter-spacing: 0px;
  660. margin-top: 10px;
  661. }
  662. }
  663. }
  664. }
  665. .kply {
  666. width: 100%;
  667. margin-top: 10px;
  668. margin-bottom: 9px;
  669. // width: 860px;
  670. // background-color: #FAFAFA;
  671. .kply_inner {
  672. // border: 8px solid #B2F2D2;
  673. min-height: 500px;
  674. left: 0;
  675. right: 0;
  676. margin: auto;
  677. width: 860px;
  678. // padding: 20px 20px;
  679. background-color: #ffffff;
  680. border-radius: 40px;
  681. .scale_title {
  682. margin-top: 20px;
  683. font-size: 18px;
  684. letter-spacing: 2px;
  685. line-height: 20px;
  686. .scale_radio_group {
  687. display: flex;
  688. flex-direction: column;
  689. }
  690. }
  691. .scale_button {
  692. margin-top: 60px;
  693. margin-bottom: 20px;
  694. .scale_button_inner {
  695. text-align: center;
  696. display: flex;
  697. justify-content: center;
  698. .scale_button_self {
  699. border-radius: 12px;
  700. border: 3px solid #48D68E;
  701. color: #ffffff;
  702. background-color: #000000;
  703. margin-right: 20px;
  704. padding: 10px 40px;
  705. cursor: pointer;
  706. display: flex;
  707. align-items: center;
  708. font-size: 14px;
  709. }
  710. }
  711. }
  712. .finish_calss {
  713. display: flex;
  714. flex-direction: column;
  715. .finish_img {
  716. margin-top: 60px;
  717. display: flex;
  718. flex-direction: column;
  719. align-items: center;
  720. .finish_font {
  721. margin-top: 40px;
  722. font-size: 30px;
  723. margin-bottom: 100px;
  724. }
  725. }
  726. }
  727. }
  728. }
  729. }
  730. .home_mid {
  731. // background-color: blanchedalmond;
  732. width: 1200px;
  733. left: 0;
  734. right: 0;
  735. margin: auto;
  736. margin-top: 40px;
  737. // position: relative;
  738. .kepu_title {
  739. text-align: center;
  740. font-size: 50px;
  741. color: #111111;
  742. line-height: 95px;
  743. // width: 100%;
  744. // left: 0;
  745. // right: 0;
  746. // margin: auto
  747. }
  748. .kepu_title_sub {
  749. margin-top: 30px;
  750. text-align: center;
  751. font-size: 28px;
  752. color: #48D68E;
  753. line-height: 26px;
  754. }
  755. .man1_group {
  756. margin-top: 60px;
  757. height: 100%;
  758. display: flex;
  759. .man1 {
  760. position: relative;
  761. width: 327px;
  762. // height: 100%;
  763. // height: 100%
  764. .man1_img {
  765. position: absolute;
  766. bottom: 0;
  767. /* bottom: 0px; */
  768. /* height: auto; */
  769. width: 100%;
  770. left: 100px
  771. }
  772. }
  773. .des {
  774. border: #48D68E solid 5px;
  775. border-radius: 40px;
  776. padding: 20px;
  777. letter-spacing: 6px;
  778. flex: 1;
  779. .des_inner {
  780. border: 1px dashed #48D68E;
  781. border-radius: 40px;
  782. padding-bottom: 40px;
  783. padding-top: 30px;
  784. padding-left: 100px;
  785. padding-right: 20px;
  786. letter-spacing: 6px;
  787. font-weight: normal;
  788. font-size: 24px;
  789. color: #333333;
  790. line-height: 40px;
  791. }
  792. }
  793. }
  794. .man2_group {
  795. margin-top: 60px;
  796. height: 100%;
  797. display: flex;
  798. .man2 {
  799. position: relative;
  800. width: 327px;
  801. // height: 100%;
  802. // height: 100%
  803. .man2_img {
  804. position: absolute;
  805. bottom: 0;
  806. /* bottom: 0px; */
  807. /* height: auto; */
  808. width: 100%;
  809. left: -100px
  810. }
  811. }
  812. .des2 {
  813. border: #48D68E solid 5px;
  814. border-radius: 40px;
  815. padding: 20px;
  816. letter-spacing: 6px;
  817. flex: 1;
  818. .des2_inner {
  819. border: 1px dashed #48D68E;
  820. border-radius: 40px;
  821. padding-bottom: 40px;
  822. padding-top: 30px;
  823. padding-left: 20px;
  824. padding-right: 100px;
  825. letter-spacing: 6px;
  826. font-weight: normal;
  827. font-size: 24px;
  828. color: #333333;
  829. line-height: 40px;
  830. }
  831. }
  832. }
  833. .get_more {
  834. text-align: center;
  835. img {
  836. width: 300px;
  837. margin-top: 60px;
  838. margin-bottom: 60px;
  839. }
  840. }
  841. }
  842. // .home_footer_out {
  843. // width: 100%;
  844. // background-color: #000000;
  845. // }</style>