当前位置:网站首页>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)
}
});
}
});
}
边栏推荐
- 潘多拉 IOT 开发板学习(HAL 库)—— 实验8 定时器中断实验(学习笔记)
- c语言简便实现链表增删改查「建议收藏」
- Lombok @builder annotation
- Oracle Chinese sorting Oracle Chinese field sorting
- Optimization of middle alignment of loading style of device player in easycvr electronic map
- Tianyi cloud understands enterprise level data security in this way
- 视频融合云平台EasyCVR增加多级分组,可灵活管理接入设备
- 中文版Postman?功能真心强大!
- 2022 latest intermediate and advanced Android interview questions, [principle + practice + Video + source code]
- Go deep into the underlying C source code and explain the core design principles of redis
猜你喜欢

android中常见的面试题,2022金九银十Android大厂面试题来袭

Go deep into the underlying C source code and explain the core design principles of redis

企业数字化转型之路,从这里开始

cf:B. Almost Ternary Matrix【對稱 + 找規律 + 構造 + 我是構造垃圾】

Mysql database indexing tutorial (super detailed)

2022全网最全的腾讯后台自动化测试与持续部署实践【万字长文】

手把手教你处理 JS 逆向之图片伪装

AI金榜题名时,MLPerf榜单的份量究竟有多重?
![2022 the most complete Tencent background automation testing and continuous deployment practice in the whole network [10000 words]](/img/4b/90f07cd681b1e0595fc06c9429b338.jpg)
2022 the most complete Tencent background automation testing and continuous deployment practice in the whole network [10000 words]

MySQL优化六个点的总结
随机推荐
Ant group open source trusted privacy computing framework "argot": open and universal
Isprs2020/ cloud detection: transferring deep learning models for cloud detection between landsat-8 and proba-v
从外卖点单浅谈伪需求
Tianyi cloud understands enterprise level data security in this way
Ten years at sea: old and new relay, dark horse rising
Word查找红色文字 Word查找颜色字体 Word查找突出格式文本
After the company went bankrupt, the blackstones came
机器学习基础(三)——KNN/朴素贝叶斯/交叉验证/网格搜索
You can have both fish and bear's paw! Sky wing cloud elastic bare metal is attractive!
android中常见的面试题,2022金九银十Android大厂面试题来袭
Windows Oracle open remote connection Windows Server Oracle open remote connection
Blue sky drawing bed Apple quick instructions
紧固件行业供应商绩效考核繁琐?选对工具才能轻松逆袭!
Shang Silicon Valley Shang preferred project tutorial release
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
c语言简便实现链表增删改查「建议收藏」
公司破产后,黑石们来了
ICML2022 | 长尾识别中分布外检测的部分和非对称对比学习
Chinese postman? Really powerful!
技术分享 | 接口测试价值与体系