2023-12-13 03:35:02 +00:00
|
|
|
<!-- 分销商信息 -->
|
|
|
|
<template>
|
2023-12-18 09:58:00 +00:00
|
|
|
<!-- 用户资料 -->
|
|
|
|
<view class="user-card ss-flex ss-col-bottom">
|
|
|
|
<view class="card-top ss-flex ss-row-between">
|
|
|
|
<view class="ss-flex">
|
|
|
|
<view class="head-img-box">
|
|
|
|
<image class="head-img" :src="sheep.$url.cdn(userInfo.avatar)" mode="aspectFill"></image>
|
|
|
|
</view>
|
|
|
|
<view class="ss-flex-col">
|
|
|
|
<view class="user-name">{{ userInfo.nickname }}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
2023-12-13 03:35:02 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
2023-12-18 09:58:00 +00:00
|
|
|
import sheep from '@/sheep';
|
2023-12-27 05:54:05 +00:00
|
|
|
import { computed, reactive } from 'vue';
|
2023-12-13 03:35:02 +00:00
|
|
|
|
2023-12-18 09:58:00 +00:00
|
|
|
const userInfo = computed(() => sheep.$store('user').userInfo);
|
|
|
|
const headerBg = sheep.$url.css('/static/img/shop/commission/background.png');
|
2023-12-27 05:54:05 +00:00
|
|
|
|
2023-12-18 09:58:00 +00:00
|
|
|
const state = reactive({
|
|
|
|
showMoney: false,
|
|
|
|
});
|
2023-12-27 05:54:05 +00:00
|
|
|
|
2023-12-13 03:35:02 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2023-12-18 09:58:00 +00:00
|
|
|
// 用户资料卡片
|
|
|
|
.user-card {
|
|
|
|
width: 690rpx;
|
|
|
|
height: 192rpx;
|
|
|
|
margin: -88rpx 20rpx 0 20rpx;
|
|
|
|
padding-top: 88rpx;
|
|
|
|
background: v-bind(headerBg) no-repeat;
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
|
|
|
.head-img-box {
|
|
|
|
margin-right: 20rpx;
|
|
|
|
width: 100rpx;
|
|
|
|
height: 100rpx;
|
|
|
|
border-radius: 50%;
|
|
|
|
position: relative;
|
|
|
|
background: #fce0ad;
|
2023-12-13 03:35:02 +00:00
|
|
|
|
2023-12-18 09:58:00 +00:00
|
|
|
.head-img {
|
|
|
|
width: 92rpx;
|
|
|
|
height: 92rpx;
|
|
|
|
border-radius: 50%;
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
}
|
|
|
|
}
|
2023-12-13 03:35:02 +00:00
|
|
|
|
2023-12-18 09:58:00 +00:00
|
|
|
.card-top {
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding-bottom: 34rpx;
|
2023-12-13 03:35:02 +00:00
|
|
|
|
2023-12-18 09:58:00 +00:00
|
|
|
.user-name {
|
|
|
|
font-size: 32rpx;
|
|
|
|
font-weight: bold;
|
|
|
|
color: #692e04;
|
|
|
|
line-height: 30rpx;
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
}
|
2023-12-13 03:35:02 +00:00
|
|
|
|
2023-12-18 09:58:00 +00:00
|
|
|
.log-btn {
|
|
|
|
width: 84rpx;
|
|
|
|
height: 42rpx;
|
|
|
|
border: 2rpx solid rgba(#ffffff, 0.33);
|
|
|
|
border-radius: 21rpx;
|
|
|
|
font-size: 22rpx;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #ffffff;
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
}
|
2023-12-13 03:35:02 +00:00
|
|
|
|
2023-12-18 09:58:00 +00:00
|
|
|
.look-btn {
|
|
|
|
color: #fff;
|
|
|
|
width: 40rpx;
|
|
|
|
height: 40rpx;
|
|
|
|
}
|
|
|
|
}
|
2023-12-13 03:35:02 +00:00
|
|
|
|
2023-12-18 09:58:00 +00:00
|
|
|
.user-info-box {
|
|
|
|
.tag-box {
|
|
|
|
background: #ff6000;
|
|
|
|
border-radius: 18rpx;
|
|
|
|
line-height: 36rpx;
|
2023-12-13 03:35:02 +00:00
|
|
|
|
2023-12-18 09:58:00 +00:00
|
|
|
.tag-img {
|
|
|
|
width: 36rpx;
|
|
|
|
height: 36rpx;
|
|
|
|
border-radius: 50%;
|
|
|
|
margin-left: -2rpx;
|
|
|
|
}
|
2023-12-13 03:35:02 +00:00
|
|
|
|
2023-12-18 09:58:00 +00:00
|
|
|
.tag-title {
|
|
|
|
font-size: 24rpx;
|
|
|
|
padding: 0 10rpx;
|
|
|
|
font-weight: 500;
|
|
|
|
line-height: 36rpx;
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|