当前位置:网站首页>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)
}
});
}
});
}
边栏推荐
- 中文版Postman?功能真心强大!
- Tupu software digital twin smart wind power system
- JS解力扣每日一题(十二)——556. 下一个更大元素 III(2022-7-3)
- Shang Silicon Valley Shang preferred project tutorial release
- Lombok @builder annotation
- Technology sharing | common interface protocol analysis
- MySQL优化六个点的总结
- Tianyi cloud understands enterprise level data security in this way
- Golang through pointer for Range implements the change of the value of the element in the slice
- 为什么 BI 软件都搞不定关联分析?带你分析分析
猜你喜欢

Benefits of automated testing

数学分析_笔记_第9章:曲线积分与曲面积分

华为让出的高端市场,小米12S靠徕卡能抢到吗?

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

Windows Oracle open remote connection Windows Server Oracle open remote connection

You can have both fish and bear's paw! Sky wing cloud elastic bare metal is attractive!

Oracle 中文排序 Oracle 中文字段排序

鱼和熊掌可以兼得!天翼云弹性裸金属一招鲜!

Word查找红色文字 Word查找颜色字体 Word查找突出格式文本

Analysis of postman core functions - parameterization and test report
随机推荐
华为让出的高端市场,小米12S靠徕卡能抢到吗?
一朵云开启智慧交通新未来
使用文件和目录属性和属性
潘多拉 IOT 开发板学习(HAL 库)—— 实验8 定时器中断实验(学习笔记)
决策树与随机森林
2022最新中高级Android面试题目,【原理+实战+视频+源码】
Summary of six points of MySQL optimization
2022 latest intermediate and advanced Android interview questions, [principle + practice + Video + source code]
块编辑器如何选择?印象笔记 Verse、Notion、FlowUs
EasyCVR授权到期页面无法登录,该如何解决?
Rse2020/ cloud detection: accurate cloud detection of high-resolution remote sensing images based on weak supervision and deep learning
Technology sharing | interface testing value and system
集合处理的利器
Why can't Bi software do correlation analysis? Take you to analyze
#夏日挑战赛# HarmonyOS - 实现消息通知功能
Powerful tool for collection processing
Interviewer: what is the difference between redis expiration deletion strategy and memory obsolescence strategy?
Technology sharing | common interface protocol analysis
Thoroughly understand why network i/o is blocked?
Lombok @builder annotation