userinfo.wxml 1.4 KB

1
  1. <view class="container"><view class="row b-b flex jg"><text class="tit">头像</text><image src="{{userInfo.avatar}}" data-event-opts="{{[['tap',[['imgsub',['$event']]]]]}}" bindtap="__e"></image></view><view class="row b-b flex"><text class="tit">昵称</text><input class="input" type="text" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['$0','nickname','$event',[]],['userInfo']]]]]}}" value="{{userInfo.nickname}}" bindinput="__e"/></view><view class="row b-b flex"><text class="tit">邀请码</text><input class="input" style="color:#999;" type="text" disabled="true" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['$0','uid','$event',[]],['userInfo']]]]]}}" value="{{userInfo.uid}}" bindinput="__e"/></view><block wx:if="{{userInfo.account||userInfo.phone}}"><view class="row b-b flex"><text class="tit">用户账号</text><input class="input" type="number" disabled="true" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',[userInfo.account||userInfo,'phone','$event',[]]]]]]}}" value="{{userInfo.account||userInfo.phone}}" bindinput="__e"/></view></block><view class="submit-box flex"><view data-event-opts="{{[['tap',[['edit',['$event']]]]]}}" class="submit" bindtap="__e">确认修改</view><view data-event-opts="{{[['tap',[['toLogout',['$event']]]]]}}" class="submit dl" bindtap="__e">退出登录</view></view></view>