代码拉取完成,页面将自动刷新
<script>
import config from './config'
export default {
globalData() {
return {
// 音频对象
audioMusic: {},
titletop: 0,
titleheight: 0,
statusBarHeight: 0,
}
},
onLaunch: function() {
this.initApp()
//音乐
this.globalData.audioMusic = uni.getBackgroundAudioManager();
},
methods: {
// 初始化应用
initApp() {
// 初始化应用配置
this.initConfig()
},
initConfig() {
this.globalData.config = config
},
// 获取系统配置高度
getHeight() {
// 获取胶囊高度
let res = uni.getMenuButtonBoundingClientRect();
this.titletop = res.top;
this.titleheight = res.height;
// 获取信号栏高度
uni.getSystemInfo({
success: (res) => {
this.statusBarHeight = res.statusBarHeight
}
})
}
}
}
</script>
<style lang="scss">
@import "@/uni_modules/uview-ui/index.scss";
@import '@/static/scss/index.scss';
page {
background-color: #fff;
}
</style>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。