纸通宝小程序
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.
 

127 lines
7.4 KiB

<!--pages/home/info/index.wxml-->
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">个人中心</view>
</cu-custom>
<!-- <view class="bg-white flex flex-center flex-column" style="padding:48rpx">
<view style="width: 120px;height: 120px;position: relative" bindtap="chooseImage">
<wux-image width="{{120}}" height="{{120}}" wux-class="image" shape="circle" src="{{avatarUrl}}" />
<image class="wux-badge" src="/assets/image/icon_carmera.png"></image>
</view>
</view> -->
<view class="header-box flex flex-justify" style="padding:32rpx">
<view class="flex">
<view bindtap="chooseImage">
<wux-image width="{{60}}" height="{{60}}" wux-class="image" shape="circle" src="{{avatarUrl}}" />
<image class="wux-badge2" src="/assets/image/icon_carmera.png"></image>
</view>
<view class="flex flex-column flex-center" style="margin-left:24rpx;align-items:flex-start">
<view class="flex flex-center">
<text class="text-black" style="white-space: nowrap">姓名:{{linkman || ''}}</text>
<!-- <image class="img-auth2" src="{{userInfo.isAuth == 1 ? '/assets/image/icon_author.png' : '/assets/image/icon_unauthor.png'}}"></image>
<text class="{{userInfo.isAuth == 1 ? 'text-blue' : 'text-gray'}}">{{userInfo.isAuth == 1 ? '已认证' : '未实名认证'}}</text> -->
</view>
<view class="flex flex-center" style="font-size:13px;margin-top:10rpx">
<text class="text-black" style="white-space: nowrap;float:right">联系电话:{{linkPhone}}</text>
</view>
</view>
</view>
</view>
<view style="height:20rpx;"></view>
<wux-cell-group>
<!-- <wux-cell>
<view slot="header" class="text-gray">姓名</view>
<view slot="footer">{{linkman || ''}}</view>
</wux-cell> -->
<wux-cell title="公司名称" wx:if="{{userType == 2}}">
<view slot="header" class="text-gray">公司名称</view>
<view slot="footer">{{realName || ''}}</view>
</wux-cell>
<wux-cell title="公司性质" wx:if="{{userType == 2}}">
<view slot="header" class="text-gray">公司性质</view>
<view slot="footer">{{identityStr}}</view>
</wux-cell>
<!-- <wux-cell>
<view slot="header" class="text-gray">联系电话</view>
<view slot="footer">{{linkPhone}}</view>
</wux-cell> -->
<wux-cell wx:if="{{userType == 2}}">
<view slot="header" class="text-gray">公司地址</view>
<view slot="footer" style="width:500rpx">{{companyAddress}}</view>
</wux-cell>
<wux-cell wx:if="{{userType == 1}}" is-link data-cid='nickname' data-tag='昵称' bind:click="showDialog">
<view slot="header" class="text-gray">昵称</view>
<view slot="footer" class="{{userInfo.nickname? 'text-black':'text-gray'}}">{{userInfo.nickname || '点击修改昵称'}}</view>
</wux-cell>
<wux-cell is-link="{{!userInfo.isAuth}}" url="/pages/home/idcard/index" bind:click="toAuth">
<view slot="header" class="text-gray">实名认证</view>
<view slot="footer" class="text-black">{{userInfo.isAuth ? '已认证' : '未认证'}}</view>
</wux-cell>
<wux-cell wx:if="{{userType == 1}}" is-link data-cid='card' data-tag='从业身份' bindtap="toTab1">
<view slot="header" class="text-gray">从业身份</view>
<view slot="footer" class="{{userInfo.identityTag? 'text-black':'text-gray'}}">{{userInfo.identityTag || '点击修改从业身份'}}</view>
</wux-cell>
<wux-cell wx:if="{{userType == 1}}" is-link data-cid='city' bindtap="toTab2">
<view slot="header" class="text-gray">所在城市</view>
<view slot="footer" class="text-sg {{userInfo.locateCityTag?'text-blue':'input-grey'}}">{{userInfo.locateCityTag.provinceName+userInfo.locateCityTag.cityName||'请选择所在地区'}}</view>
</wux-cell>
<wux-cell wx:if="{{userType == 1}}" is-link data-cid='age' data-tag='从业经验' bindtap="toTab3">
<view slot="header" class="text-gray">从业经验</view>
<view slot="footer" class="{{userInfo.experienceTag? 'text-black':'text-gray'}}">{{userInfo.experienceTag || '点击修改从业经验'}}</view>
</wux-cell>
<wux-cell wx:if="{{userType == 1}}" is-link data-cid='type' data-tag='希望采购品类' bindtap="toTab4">
<view slot="header" class="text-gray">希望采购品类</view>
<view slot="footer" class="{{userInfo.numberOfPurchaseCategoriesTag? 'text-black':'text-gray'}}">{{userInfo.numberOfPurchaseCategoriesTag || '点击修改希望采购品类'}}</view>
</wux-cell>
<wux-cell wx:if="{{userType == 1}}" is-link data-cid='type2' data-tag='希望出货品类' bindtap="toTab5">
<view slot="header" class="text-gray">希望出货品类</view>
<view slot="footer" class="{{userInfo.numberOfProxyCategoriesTag? 'text-black':'text-gray'}}">{{userInfo.numberOfProxyCategoriesTag || '点击修改希望出货品类'}}</view>
</wux-cell>
<wux-cell wx:if="{{userType == 1}}" is-link data-cid='type2' data-tag='希望出货品类' bindtap="toTab6">
<view slot="header" class="text-gray">月出货量</view>
<view slot="footer" class="{{userInfo.shipmentPerMonth? 'text-black':'text-gray'}}">{{userInfo.shipmentPerMonth || '点击月出货量'}}</view>
</wux-cell>
<wux-cell wx:if="{{userType == 1}}" is-link data-cid='numberMoon' data-tag='打包站名' bind:click="showDialog">
<view slot="header" class="text-gray">打包站名</view>
<view slot="footer" class="{{userInfo.packageFactoryName? 'text-black':'text-gray'}}">{{userInfo.packageFactoryName || '点击修改打包站名'}}</view>
</wux-cell>
<wux-cell wx:if="{{userType == 1}}" is-link data-cid='numberMoon' data-tag='打包站占地面积' bind:click="showDialog">
<view slot="header" class="text-gray">打包站占地面积</view>
<view slot="footer" class="{{userInfo.packageFactoryArea? 'text-black':'text-gray'}}">{{userInfo.packageFactoryArea || '点击修改打包站占地面积'}}</view>
</wux-cell>
<wux-cell wx:if="{{userType == 1}}" is-link data-cid='numberMoon' data-tag='工厂人数' bind:click="showDialog">
<view slot="header" class="text-gray">工厂人数</view>
<view slot="footer" class="{{userInfo.numberOfEmployee? 'text-black':'text-gray'}}">{{userInfo.numberOfEmployee || '点击修改工厂人数'}}</view>
</wux-cell>
<wux-cell wx:if="{{userType == 1}}" is-link data-cid='numberMoon' data-tag='打包机数' bind:click="showDialog">
<view slot="header" class="text-gray">打包机数</view>
<view slot="footer" class="{{userInfo.numberOfPackageMachine? 'text-black':'text-gray'}}">{{userInfo.numberOfPackageMachine || '点击修改工厂打包机数'}}</view>
</wux-cell>
<wux-cell wx:if="{{userType == 1}}" is-link data-cid='numberMoon' data-tag='营业执照' bind:click="toBusinessLicense">
<view slot="header" class="text-gray">营业执照</view>
<view slot="footer" class="{{userInfo.businessLicenseUrl? 'text-black':'text-gray'}}">{{userInfo.businessLicenseUrl==null?'未上传':'查看'}}</view>
</wux-cell>
</wux-cell-group>
<!-- <view class="bg-white" style="padding: 1rpx 30rpx;">
<view style="padding: 20rpx 0rpx;">
<text class="lg text-sg text-black" decode="{{true}}">营业执照</text>
</view>
<view class="grid col-3 grid-square">
<view class="bg-img" bindtap="viewImage" data-url="{{licenseUrl}}">
<image src='{{licenseUrl}}' mode='aspectFill'></image>
<view class="cu-tag bg-red" catchtap="updatalicenseUrl">
<text class="cuIcon-close"></text>
</view>
</view>
</view>
</view> -->
<wux-cropper wx:if="{{visible}}" srcList="{{srcList}}" bindclose="closeCallback" bindcroped="onCropback"></wux-cropper>
<wux-dialog id="wux-dialog" />
<wux-cascader id="wux-cascader" value="{{region}}" options="{{ options }}" bind:close="onRegionChange" />