mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2026-08-07 03:14:59 +08:00
- 新增分销业绩统计页面,包含时间范围筛选和自定义日期选择功能 - 重构分销认证页面,改为跳转至招募页面申请分销员身份 - 添加分销商品访问记录功能,支持分享追踪和佣金计算 - 更新分销历史记录页面,优化数据结构和显示字段 - 完全重写分销员首页,包含用户信息、收益统计、等级系统等功能
56 lines
1.2 KiB
Vue
56 lines
1.2 KiB
Vue
<template>
|
|
<div class="layout" v-if="list.length">
|
|
<div class="background">
|
|
<u-notice-bar
|
|
direction="column"
|
|
:bg-color="noticeStyle.bk_color"
|
|
:color="noticeStyle.color"
|
|
:text="list"
|
|
></u-notice-bar>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { computed } from "vue";
|
|
|
|
const props = defineProps<{ res: any }>();
|
|
|
|
const noticeStyle = computed(() => props.res?.list?.[0] || {});
|
|
|
|
const list = computed(() => {
|
|
const titles = props.res?.list?.[0]?.title;
|
|
if (!Array.isArray(titles)) return [];
|
|
return titles
|
|
.map((item: { context?: string }) => (item?.context == null ? "" : String(item.context)))
|
|
.filter((text: string) => text.length > 0);
|
|
});
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
@import "./tpl.scss";
|
|
.background {
|
|
position: absolute;
|
|
z-index: 2;
|
|
width: 100%;
|
|
height: 84rpx;
|
|
text-align: left;
|
|
font-size: 20rpx;
|
|
background-size: cover;
|
|
}
|
|
.layout {
|
|
text-align: center;
|
|
position: relative;
|
|
height: 84rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
background: #ffffff;
|
|
}
|
|
.title {
|
|
line-height: 84rpx;
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
}
|
|
</style>
|