当前位置:网站首页>uniapp获取微信头像和昵称
uniapp获取微信头像和昵称
2022-07-05 18:39:00 【gblfy】
<view class="userInformation">
<!-- 用户自定义头像 -->
<view class="userPortrait">
<image :src="yonghuwx.avatarUrl" mode="widthFix"></image>
</view>
<view class="userLook" >
<!-- 用户自定义名字 -->
<view class="user-title clamp">{
{
yonghuwx.nickName}}</view>
<view class="user-edit">查看个人资料</view>
</view>
</view>
onLoad(){
let that = this;
uni.login({
provider:'weixin',
success:function(loginRes) {
// 获取用户信息
uni.getUserInfo({
provider:'weixin',
success:function(infoRes){
that.userInfo= infoRes.userInfo
console.log(that.userInfo)
}
});
}
});
}
边栏推荐
- A cloud opens a new future of smart transportation
- R语言可视化散点图(scatter plot)图、为图中的部分数据点添加标签、始终显示所有标签,即使它们有太多重叠、ggrepel包来帮忙
- RedHat7.4配置yum软件仓库(RHEL7.4)
- XML basic knowledge concept
- What are the cache interfaces of nailing open platform applet API?
- 爬虫01-爬虫基本原理讲解
- R language uses lubridate package to process date and time data
- How to write good code defensive programming
- Oracle 中文排序 Oracle 中文字段排序
- 在通达信上做基金定投安全吗?
猜你喜欢
Find in MySQL_ in_ Detailed explanation of set() function usage
面试官:Redis 过期删除策略和内存淘汰策略有什么区别?
2022 Alibaba Android advanced interview questions sharing, 2022 Alibaba hand Taobao Android interview questions
LeetCode 6111. Spiral matrix IV
Interprocess communication (IPC): shared memory
A cloud opens a new future of smart transportation
5. Data access - entityframework integration
Oracle Chinese sorting Oracle Chinese field sorting
鱼和熊掌可以兼得!天翼云弹性裸金属一招鲜!
The worse the AI performance, the higher the bonus? Doctor of New York University offered a reward for the task of making the big model perform poorly
随机推荐
Mathematical modeling of oil pipeline layout MATLAB, mathematical model of oil pipeline layout
[HCIA cloud] [1] definition of cloud computing, what is cloud computing, architecture and technical description of cloud computing, Huawei cloud computing products, and description of Huawei memory DD
XML basic knowledge concept
7-2 保持链表有序
Is it complicated to open an account? Is online account opening safe?
爬虫01-爬虫基本原理讲解
The worse the AI performance, the higher the bonus? Doctor of New York University offered a reward for the task of making the big model perform poorly
MySQL数据库索引教程(超详细)
AI Open2022|基于异质信息网络的推荐系统综述:概念,方法,应用与资源
视频融合云平台EasyCVR增加多级分组,可灵活管理接入设备
How to choose the most formal and safe external futures platform?
Golang through pointer for Range implements the change of the value of the element in the slice
U-Net: Convolutional Networks for Biomedical Images Segmentation
AI open2022 | overview of recommendation systems based on heterogeneous information networks: concepts, methods, applications and resources
2022年5月腾讯云开发者社区视频月度榜单公布
EasyCVR授权到期页面无法登录,该如何解决?
Tianyi cloud understands enterprise level data security in this way
Taishan Office Technology Lecture: from the layout height of the line, talk about the height overflow and height shrinkage of the drawing height (launched in the whole network)
Video fusion cloud platform easycvr adds multi-level grouping, which can flexibly manage access devices
ROS安装报错 sudo: rosdep:找不到命令