提交 f7e083da authored 作者: lihuihui's avatar lihuihui

fix: 修改用户分析bug

上级 117258ba
......@@ -52,13 +52,15 @@ export default {
}
},
selectProducts() {
console.log(2222)
this.$confirm('切换案例,当前填写的内容不会保存', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
console.log(1111)
this.$router.push({ path: '/product-analysis' })
})
}).catch(() => {})
},
fetchWorkStatus() {
return new Promise((resolve) => {
......
......@@ -36,7 +36,7 @@ ul {
margin-right: 18px;
margin-bottom: 13px;
width: 198px;
height: fit-content;
// height: fit-content;
padding-bottom: 27px;
background: #f1fcf9;
border: 1px solid #b8ebde;
......
......@@ -139,7 +139,7 @@ export default {
})
setTimeout(() => {
this.$router.push({ path: '/product-analysis/result' })
}, 3000)
}, 2000)
}).catch(err => {
this.$message.error(err.message || '稍后再试')
})
......
......@@ -2,8 +2,11 @@
<div class="result-box">
<div class="pop-layer"></div>
<div class="trophy-box">
<img src="https://webapp-pub.ezijing.com/x-training-new/trophy.png">
<div class="text">你的得分是<span>{{ score }}</span></div>
<img src="https://webapp-pub.ezijing.com/x-training-new/trophy.png" />
<div class="text">
你的得分是<span>{{ score }}</span
>
</div>
</div>
<div class="title-box">
<div class="title">产品分析报告</div>
......@@ -50,71 +53,73 @@ export default {
const localData = JSON.parse(window.localStorage.reportData)
this.completions = localData.data
this.score = localData.score
this.title = this.completions.find(item => { return item.tag === 'title' }).value
this.title = this.completions.find(item => {
return item.tag === 'title'
}).value
}
}
</script>
<style lang="scss" scoped>
.result-box{
.result-box {
margin: 66px auto;
width: 714px;
background: #FFFFFF;
border: 1px solid #DCDCDC;
background: #ffffff;
border: 1px solid #dcdcdc;
border-radius: 10px;
padding: 20px;
box-sizing: border-box;
position: relative;
.pop-layer{
.pop-layer {
position: absolute;
top: 0;
left: 0;
z-index: 9999;
z-index: 99;
width: 100%;
height: 100%;
}
.trophy-box{
.trophy-box {
padding: 50px 0 38px 0;
position: relative;
&::after{
content: "";
&::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 620px;
border-bottom: 1px dashed #C0C0C0;
border-bottom: 1px dashed #c0c0c0;
}
img{
img {
width: 69px;
display: block;
margin: 0 auto;
}
.text{
.text {
font-size: 18px;
color: #666666;
text-align: center;
margin-top: 18px;
span{
span {
color: rgba(67, 169, 143, 1);
font-size: 26px;
}
}
}
.title-box{
.title-box {
padding: 28px 0 50px;
.title{
.title {
text-align: center;
font-size: 24px;
font-weight: bold;
color: #4CAC94;
color: #4cac94;
line-height: 100%;
}
.code{
.code {
width: 310px;
line-height: 47px;
margin: 29px auto 0;
border-bottom: 1px solid #B4B4B4;
border-bottom: 1px solid #b4b4b4;
text-align: center;
font-size: 18px;
color: #656565;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论