|
@@ -1,17 +1,44 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div>
|
|
<div>
|
|
|
- <accountCenter-header/>
|
|
|
|
|
- <validation-fail/>
|
|
|
|
|
|
|
+ <template v-if="this.mobile">
|
|
|
|
|
+ <phone-validationFail/>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-if="this.pc">
|
|
|
|
|
+ <accountCenter-header/>
|
|
|
|
|
+ <validation-fail/>
|
|
|
|
|
+ </template>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
import AccountCenterHeader from '~components/default/AccountCenterHeader.vue'
|
|
import AccountCenterHeader from '~components/default/AccountCenterHeader.vue'
|
|
|
import ValidationFail from '~components/validation/ValidationFail.vue'
|
|
import ValidationFail from '~components/validation/ValidationFail.vue'
|
|
|
|
|
+ import phoneValidationFail from '~components/mobile/validation/phoneValidationFail.vue'
|
|
|
export default {
|
|
export default {
|
|
|
- layout: 'default',
|
|
|
|
|
|
|
+ layout (context) {
|
|
|
|
|
+ return context.store.state.option.isMobile ? 'mobile' : 'default'
|
|
|
|
|
+ },
|
|
|
|
|
+ data () {
|
|
|
|
|
+ return {
|
|
|
|
|
+ mobile: false,
|
|
|
|
|
+ pc: false
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
components: {
|
|
components: {
|
|
|
AccountCenterHeader,
|
|
AccountCenterHeader,
|
|
|
- ValidationFail
|
|
|
|
|
|
|
+ ValidationFail,
|
|
|
|
|
+ phoneValidationFail
|
|
|
|
|
+ },
|
|
|
|
|
+ computed: {
|
|
|
|
|
+ // isMobile () {
|
|
|
|
|
+ // return this.$store.state.option.isMobile
|
|
|
|
|
+ // }
|
|
|
|
|
+ },
|
|
|
|
|
+ mounted () {
|
|
|
|
|
+ if (this.$store.state.option.isMobile) {
|
|
|
|
|
+ this.mobile = true
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.pc = true
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|