|
|
|
<view class="page" style="padding-top:{{ menuButtonInfo.bottom }}px;">
|
|
|
|
<view class="login" wx:if="{{userInfo.isLogin===1}}">
|
|
|
|
<uploadFile
|
|
|
|
class="upload"
|
|
|
|
chooseAvatar
|
|
|
|
bind:file="handleFile"
|
|
|
|
data-key="Img"
|
|
|
|
bind:file="handleAvatar"
|
|
|
|
>
|
|
|
|
<image
|
|
|
|
wx:if="{{userInfo.avatar}}"
|
|
|
|
class="avatar"
|
|
|
|
mode="aspectFill"
|
|
|
|
src="{{userInfo.avatar}}"
|
|
|
|
></image>
|
|
|
|
<image
|
|
|
|
wx:else
|
|
|
|
class="avatar"
|
|
|
|
mode="aspectFill"
|
|
|
|
src="/images/user.png"
|
|
|
|
></image>
|
|
|
|
</uploadFile>
|
|
|
|
|
|
|
|
<view class="user">
|
|
|
|
<view class="name">{{userInfo.username || '---'}}
|
|
|
|
<image
|
|
|
|
class="icon"
|
|
|
|
src="/images/icon-edit.png"
|
|
|
|
bind:tap="handleEditUser"
|
|
|
|
></image>
|
|
|
|
</view>
|
|
|
|
<view class="tel">{{userInfo.telephone}}</view>
|
|
|
|
<view class="status">{{userInfo.isMember===1?'会员':'非会员'}}</view>
|
|
|
|
</view>
|
|
|
|
<view class="switch" bind:tap="handleLoginOut">
|
|
|
|
退出登录
|
|
|
|
<van-icon name="arrow" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="no-login" wx:else>
|
|
|
|
<image class="avatar" src="/images/user.png"></image>
|
|
|
|
<view class="name" bind:tap="handleLogin">登录</view>
|
|
|
|
</view>
|
|
|
|
<view class="nav-list">
|
|
|
|
<view class="nav-item" bind:tap="handleCollection">
|
|
|
|
<image class="icon" src="/images/my-list-icon1.png"></image>
|
|
|
|
我的收藏
|
|
|
|
</view>
|
|
|
|
<view class="nav-item" bind:tap="handleOffice">
|
|
|
|
<image class="icon" src="/images/my-list-icon2.png"></image>
|
|
|
|
关注公众号
|
|
|
|
</view>
|
|
|
|
<view class="nav-item" bind:tap="handleCompanyOffice">
|
|
|
|
<image class="icon" src="/images/my-list-icon3.png"></image>
|
|
|
|
联系我们
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<global-toast
|
|
|
|
show="{{toastShow}}"
|
|
|
|
type="{{toastType}}"
|
|
|
|
params="{{userInfo}}"
|
|
|
|
bind:close="handleToastClose"
|
|
|
|
></global-toast>
|