📘
Luckydesigner
  • Knowledge Code Guide
  • HTML CODE
    • Dictionary
  • CSS CODE
    • Dictionary
  • Javascript Code
    • Dictionary
    • Examples
    • Reference
  • Regular Expressions
    • Reference
  • Wechat Mini Program Develop Notes
    • 开篇
    • 流程
    • 构成
      • 框架
    • 配置
      • index.wxml+index.js
      • Button
      • UserInfo
      • TabBar
      • Clipboard
    • Api
      • 背景
      • 交互
      • 导航栏
    • 标签
Powered by GitBook
On this page

Was this helpful?

  1. Wechat Mini Program Develop Notes
  2. 配置

UserInfo

用户信息

用户昵称

userInfo.nickName

例子

<view>
    <text class="userinfo-nickname">{{userInfo.nickName}}</text>
  </view>

用户头像

userInfo.avatarUrl

例子

<image class="userinfo-avatar" src="{{userInfo.avatarUrl}}" background-size="cover"></image>

number gender

用户性别

gender 的合法值

值

说明

最低版本

0

未知

1

男性

2

女性

string country

用户所在国家

string province

用户所在省份

string city

用户所在城市

string language

显示 country,province,city 所用的语言

language 的合法值

值

说明

最低版本

en

英文

zh_CN

简体中文

zh_TW

繁体中文

PreviousButtonNextTabBar

Last updated 4 years ago

Was this helpful?