45 lines
829 B
Vue
45 lines
829 B
Vue
<template>
|
|
<view @click="handleClick" style="height: 100%;">
|
|
<slot></slot>
|
|
</view>
|
|
<LoginComponent ref="loginRef"></LoginComponent>
|
|
<SubscribeMessage ref="subMessageRef"></SubscribeMessage>
|
|
</template>
|
|
|
|
<script>
|
|
import { pageEventNames } from "@/common/enum"
|
|
import LoginComponent from "@/components/buns-api/login/index"
|
|
import SubscribeMessage from "@/components/buns-api/subscribe-message/index"
|
|
|
|
export default {
|
|
components: { LoginComponent, SubscribeMessage },
|
|
props: {
|
|
|
|
},
|
|
data() {
|
|
return {
|
|
|
|
}
|
|
},
|
|
created() {
|
|
},
|
|
mounted(){
|
|
// 初始化全局组件
|
|
getApp().globalData.$loginRef = this.$refs.loginRef
|
|
},
|
|
onHide() {
|
|
|
|
},
|
|
unmounted() {},
|
|
|
|
methods: {
|
|
handleClick() {
|
|
uni.$emit(pageEventNames.globalClick)
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
|
|
</style> |