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" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/login/index", "path": "pages/login/index",
"style": { "style": {
"navigationBarTitleText": "会员登录" "navigationStyle": "custom"
} }
}, },
{ {

19
pages/home.vue

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

Loading…
Cancel
Save