当前位置:网站首页>Get wechat avatar and nickname with uniapp
Get wechat avatar and nickname with uniapp
2022-07-05 19:06:00 【gblfy】
<view class="userInformation">
<!-- User defined Avatar -->
<view class="userPortrait">
<image :src="yonghuwx.avatarUrl" mode="widthFix"></image>
</view>
<view class="userLook" >
<!-- User defined name -->
<view class="user-title clamp">{
{
yonghuwx.nickName}}</view>
<view class="user-edit"> Check your profile </view>
</view>
</view>
onLoad(){
let that = this;
uni.login({
provider:'weixin',
success:function(loginRes) {
// Get user information
uni.getUserInfo({
provider:'weixin',
success:function(infoRes){
that.userInfo= infoRes.userInfo
console.log(that.userInfo)
}
});
}
});
}
边栏推荐
- 如何快速进阶自动化测试?听听这3位BAT大厂测试工程师的切身感想....
- 出海十年:新旧接力,黑马崛起
- Word查找红色文字 Word查找颜色字体 Word查找突出格式文本
- 图扑软件数字孪生 | 基于 BIM 技术的可视化管理系统
- 集合处理的利器
- Find in MySQL_ in_ Detailed explanation of set() function usage
- 7-1 linked list is also simple fina
- 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)
- 面试官:Redis 过期删除策略和内存淘汰策略有什么区别?
- 2022全网最全的腾讯后台自动化测试与持续部署实践【万字长文】
猜你喜欢
随机推荐
在线协作产品哪家强?微软 Loop 、Notion、FlowUs
视频自监督学习综述
Solutions contents have differences only in line separators
UDF implementation of Dameng database
Interprocess communication (IPC): shared memory
Mathematical modeling of oil pipeline layout MATLAB, mathematical model of oil pipeline layout
尚硅谷尚优选项目教程发布
MySQL优化六个点的总结
ROS installation error sudo: rosdep: command not found
MySQL数据库索引教程(超详细)
R语言使用lubridate包处理日期和时间数据实战
Idea configuring NPM startup
c语言简便实现链表增删改查「建议收藏」
XML basic knowledge concept
Tupu software digital twin | visual management system based on BIM Technology
Windows Oracle 开启远程连接 Windows Server Oracle 开启远程连接
Optimization of middle alignment of loading style of device player in easycvr electronic map
[today in history] July 5: the mother of Google was born; Two Turing Award pioneers born on the same day
Simple query cost estimation
Isprs2022/ cloud detection: cloud detection with boundary nets