format jsx

This commit is contained in:
dntzhang 2019-03-31 07:15:37 +08:00
parent 07cfe186b2
commit 74916b6a96
1 changed files with 9 additions and 2 deletions

View File

@ -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>
)}