<!--pages/person/person.wxml-->
<view class="container">
    <view class="person card" wx:if="{{hasUserInfo}}" bindtap = "gotoPersonInfo">
        <view class="person-info">
            <view class="user-name f18 c-202020">{{userInfo.name}}
                <image class="next" src="../../images/icons/next.png">
                </image>
            </view>
            <view class="tel c-707070 fw300">{{userInfo.mobile}}</view>
        </view>
        <view class="head-img">
            <image class="" src="{{userInfo.avatar}}">
            </image>
        </view>
    </view>
    <view wx:else class="user-login">
        <view class="person-info">
            <view class="user-name f18 c-202020">
                <button open-type="getUserInfo" bindgetuserinfo="getInfo" class="login-btn"
            style="height: 100px;width: 200px;">请点击登录</button>
                <image class="next" src="../../images/icons/next.png">
                </image>
            </view>
        </view>
        <view class="head-img">
            <image class="defult-user" src="../../images/icons/defult-user.png">

            </image>
            
        </view>
        


    </view>
    <view class="order">
        <image class="icons" src="../../images/icons/order.png">
        </image>
        <view class="order-text">我的订单
        </view>
        <image class="next-gray" src="../../images/icons/next-gray.png">
        </image>
    </view>
    <view class="assess" bindtap = "gotoComment">
        <image class="icons" src="../../images/icons/assess.png"></image>
        <view class="assess-text">我的点评

        </view>
        <image class="next-gray" src="../../images/icons/next-gray.png">

        </image>
    </view>
</view>