- 博客(3)
- 收藏
- 关注
原创 2021-05-07
** uniapp 小程序 微信登陆模块 ** <view class="padding flex flex-direction margin-top-sm"> <button class="cu-btn bg-white lg text-green" v-if="isCanUseProfile" @tap="getUserProfile"> <text class="cuIcon-weixin margin-right-xs"></text>微
2021-06-04 16:08:44 67
原创 uni--微信小程序登陆部分遇到的知识
//1-,判断当前用户微信版本,半段是否用最新版本的方式获取用户信息 const version = uni.getSystemInfoSync().SDKVersion; if (util.compareVersion(version, '2.10.4') >= 0) { this.isCanUseProfile = true; } else { this.isCanUseProfile = false; } util.js中封装的写法 /**比较版本号 * @para
2021-06-04 10:18:59 126
原创 2021-05-07 微信小程序 top 计算手机顶端高度
在App.vue中加入 onLaunch: function() { uni.getSystemInfo({ success: function(e) { // #ifndef MP Vue.prototype.StatusBar = e.statusBarHeight; if (e.platform == 'android') { Vue.prototype.CustomBar = e.statusBarHeight + 50; } else {
2021-05-07 12:40:16 228
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人