@ -20,12 +20,10 @@
"navigationStyle": "custom"
}
},
{
"path": "pages/login/index",
"style": {
"navigationBarTitleText": "会员登录"
@ -177,6 +177,9 @@
</template>
<script>
import store from '@/store'
// 校验登录
import { checkLogin, showError } from '@/core/app'
export default {
data() {
return {
@ -186,7 +189,20 @@
isLogin: true,
mounted() {
this.init()
methods: {
// 系统初始化
init(){
if(checkLogin()==true){
this.isLogin = true
}else{
this.isLogin= false
showError("请登录后再操作")
// 退出登录
handleLogout() {
const app = this
@ -360,7 +376,8 @@
background: rgba(0,0,0,0.8);
width: 100%;
height: 82vh;
max-height: 82vh;
max-height: 72vh;
// height: calc(100%-18vh);
padding-top: 100rpx;
text-align: center;
z-index: 90;