|
@@ -1,6 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<section id="proginn-container">
|
|
<section id="proginn-container">
|
|
|
<proginn-header v-if="isPC != -1 && isPC"/>
|
|
<proginn-header v-if="isPC != -1 && isPC"/>
|
|
|
|
|
+ <wx-header v-if="isWeixin"></wx-header>
|
|
|
<slot name="menu"></slot>
|
|
<slot name="menu"></slot>
|
|
|
<slot></slot>
|
|
<slot></slot>
|
|
|
<proginn-footer v-if="isPC != -1 && isPC"/>
|
|
<proginn-footer v-if="isPC != -1 && isPC"/>
|
|
@@ -10,26 +11,31 @@
|
|
|
<script>
|
|
<script>
|
|
|
import ProginnHeader from '@/components/header'
|
|
import ProginnHeader from '@/components/header'
|
|
|
import ProginnFooter from '@/components/footer'
|
|
import ProginnFooter from '@/components/footer'
|
|
|
|
|
+import WxHeader from '@/components/wx_header'
|
|
|
import { mapState, mapMutations } from 'vuex'
|
|
import { mapState, mapMutations } from 'vuex'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
ProginnHeader,
|
|
ProginnHeader,
|
|
|
- ProginnFooter
|
|
|
|
|
|
|
+ ProginnFooter,
|
|
|
|
|
+ WxHeader,
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
- ...mapState(['isPC']),
|
|
|
|
|
|
|
+ ...mapState(['isPC', `isWeixin`]),
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
- this.checkInnerWidth()
|
|
|
|
|
|
|
+ this.checkTerminal()
|
|
|
window.addEventListener('resize', this.checkInnerWidth)
|
|
window.addEventListener('resize', this.checkInnerWidth)
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- ...mapMutations(['updateIsPC']),
|
|
|
|
|
- checkInnerWidth() {
|
|
|
|
|
|
|
+ ...mapMutations(['updateIsPC', 'updateIsWeixin']),
|
|
|
|
|
+ checkTerminal() {
|
|
|
this.updateIsPC({
|
|
this.updateIsPC({
|
|
|
isPC: window.innerWidth > 960,
|
|
isPC: window.innerWidth > 960,
|
|
|
})
|
|
})
|
|
|
|
|
+ this.updateIsWeixin({
|
|
|
|
|
+ isWeixin: true
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|