WechatOwnerService/pages/my/my.wxml
2019-12-28 20:16:52 +08:00

45 lines
1.6 KiB
Plaintext

<!--index.wxml-->
<view class="user-container bg-white">
<view class="userinfo">
<block wx:if="{{!userInfo.userName}}">
<image class="userinfo-avatar" src="../../images/login.png" background-size="cover" ></image>
<button class="userinfo-nickname" open-type="getUserInfo" lang="zh_CN" bindgetuserinfo="onGotUserInfo">点击获取昵称</button>
</block>
<block wx:else>
<view class="userinfo-avatar" >
<open-data type="userAvatarUrl" lang="zh_CN"/>
</view>
<view class="userinfo-nickname">
<open-data type="userNickName" lang="zh_CN" />
</view>
<!-- <image class="userinfo-avatar" src="{{userInfo.avatarUrl}}" background-size="cover"></image>
<text class="userinfo-nickname">{{userInfo.nickName}}</text> -->
</block>
</view>
</view>
<view class="tab-container bg-white">
<view class="tab-item border-bottom" hover-class="tab-item-hover" catchtap="bindingOwner">
<view>
<text class="iconfont iconaccount icon"></text>
<text class="tab-text">绑定业主</text>
</view>
<view class="tab-arrow"></view>
</view>
<!-- <view class="tab-item" hover-class="tab-item-hover" catchtap="goMyBooks">
<view>
<image src="../../images/bought.png" mode="aspectFit" class="tab-icon"></image>
<text class="tab-text">已购</text>
</view>
<view class="tab-arrow"></view>
</view> -->
</view>