用户页面wxml
<!--pages/home/home.wxml-->
<view class="container">
<view class="top-view">
<view class="user">
<view class="row">
<image class="avatar" wx:if="{{userInfo}}" src="{{userInfo.avatarUrl}}"></image>
<image class="avatar" wx:else="{{userInfo}}" src="/static/2.png"></image>
<!-- 点击跳转到登录注册页面 -->
<view class="name" wx:if="{{userInfo}}">
<view bindtap="onClickLogout">
{{userInfo.nickName}}
</view>
</view>
<view class="name" wx:else="{{userInfo}}">
<navigator url="/pages/auth/auth">登录</navigator>
|
<navigator url="/pages/auth/auth">注册 </navigator>
</view>
</view>
<view class="site">查看个人主页</view>
</view>
<view class="numbers">
<view class="row">
<text>0</text>
<text>关注</text>
</view>
<view class="row">
<text>0</text>
<text>粉丝</text>
</view>
<view class="row">
<text>0</text>
<text>赞与收藏</text>
</view>
<view class="row">
<text>0</text>
<text>好友动态</text>
</view>
</view>
</view>
<view class="middle-view">
<view class="item">
<image src="/static/images/icon/transaction_order1_icon_show.png"></image>
<text>待支付</text>
</view>
<view class="item">
<image src="/static/images/icon/transaction_order2_icon_show.png"></image>
<text>待支付</text>
</view>
<view class="item">
<image src="/static/images/icon/transaction_order3_icon_show.png"></image>
<text>待支付</text>
</view>
<view class="item">
<image src="/static/images/icon/transaction_order4_icon_show.png"></image>
<text>待支付</text>
</view>
<view class="item">
<image src="/static/images/icon/transaction_order5_icon_show.png"></image>
<text>待支付</text>
</view>
</view>
<view class="function-view">
<view class="row">
<view class="left">我的钱包</view>
<view class="right">
<text>¥20</text>
<image class="go-icon" src='/static/images/icon/to_icon_show_small.png'></image>
</view>
</view>
<view class="row">
<view class="left">我的优惠券</view>
<view class="right">
<text>暂无课用</text>
<image class="go-icon" src='/static/images/icon/to_icon_show_small.png'></image>
</view>
</view>
<view class="row">
<view class="left&quo