Merge branch 'master' into develop
commit
d7e31ac7e5
|
|
@ -1,4 +1,5 @@
|
||||||
import store from './store/index.js'
|
import store from './store/index.js'
|
||||||
|
import jwt from '@/api/jwt.js'
|
||||||
export default {
|
export default {
|
||||||
onLaunch(e) {
|
onLaunch(e) {
|
||||||
const { appbar, token } = e.query
|
const { appbar, token } = e.query
|
||||||
|
|
@ -7,8 +8,22 @@ export default {
|
||||||
}
|
}
|
||||||
if (appbar == 'hidden') {
|
if (appbar == 'hidden') {
|
||||||
store.commit('showAppbar', false)
|
store.commit('showAppbar', false)
|
||||||
|
this.hideNavBar()
|
||||||
} else {
|
} else {
|
||||||
store.commit('showAppbar', true)
|
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() {
|
data() {
|
||||||
return {
|
return {
|
||||||
h5NavHeightP: 44,
|
h5NavHeightP: 44,
|
||||||
// showAppbar:true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -13,7 +12,6 @@ export default {
|
||||||
onLoad({ appbar }) {
|
onLoad({ appbar }) {
|
||||||
if (appbar == 'hidden') {
|
if (appbar == 'hidden') {
|
||||||
this.h5NavHeightP = 0
|
this.h5NavHeightP = 0
|
||||||
// this.showAppbar = false
|
|
||||||
this.hideNavBar()
|
this.hideNavBar()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -23,7 +21,7 @@ export default {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
let head = document.getElementsByTagName('uni-page-head')
|
let head = document.getElementsByTagName('uni-page-head')
|
||||||
if (head[0]) {
|
if (head[0]) {
|
||||||
head[0].remove()
|
head[0].style.display='none'
|
||||||
}
|
}
|
||||||
// console.log(head);
|
// console.log(head);
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="bg-page">
|
<view class="bg-page">
|
||||||
<u-sticky z-index="99">
|
<u-sticky z-index="99" :h5NavHeight="h5NavHeightP">
|
||||||
<view class="secreen-section" style="background-color: #fff;">
|
<view class="secreen-section" style="background-color: #fff;">
|
||||||
<u-dropdown class="dropdown-box" :class="[!dropDownShow?'downClose':'']" ref="uDropdown"
|
<u-dropdown class="dropdown-box" :class="[!dropDownShow?'downClose':'']" ref="uDropdown"
|
||||||
@close="dropdownClose" @open="dropdownOpen">
|
@close="dropdownClose" @open="dropdownOpen">
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="bg-page">
|
<view class="bg-page">
|
||||||
<u-sticky z-index="99">
|
<u-sticky z-index="99" :h5NavHeight="h5NavHeightP">
|
||||||
<view class="secreen-section" style="background-color: #fff;">
|
<view class="secreen-section" style="background-color: #fff;">
|
||||||
<u-dropdown class="dropdown-box" :class="[!dropDownShow?'downClose':'']" ref="uDropdown"
|
<u-dropdown class="dropdown-box" :class="[!dropDownShow?'downClose':'']" ref="uDropdown"
|
||||||
@close="dropdownClose" @open="dropdownOpen">
|
@close="dropdownClose" @open="dropdownOpen">
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
//用户信息
|
//用户信息
|
||||||
export const userInfo = (state)=> state.userInfo
|
export const userInfo = (state)=> state.userInfo
|
||||||
//token
|
//token
|
||||||
export const token = (state)=> state.user_access_token
|
export const token = (state)=> state.user_access_token
|
||||||
|
|
||||||
|
export const showAppbar = (state)=> state.showAppbar
|
||||||
Loading…
Reference in New Issue