import{r as a,af as s,b as e,c as t,w as l,aR as o,i as r,o as u,d as c,e as n,t as f,u as i,v as p}from"./index-IX2tYR8R.js";import{_ as d}from"./u-navbar.BTvKBpLV.js";import{r as m}from"./uni-app.es.Bc5t55A8.js";import{_}from"./oneBtn.DSZ3NLjD.js";import"./qiun-data-charts.CVWuWAeL.js";/* empty css */import{_ as v}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{s as g}from"./statistics.oG-vJzTR.js";import{c as x}from"./car.C_k88K1b.js";import"./u-status-bar.weuqoXTS.js";import"./u-icon.sW6sruaF.js";const b=v({__name:"examResultsOne",setup(v){var b;let j=x();a(!1),a(1),a(1);let y=null==(b=s("loginInfo"))?void 0:b.phone;const h=a({});let I=a({}),T=a([]);return async function(){var a;const{data:s}=await o({stepType:j.carInfo.stepType,carType:j.carInfo.carType});h.value=s,console.log(s),(null==(a=s.examRecord)?void 0:a.length)&&(T.value=s.examRecord,I.value={categories:s.examRecord.map((a=>a.formatStartTime)),series:[{name:"目标值",data:s.examRecord.map((a=>a.score))}]})}(),(a,s)=>{const o=m(e("up-navbar"),d),v=p,x=r,b=m(e("oneBtn"),_);return u(),t(x,{class:"content"},{default:l((()=>[c(o,{leftText:" ",leftIconColor:"#fff",safeAreaInsetTop:!0,autoBack:!0,title:"成绩单",bgColor:"transparent",titleStyle:{color:"#fff"},fixed:!1}),c(x,{class:"padding"},{default:l((()=>[c(x,{class:"useInfo flex"},{default:l((()=>[c(x,{class:"avatar"},{default:l((()=>[c(v,{src:"",mode:""})])),_:1}),c(x,{class:"rightBox"},{default:l((()=>[c(x,{class:"name"},{default:l((()=>[n(f(i(y)),1)])),_:1})])),_:1})])),_:1}),c(x,{class:"card"},{default:l((()=>[c(x,{class:"bigNum"},{default:l((()=>[c(x,{class:"num"},{default:l((()=>[n(f(h.value.exampassRate||"--")+"%",1)])),_:1}),c(x,{class:"lab"},{default:l((()=>[n("预测通过率")])),_:1})])),_:1}),c(x,{class:"huiBg"},{default:l((()=>[c(x,{class:"li"},{default:l((()=>[c(x,{class:"num"},{default:l((()=>[n(f(h.value.accumulate||"--"),1)])),_:1}),c(x,{class:"lab"},{default:l((()=>[n("累计考试次数")])),_:1})])),_:1}),c(x,{class:"li"},{default:l((()=>[c(x,{class:"num"},{default:l((()=>[n(f(h.value.pass||"--"),1)])),_:1}),c(x,{class:"lab"},{default:l((()=>[n("合格次数")])),_:1})])),_:1}),c(x,{class:"li"},{default:l((()=>[c(x,{class:"num"},{default:l((()=>[n(f(h.value.score||"--"),1)])),_:1}),c(x,{class:"lab"},{default:l((()=>[n("平均分数")])),_:1})])),_:1})])),_:1}),c(x,{class:"btnBox"},{default:l((()=>[c(b,{text:"快速提升通过率",onOneBtnClick:s[0]||(s[0]=s=>a.$goPage("/pages/vip/vipEntry/vipEntry"))})])),_:1})])),_:1}),c(g,{tit:"模拟考试成绩",chartData:i(I),listData:i(T),key:"1",subject:i(j).carInfo.stepType},null,8,["chartData","listData","subject"])])),_:1})])),_:1})}}},[["__scopeId","data-v-fc4647a6"]]);export{b as default};