2024年12月3日
摘要: 在页面的create里面去判断 wx.getSetting({ 去判断用户是否有过授权. success:res=>{ if(res.authSetting['scope.userInfo']) { uni.getUserInfo({ success:res=>{ 如果有过授权.就吧获取用户信息的弹 阅读全文
posted @ 2024-12-03 14:35 荻!!!!!!!! 阅读(700) 评论(0) 推荐(0)
摘要: 如何注册全局公用组件 import uniNavBar from '@/components/uniNavBar.vue' Vue.component('uni-nav-bar',uniNavBar) 如何注册全局基础变量 Vue.prototype.BaseFileURL='*******' 阅读全文
posted @ 2024-12-03 09:21 荻!!!!!!!! 阅读(28) 评论(0) 推荐(0)