const mixins = { data() { return { totalHeight: 0, scrollInfo: undefined, userMoney: undefined } }, // 顶部导航栏透明滚动 onPageScroll(e) { this.scrollInfo = e; }, methods: { getPageScroll() { this.$utils.getDom(); } } } export default mixins;