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

bug fixes

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