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

fix: 修改用户分析bug

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