<view class="user-box">
    <navigator url="#" class='user-con' hover bindtap="changeUserMsg">
        <van-image image-class="v-img" round width="128rpx" height="128rpx" src="{{userMsg.attinfos[0].url||'/static/image/user.png'}}" />
        <view class="user-msg">
            <view class="user-name line-1">
                {{userMsg.name}}
            </view>
            <view class="user-phone">
                {{userMsg.phonenumber}}
            </view>
        </view>
        <van-icon size='40rpx' name="arrow" />
    </navigator>
</view>
<block wx:if="{{isnewsale}}">
    <navigator class="orderForm" url="/packageA/orderForm/index" open-type="navigate">
        <view class="left">
            <text class="work work-dingdan"></text>
            我的订单
        </view>
        <view class="right">全部
            <van-icon size='30rpx' name="arrow" />
        </view>
    </navigator>

    <view class="orders" wx:if="{{orders.length}}">
        <navigator class="stuta" url="{{'/packageA/orderForm/index?stuta='+item.key}}" open-type="navigate" wx:for="{{orders}}" wx:key="key">
            <view class="iconfont {{item.icon}}">
                <view class="badge" style="padding: {{item.badge>9?'0 4rpx':''}};" wx:if="{{item.badge}}">{{item.badge>99?'99+':item.badge}}</view>
            </view>
            <view class="text">{{language[item.key]||item.key}}</view>
        </navigator>
    </view>
</block>
<view class='operating' hover>
    <navigator class="item" url="{{item.name=='团队管理'?item.path+'?auth='+teamAuth:item.path}}" wx:for="{{pathList}}">
        <view class="con">
            <view class="label">
                <text class="iconfont {{item.icon}}" style="color: {{item.color}};" />
                {{language[item.name]||item.name}}
            </view>
            <view class="item-right">
                <van-icon size='30rpx' name="arrow" />
            </view>
        </view>
    </navigator>
    <navigator class="item" url="#" bindtap="bindingWechat">
        <view class="con">
            <view class="label">
                <text class="iconfont icon-a-wodebangdingweixin" style="color: var(--success);" />
                {{language['绑定微信']||'绑定微信'}}
                <view wx:if="{{userMsg.iswechatbinding}}" class="bd-wechat">{{language['已绑定']||'已绑定'}}</view>
            </view>
            <view class="item-right">
                <image class="user-img" wx:if="{{userMsg.iswechatbinding}}" src="{{userMsg.wechatuserinfo.avatarUrl}}" />
                <view class="tips right-false" wx:else>
                    {{language['未绑定']||'未绑定'}}
                </view>
                <van-icon size='30rpx' name="arrow" />
            </view>
        </view>
    </navigator>
    <navigator wx:if="{{userMsg.iswechatbinding}}" class="item" url="#" bindtap="bindingOfficialAccounts">
        <view class="con">
            <view class="label">
                <text class="iconfont icon-a-wodebangdingweixin" style="color: var(--success);" />
                {{language['消息通知设置']||'消息通知设置'}}
            </view>
            <view class="item-right">
                <van-icon size='30rpx' name="arrow" />
            </view>
        </view>
    </navigator>
</view>
<view class="but">
    <van-button custom-class='out-login' color="#CCC" bindtap="outLogin" plain>
        {{language['退出登录']||'退出登录'}}
    </van-button>
</view>
<view style="height: 140rpx;" />