当前位置:网站首页>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)
}
});
}
});
}
边栏推荐
- 数学分析_笔记_第9章:曲线积分与曲面积分
- Oracle date format conversion to_ date,to_ char,to_ Timestamp mutual conversion
- 紧固件行业供应商绩效考核繁琐?选对工具才能轻松逆袭!
- Lombok @builder annotation
- Go语言学习教程(十五)
- Advanced application of C # language
- cf:B. Almost Ternary Matrix【对称 + 找规律 + 构造 + 我是构造垃圾】
- AI金榜题名时,MLPerf榜单的份量究竟有多重?
- Find in MySQL_ in_ Detailed explanation of set() function usage
- 视频自监督学习综述
猜你喜欢

深入底层C源码讲透Redis核心设计原理

进程间通信(IPC):共享内存

Analysis of postman core functions - parameterization and test report

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

AI表现越差,获得奖金越高?纽约大学博士拿出百万重金,悬赏让大模型表现差劲的任务

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

2022 Alibaba Android advanced interview questions sharing, 2022 Alibaba hand Taobao Android interview questions

Technology sharing | interface testing value and system

国内低代码开发平台靠谱的都有哪些?

Technology sharing | common interface protocol analysis
随机推荐
After the company went bankrupt, the blackstones came
数学分析_笔记_第9章:曲线积分与曲面积分
XML basic knowledge concept
Interprocess communication (IPC): shared memory
How much does the mlperf list weigh when AI is named?
[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
Solutions contents have differences only in line separators
Simple query cost estimation
尚硅谷尚优选项目教程发布
XML基础知识概念
Go deep into the underlying C source code and explain the core design principles of redis
Go语言 | 03 数组、指针、切片用法
Teach you to deal with JS reverse picture camouflage hand in hand
Isprs2020/ cloud detection: transferring deep learning models for cloud detection between landsat-8 and proba-v
EasyCVR授权到期页面无法登录,该如何解决?
R language Visual scatter plot graph, add labels to some data points in the graph, and always display all labels, even if they have too much overlap. Ggrep package helps
集合处理的利器
手把手教你处理 JS 逆向之图片伪装
The monthly list of Tencent cloud developer community videos was released in May 2022
ROS installation error sudo: rosdep: command not found