zyejMAll-mobile/pages/commission/components/commission-info.vue

113 lines
2.5 KiB
Vue
Raw Normal View History

2024-08-07 10:31:42 +08:00
<!-- 分销商信息 -->
<template>
2024-08-07 21:40:27 +08: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>
2024-08-07 10:31:42 +08:00
</template>
<script setup>
2024-08-07 21:40:27 +08:00
import sheep from '@/sheep';
import { computed, reactive } from 'vue';
2024-08-07 10:31:42 +08:00
2024-08-07 21:40:27 +08:00
const userInfo = computed(() => sheep.$store('user').userInfo);
const headerBg = sheep.$url.css('/static/img/shop/commission/background.png');
2024-08-07 10:31:42 +08:00
2024-08-07 21:40:27 +08:00
const state = reactive({
showMoney: false,
});
2024-08-07 10:31:42 +08:00
</script>
<style lang="scss" scoped>
2024-08-07 21:40:27 +08:00
// 用户资料卡片
.user-card {
width: 690rpx;
height: 192rpx;
margin: -88rpx 20rpx 0 20rpx;
padding-top: 88rpx;
2024-09-30 19:00:13 +08:00
background: url('https://zysc.fjptzykj.com:3000/shangcheng/10c7d7a9afb36266f658e5f398922b835530cb350ef98cf90d4ef6f60ccc1bc1.png') no-repeat;
2024-08-07 21:40:27 +08:00
background-size: 100% 100%;
2024-08-07 10:31:42 +08:00
2024-08-07 21:40:27 +08:00
.head-img-box {
margin-right: 20rpx;
width: 100rpx;
height: 100rpx;
border-radius: 50%;
position: relative;
background: #fce0ad;
2024-08-07 10:31:42 +08:00
2024-08-07 21:40:27 +08:00
.head-img {
width: 92rpx;
height: 92rpx;
border-radius: 50%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
2024-08-07 10:31:42 +08:00
2024-08-07 21:40:27 +08:00
.card-top {
box-sizing: border-box;
padding-bottom: 34rpx;
2024-08-07 10:31:42 +08:00
2024-08-07 21:40:27 +08:00
.user-name {
font-size: 32rpx;
font-weight: bold;
color: #692e04;
line-height: 30rpx;
margin-bottom: 20rpx;
}
2024-08-07 10:31:42 +08:00
2024-08-07 21:40:27 +08: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;
}
2024-08-07 10:31:42 +08:00
2024-08-07 21:40:27 +08:00
.look-btn {
color: #fff;
width: 40rpx;
height: 40rpx;
}
}
2024-08-07 10:31:42 +08:00
2024-08-07 21:40:27 +08:00
.user-info-box {
.tag-box {
background: #ff6000;
border-radius: 18rpx;
line-height: 36rpx;
2024-08-07 10:31:42 +08:00
2024-08-07 21:40:27 +08:00
.tag-img {
width: 36rpx;
height: 36rpx;
border-radius: 50%;
margin-left: -2rpx;
}
2024-08-07 10:31:42 +08:00
2024-08-07 21:40:27 +08:00
.tag-title {
font-size: 24rpx;
padding: 0 10rpx;
font-weight: 500;
line-height: 36rpx;
color: #fff;
}
}
}
}
</style>