format jsx
This commit is contained in:
parent
07cfe186b2
commit
74916b6a96
|
@ -1,10 +1,17 @@
|
|||
<view class="container">
|
||||
<view class="userinfo">
|
||||
{(!hasUserInfo && canIUse) ? (
|
||||
<button open-type="getUserInfo" bindgetuserinfo="getUserInfo"> 获取头像昵称 </button>
|
||||
<button open-type="getUserInfo" bindgetuserinfo="getUserInfo">
|
||||
获取头像昵称
|
||||
</button>
|
||||
) : (
|
||||
<block>
|
||||
<image bindtap={this.bindViewTap} class="userinfo-avatar" src={userInfo.avatarUrl} mode="cover"></image>
|
||||
<image
|
||||
bindtap={this.bindViewTap}
|
||||
class="userinfo-avatar"
|
||||
src={userInfo.avatarUrl}
|
||||
mode="cover">
|
||||
</image>
|
||||
<text class="userinfo-nickname">{userInfo.nickName}</text>
|
||||
</block>
|
||||
)}
|
||||
|
|
Loading…
Reference in New Issue