提交 bba05fb8 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 8d24e12f
...@@ -43,7 +43,9 @@ import 'driver.js/dist/driver.min.css' ...@@ -43,7 +43,9 @@ import 'driver.js/dist/driver.min.css'
export default { export default {
name: 'AppHome', name: 'AppHome',
data() { data() {
const user = window.G.UserInfo
return { return {
user,
material: {}, material: {},
progress: {}, progress: {},
submissionStage: { submissionStage: {
...@@ -84,7 +86,7 @@ export default { ...@@ -84,7 +86,7 @@ export default {
const { material, progress } = data const { material, progress } = data
this.material = material this.material = material
this.progress = progress this.progress = progress
const welcomeShowed = window.localStorage.getItem('welcomeShowed') === 'true' const welcomeShowed = window.localStorage.getItem(this.user.id) === 'true'
material.attachments = material.attachments || [] material.attachments = material.attachments || []
if (!material.attachments.length && !welcomeShowed) { if (!material.attachments.length && !welcomeShowed) {
this.welcomeShow = true this.welcomeShow = true
...@@ -126,7 +128,7 @@ export default { ...@@ -126,7 +128,7 @@ export default {
}, },
handleClose() { handleClose() {
this.welcomeShow = false this.welcomeShow = false
window.localStorage.setItem('welcomeShowed', true) window.localStorage.setItem(this.user.id, true)
}, },
createDriver() { createDriver() {
const driver = new Driver({ const driver = new Driver({
...@@ -135,8 +137,8 @@ export default { ...@@ -135,8 +137,8 @@ export default {
allowClose: false, allowClose: false,
doneBtnText: '我知道了', doneBtnText: '我知道了',
nextBtnText: '下一步', nextBtnText: '下一步',
onReset() { onReset: () => {
window.localStorage.setItem('welcomeShowed', true) window.localStorage.setItem(this.user.id, true)
} }
}) })
...@@ -326,4 +328,7 @@ div#driver-popover-item .driver-popover-footer button { ...@@ -326,4 +328,7 @@ div#driver-popover-item .driver-popover-footer button {
div#driver-popover-item .driver-popover-footer .driver-btn-group { div#driver-popover-item .driver-popover-footer .driver-btn-group {
float: none; float: none;
} }
.driver-highlighted-element {
pointer-events: none;
}
</style> </style>
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
title="报名费缴费成功" title="报名费缴费成功"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
:center="true" :center="true"
:show-close="false"
:close-on-click-modal="false" :close-on-click-modal="false"
width="348px" width="348px"
> >
...@@ -109,7 +110,7 @@ export default { ...@@ -109,7 +110,7 @@ export default {
}, },
// 填写个人资料 // 填写个人资料
toApplication() { toApplication() {
this.$router.push('/my/application?active=application_info') this.$router.push('/my/account')
}, },
handleUpdateOrder(order) { handleUpdateOrder(order) {
this.order = order this.order = order
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论