1 Star 0 Fork 0

长岛冰茶/网易云音乐2.0

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
App.vue 995 Bytes
一键复制 编辑 原始数据 按行查看 历史
长岛冰茶 提交于 2023-08-31 01:29 . 后台播放音乐
<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>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/keepyang/music-2.0.git
git@gitee.com:keepyang/music-2.0.git
keepyang
music-2.0
网易云音乐2.0
master

搜索帮助