123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- <template>
- <view class="work-panel_userinfo">
- <view class="userinfo-left">
- <view class="avatar">
- <image class="image" src="https://yossys06593.obs.cn-east-3.myhuaweicloud.com:443/202404231713854678447B26b4363.svg" mode="widthFix"></image>
- <text class="title">{{ userInfoValue.rolenames }}</text>
- <text class="title2">{{ userInfoValue.rolenames }}</text>
- </view>
- <view class="info">
- <text class="title">{{ userInfoValue.name || userInfoValue.remarks }}</text>
- <text class="time">已加入{{ userInfoValue.joindays>30 ?`${Math.floor(userInfoValue.joindays/30)}个月`: `${userInfoValue.joindays}天` }}</text>
- </view>
- </view>
- <view class="userinfo-right">
- <navigator :url="isCode?'/cloud/businessCard/index':'/team/userCenter/personal'" class="info-card">
- <image class="image" src="/static/workbench/个人名片.svg" mode="widthFix"></image>
- <text class="title">{{isCode?'个人名片':'个人信息'}}</text>
- </navigator>
- <view class="info-card">
- <image class="image" src="/static/workbench/咨询消息.svg" mode="widthFix"></image>
- <text class="title">咨询消息</text>
- </view>
- <view class="info-card" v-if="isCode">
- <image class="image" src="/static/workbench/店铺码.svg" mode="widthFix"></image>
- <text class="title">店铺码</text>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- props:{
- isCode: {
- type:Boolean,
- default:() => true
- },
- userInfoValue: {
- type:Object,
- default:() => {}
- }
- },
- data () {
- return {
- }
- }
- }
- </script>
- <style lang="scss">
- .work-panel_userinfo {
- margin: 20px 0 30px 0;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .userinfo-left {
- display: flex;
- align-items: center;
- justify-content: space-between;
- .avatar {
- display: flex;
- flex-direction: column;
- align-items: center;
- position: relative;
- .image{
- width: 44px;
- height: 44px;
- box-shadow: #F7F7F7 0 5px;
- }
- .title{
- font-family: PingFang SC, PingFang SC;
- font-size: 10px;
- padding: 3px 6px;
- color: #FFFFFF;
- background: #1E2E41;
- border-radius: 50px 50px 50px 50px;
- border: 1px solid #F7F7F7;
- position: absolute;
- bottom: -5px;
- }
- .title2{
- font-family: PingFang SC, PingFang SC;
- font-size: 10px;
- padding: 3px 6px;
- border: 1px solid #F7F7F7;
- height: 0;
- opacity: 0;
- }
- }
- .info {
- display: flex;
- flex-direction: column;
- font-family: Source Han Sans SC, Source Han Sans SC;
- margin-left: 10px;
- .title{
- font-weight: 500;
- font-size: 18px;
- color: #333333;
- }
- .time{
- font-size: 12px;
- color: #999999;
- margin-top: 6px;
- }
- }
- }
- .userinfo-right {
- display: flex;
- align-items: center;
- font-family: Source Han Sans SC, Source Han Sans SC;
- .info-card {
- cursor: pointer;
- &:nth-child(1),&:nth-child(2) {
- margin-right: 23px;
- }
- display: flex;
- flex-direction: column;
- .image {
- width: 32px;
- height: 32px;
- align-self: center;
- }
- .title {
- font-size: 10px;
- color: #333333;
- margin-top: 4px;
- }
- }
- }
- }
- </style>
|