Browse Source

修改

master
453530270@qq.com 2 years ago
parent
commit
6a6c494f9b
  1. 4
      pages.json
  2. 19
      pages/home.vue

4
pages.json

@ -20,12 +20,10 @@
"navigationStyle": "custom"
}
},
{
"path": "pages/login/index",
"style": {
"navigationBarTitleText": "会员登录"
"navigationStyle": "custom"
}
},
{

19
pages/home.vue

@ -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;

Loading…
Cancel
Save