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.

92 lines
1.9 KiB

<template>
<view class="container">
<block v-if="code">
<!-- <view class="cell">
<view class="cell-lable">企业名称:</view>
<view class="cell-value">{{userData.enterpriseName}}</view>
</view> -->
<view class="cell">
<view class="cell-lable">社会代码:</view>
<view class="cell-value">{{userData.code}}</view>
</view>
</block>
<block v-else>
<!-- <view class="cell">
<view class="cell-lable">用户名:</view>
<view class="cell-value">{{userData.username}}</view>
</view> -->
<view class="cell">
<view class="cell-lable">真实姓名:</view>
<view class="cell-value">{{userData.realName}}</view>
</view>
<view class="cell">
<view class="cell-lable">身份证号:</view>
<view class="cell-value">{{userData.identity}}</view>
</view>
<view class="cell">
<view class="cell-lable">手机号码:</view>
<view class="cell-value">{{userData.phone}}</view>
</view>
<!-- <view class="cell">
<view class="cell-lable">单位名称:</view>
<view class="cell-value">{{userData.orgName}}</view>
</view> -->
</block>
</view>
</template>
<script>
export default {
data() {
return {
userData: {},
code: false
};
},
onLoad(option) {
if (option.code) {
uni.setNavigationBarTitle({
title: '企业信息'
})
}
this.code = option.code
this.userData = uni.getStorageSync('USER_DATA').userDto || {}
},
}
</script>
<style lang="scss" scoped>
.container {
box-sizing: border-box;
padding-top: 10rpx;
&>view {
border-bottom: 1px solid #f7f7f7;
}
&>view:last-child {
border: 0;
}
.cell {
background-color: #fff;
min-height: 60rpx;
display: flex;
align-items: center;
box-sizing: border-box;
padding: 25rpx;
.cell-lable {
width: 150rpx;
font-size: 28rpx;
color: #34373B;
}
.cell-value {
flex: 1;
font-size: 27rpx;
color: #B0B4BB;
}
}
}
</style>