master
parent
555f249b89
commit
60448e2979
|
|
@ -1,4 +1,5 @@
|
|||
import store from './store/index.js'
|
||||
import jwt from '@/api/jwt.js'
|
||||
export default {
|
||||
onLaunch(e) {
|
||||
const { appbar, token } = e.query
|
||||
|
|
@ -7,8 +8,22 @@ export default {
|
|||
}
|
||||
if (appbar == 'hidden') {
|
||||
store.commit('showAppbar', false)
|
||||
this.hideNavBar()
|
||||
} else {
|
||||
store.commit('showAppbar', true)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
hideNavBar() {
|
||||
/*#ifdef H5*/
|
||||
this.$nextTick(() => {
|
||||
let head = document.getElementsByTagName('uni-page-head')
|
||||
if (head[0]) {
|
||||
head[0].style.display = 'none'
|
||||
}
|
||||
// console.log(head);
|
||||
})
|
||||
/*#endif*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -4,7 +4,6 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
h5NavHeightP: 44,
|
||||
// showAppbar:true
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
@ -13,7 +12,6 @@ export default {
|
|||
onLoad({ appbar }) {
|
||||
if (appbar == 'hidden') {
|
||||
this.h5NavHeightP = 0
|
||||
// this.showAppbar = false
|
||||
this.hideNavBar()
|
||||
}
|
||||
},
|
||||
|
|
@ -23,7 +21,7 @@ export default {
|
|||
this.$nextTick(() => {
|
||||
let head = document.getElementsByTagName('uni-page-head')
|
||||
if (head[0]) {
|
||||
head[0].remove()
|
||||
head[0].style.display='none'
|
||||
}
|
||||
// console.log(head);
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue