|
@@ -1,7 +1,6 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div class="mainPage" v-if="showPage">
|
3
|
3
|
<div class="mask">
|
4
|
|
- <!-- <img :src="logo" class="logo" alt=""> -->
|
5
|
4
|
<div class="centerLabel" style="width:100%;">
|
6
|
5
|
<div class="box" style="margin:0 auto;">
|
7
|
6
|
<div class="title">登录</div>
|
|
@@ -52,7 +51,6 @@
|
52
|
51
|
</template>
|
53
|
52
|
|
54
|
53
|
<script>
|
55
|
|
-import logo from '../../../common/icon/logo.png'
|
56
|
54
|
import { createNamespacedHelpers } from 'vuex'
|
57
|
55
|
const { mapActions: actions } = createNamespacedHelpers('userCenter')
|
58
|
56
|
const { mapActions: mapLoginActions } = createNamespacedHelpers('login')
|
|
@@ -60,7 +58,6 @@ const { mapState: mapUserState } = createNamespacedHelpers('userCenter')
|
60
|
58
|
export default {
|
61
|
59
|
data () {
|
62
|
60
|
return {
|
63
|
|
- logo,
|
64
|
61
|
showPage: false,
|
65
|
62
|
showCase: false,
|
66
|
63
|
showSales: false,
|
|
@@ -117,19 +114,17 @@ export default {
|
117
|
114
|
this.$toast('验证码格式不正确')
|
118
|
115
|
return
|
119
|
116
|
}
|
120
|
|
- // console.log(this.postData)
|
121
|
117
|
this.submitData(this.postData).then((res) => {
|
122
|
|
- // this.$toast(res)
|
123
|
118
|
setTimeout(() => {
|
124
|
|
- window.location.href = this.getUrl('mainPage/coffeeIndex')
|
|
119
|
+ window.location.replace(this.getUrl('mainPage/coffeeIndex'))
|
125
|
120
|
}, 2000)
|
126
|
121
|
})
|
127
|
122
|
}
|
128
|
123
|
},
|
129
|
124
|
created () {
|
130
|
125
|
if (this.userInfo.customer.MapUser) {
|
131
|
|
- window.location.href = this.getUrl('mainPage/coffeeIndex')
|
132
|
|
- return
|
|
126
|
+ window.location.replace(this.getUrl('mainPage/coffeeIndex'))
|
|
127
|
+ // window.location.href = this.getUrl('mainPage/coffeeIndex')
|
133
|
128
|
} else {
|
134
|
129
|
this.showPage = true
|
135
|
130
|
}
|