纸通宝SAAS仓库
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.
 

88 lines
4.4 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;">
<!-- 用户信息 -->
<van-cell center is-link clickable="{{false}}" border="{{false}}" wx:if="{{userInfo}}" bind:click="toUserInfo">
<view class="flex" slot="title" style="align-items: center">
<van-image use-loading-slot width="120rpx" height="120rpx" lazy-load round src="{{avatarUrl}}">
<image class="image-load" slot="loading" src="/assets/image/ygImg.png"></image>
</van-image>
<!-- <image class="image-load" slot="loading" src="/assets/image/ygImg.png"></image> -->
<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>
<text class="text-lg" style="white-space: nowrap">({{userInfo.position != 'ORDINARY' ? '管理员' : '员工'}})</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">
<text class="text-black" style="font-size:14px">{{userInfo.mobile || ''}}</text>
</view>
</view>
</view>
</van-cell>
<!-- 授信信息 -->
<view class="bg-white" 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"></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 clickable url="/pages/home/employee/index" wx:if="{{userInfo.enterpriseId && userInfo.position != 'ORDINARY'}}">
<view class="flex" slot="title" style="align-items: center">
<van-icon name="manager-o" size="18"/>
<text class="text-sg" style="margin-left:12rpx">员工管理</text>
</view>
</van-cell>
<van-cell is-link clickable url="/pages/home/customer-list/index">
<view class="flex" slot="title" style="align-items: center">
<van-icon name="user-circle-o" size="20"/>
<text class="text-sg" style="margin-left:12rpx">客户管理</text>
</view>
</van-cell>
<!-- <van-cell is-link link-type="navigateTo" url="/pages/home/qrcode/index">
<view class="flex" slot="title" style="align-items: center">
<van-icon name="qr" size="18"/>
<text class="text-sg" style="margin-left:12rpx">二维码名片</text>
</view>
</van-cell> -->
</van-cell-group>
<view style="height:16rpx"></view>
<van-cell-group>
<van-cell is-link clickable url="/pages/home/password/index">
<view class="flex" slot="title" style="align-items: center">
<text class="cuIcon-lock text-black" style="font-size:36rpx"></text>
<text class="text-sg" style="margin-left:12rpx">修改密码</text>
</view>
</van-cell>
<van-cell is-link clickable 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>