You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
3.8 KiB
75 lines
3.8 KiB
<wxs module="formate" src="../../formate.wxs"></wxs>
|
|
<cu-custom bgColor="bg-white" isBack="{{false}}">
|
|
<view slot="content" style="color:black;font-size:18px">我的</view>
|
|
</cu-custom>
|
|
|
|
<scroll-view scroll-y style="height:{{height}}rpx;">
|
|
<!-- 用户信息 -->
|
|
<view class="bg-white flex flex-justify" style="padding:32rpx" wx:if="{{userInfo}}" bindtap="toUserInfo">
|
|
<view class="flex">
|
|
<view style="position: relative">
|
|
<van-image use-loading-slot width="60" height="60" lazy-load round src="{{avatarUrl}}">
|
|
<image class="image-load" slot="loading" src="/assets/image/ygImg.png"></image>
|
|
</van-image>
|
|
<view class="cu-tag badge cuIcon-vip bg-blue" style="font-size:24rpx" wx:if="{{userInfo.isVIP}}"></view>
|
|
</view>
|
|
<view class="flex flex-column flex-center" style="margin-left:24rpx;align-items:flex-start">
|
|
<view class="flex flex-center">
|
|
<text class="text-lg" style="white-space: nowrap">{{userName || ''}}</text>
|
|
<view class="flex flex-center" style="font-size:12px;margin-left:18rpx">
|
|
<text class="{{userInfo.isAuth == 1 ? 'text-blue' : 'text-gray'}}">{{userInfo.isAuth == 1 ? '已认证' : '未实名认证'}}</text>
|
|
<text class="text-yellow" style="font-size:14px;padding:4px;" wx:if="{{userInfo.isAuth != 1 && userInfo.userType == 1}}">去认证</text>
|
|
</view>
|
|
</view>
|
|
<view class="flex flex-center" style="font-size:12px;margin-top:12rpx">
|
|
<text class="text-black" style="font-size:14px">{{userInfo.mobile || ''}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<text class="cuIcon-right text-gray" style="font-size:18px"></text>
|
|
</view>
|
|
<!-- 授信信息 -->
|
|
<!-- <view class="bg-white" wx:if="{{userInfo.position != 'ORDINARY'}}" style="margin-top: 16rpx">
|
|
<view class="flex" style="padding: 20rpx 32rpx">
|
|
<text class="text-lg text-bold">先用后付</text>
|
|
<text class="text-df text-gray" style="padding-top:6rpx;margin-left:8rpx">最高200万限额采购商品,满意了再付款</text>
|
|
</view>
|
|
<view class="flex" style="padding:0rpx 32rpx 24rpx 32rpx">
|
|
<view style="flex:1;border: 2rpx solid #eeeeee;padding:24rpx 32rpx;margin-right:12rpx">
|
|
<view class="text-black">剩余使用采购量</view>
|
|
<view class="text-xxl text-bold" style="margin:12rpx 0rpx">{{formate.formateAmount(creditInfo.availableCreditLine)}}</view>
|
|
<view class="text-blue text-sm" style=";text-decoration:underline" wx:if="{{!creditInfo.creditLine}}"
|
|
catchtap="tipApply">如何获得采购量?</view>
|
|
</view>
|
|
<view style="flex:1;border: 2rpx solid #eeeeee;padding:24rpx 32rpx;margin-left:12rpx" bindtap="orderList">
|
|
<view class="text-black">待付款订单</view>
|
|
<view class="text-xxl text-bold" style="margin:12rpx 0rpx">{{formate.formateAmount(creditInfo.usedCreditLine)}}</view>
|
|
<view class="text-gray text-sm">查看订单明细</view>
|
|
</view>
|
|
</view>
|
|
</view> -->
|
|
<!-- 企业信息 -->
|
|
<view style="height:16rpx"></view>
|
|
<van-cell-group>
|
|
<van-cell is-link link-type="navigateTo" url="/pages/home/employee/index" wx:if="{{userInfo.enterpriseId && userInfo.position != 'ORDINARY'}}">
|
|
<view class="flex" slot="title" style="align-items: center">
|
|
<van-icon name="contact" size="18"/>
|
|
<text class="text-sg" style="margin-left:12rpx">员工管理</text>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell is-link link-type="navigateTo" url="/pages/home/customer/index">
|
|
<view class="flex" slot="title" style="align-items: center">
|
|
<van-icon name="user-circle-o" size="18"/>
|
|
<text class="text-sg" style="margin-left:12rpx">客户管理</text>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell is-link bind:click="loginOut">
|
|
<view class="flex" slot="title" style="align-items: center">
|
|
<van-icon name="setting-o" size="18" />
|
|
<text class="text-sg" style="margin-left:12rpx">退出当前账号</text>
|
|
</view>
|
|
</van-cell>
|
|
</van-cell-group>
|
|
<view style="height:16rpx"></view>
|
|
|
|
</scroll-view>
|