You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
730 B
36 lines
730 B
export default { |
|
name: "Base", |
|
props: {}, |
|
data() { |
|
return { |
|
isAgree: false, |
|
isOtherLogin: false, |
|
showAnim: false, |
|
showTooltip: false, |
|
loading: false, |
|
} |
|
}, |
|
computed: {}, |
|
created() { |
|
}, |
|
methods: { |
|
async check() { |
|
return new Promise((resolve, reject) => { |
|
if (this.isAgree) { |
|
resolve(true) |
|
} else { |
|
if (!this.showAnim && !this.showTooltip) { |
|
this.showAnim = true |
|
setTimeout(() => { |
|
this.showAnim = false |
|
this.showTooltip = true |
|
}, 500) |
|
setTimeout(() => { |
|
this.showTooltip = false |
|
}, 3000) |
|
} |
|
} |
|
}) |
|
} |
|
} |
|
} |