style(commission): 重构收益中心首页为现代简约规范排版
这个提交包含在:
@@ -1,64 +1,62 @@
|
||||
<!-- 分销明细 -->
|
||||
<!-- 分销明细实时动态 -->
|
||||
<template>
|
||||
<view class="distribution-log-wrap">
|
||||
<view class="header-box">
|
||||
<image
|
||||
class="header-bg"
|
||||
:src="sheep.$url.static('/assets/addons/shopro/uniapp/commission/title2.png')"
|
||||
/>
|
||||
<view class="ss-flex header-title">
|
||||
<view class="title">实时动态</view>
|
||||
<text class="cicon-forward"></text>
|
||||
<!-- 头部栏 -->
|
||||
<view class="log-header ss-flex ss-row-between ss-col-center">
|
||||
<view class="header-left ss-flex ss-col-center">
|
||||
<view class="title-bar"></view>
|
||||
<text class="title">实时动态</text>
|
||||
</view>
|
||||
<text class="sub-hint">团队实时变动</text>
|
||||
</view>
|
||||
|
||||
<!-- 滚动列表 -->
|
||||
<scroll-view
|
||||
scroll-y="true"
|
||||
@scrolltolower="loadmore"
|
||||
class="scroll-box log-scroll"
|
||||
scroll-with-animation="true"
|
||||
>
|
||||
<view v-if="state.pagination.data">
|
||||
<view v-if="state.pagination.data && state.pagination.data.length > 0">
|
||||
<view
|
||||
class="log-item-box ss-flex ss-row-between"
|
||||
class="log-item-box ss-flex ss-row-between ss-col-center"
|
||||
v-for="item in state.pagination.data"
|
||||
:key="item.id"
|
||||
>
|
||||
<view class="log-item-wrap">
|
||||
<view class="log-item ss-flex ss-ellipsis-1 ss-col-center">
|
||||
<view class="ss-flex ss-col-center">
|
||||
<image
|
||||
v-if="item.oper_type === 'user'"
|
||||
class="log-img"
|
||||
:src="sheep.$url.cdn(item.oper?.avatar)"
|
||||
mode="aspectFill"
|
||||
></image>
|
||||
<image
|
||||
v-else-if="item.oper_type === 'admin'"
|
||||
class="log-img"
|
||||
:src="
|
||||
sheep.$url.static('/assets/addons/shopro/uniapp/avatar/default_user.png')
|
||||
"
|
||||
mode="aspectFill"
|
||||
></image>
|
||||
<image
|
||||
v-else
|
||||
class="log-img"
|
||||
:src="sheep.$url.static('/assets/addons/shopro/uniapp/avatar/notice.png')"
|
||||
mode="aspectFill"
|
||||
></image>
|
||||
</view>
|
||||
<view class="log-text ss-ellipsis-1">{{ item.remark }}</view>
|
||||
</view>
|
||||
<view class="log-item-left ss-flex ss-col-center ss-flex-1 ss-line-1">
|
||||
<image
|
||||
v-if="item.oper_type === 'user'"
|
||||
class="log-img"
|
||||
:src="sheep.$url.cdn(item.oper?.avatar)"
|
||||
mode="aspectFill"
|
||||
></image>
|
||||
<image
|
||||
v-else-if="item.oper_type === 'admin'"
|
||||
class="log-img"
|
||||
:src="sheep.$url.static('/assets/addons/shopro/uniapp/avatar/default_user.png')"
|
||||
mode="aspectFill"
|
||||
></image>
|
||||
<image
|
||||
v-else
|
||||
class="log-img"
|
||||
:src="sheep.$url.static('/assets/addons/shopro/uniapp/avatar/notice.png')"
|
||||
mode="aspectFill"
|
||||
></image>
|
||||
<text class="log-text ss-line-1">{{ item.remark }}</text>
|
||||
</view>
|
||||
<text class="log-time">{{ dayjs(item.createtime).fromNow() }}</text>
|
||||
<text class="log-time ss-m-l-16">{{ dayjs(item.createtime).fromNow() }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view v-else class="empty-wrap ss-flex ss-row-center ss-col-center">
|
||||
<text class="empty-text">暂无团队实时动态</text>
|
||||
</view>
|
||||
|
||||
<!-- 加载更多 -->
|
||||
<uni-load-more
|
||||
v-if="state.pagination.total > 0"
|
||||
:status="state.loadStatus"
|
||||
color="#333333"
|
||||
color="#999999"
|
||||
@tap="loadmore"
|
||||
/>
|
||||
</scroll-view>
|
||||
@@ -67,7 +65,7 @@
|
||||
|
||||
<script setup>
|
||||
import sheep from '@/sheep';
|
||||
import { computed, reactive } from 'vue';
|
||||
import { reactive } from 'vue';
|
||||
import _ from 'lodash';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
@@ -98,6 +96,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
getLog();
|
||||
|
||||
// 加载更多
|
||||
@@ -110,80 +109,95 @@
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.distribution-log-wrap {
|
||||
width: 690rpx;
|
||||
margin: 0 auto;
|
||||
margin-bottom: 20rpx;
|
||||
border-radius: 12rpx;
|
||||
width: 694rpx;
|
||||
margin: 0 auto 30rpx;
|
||||
background: #ffffff;
|
||||
border-radius: 20rpx;
|
||||
border: 1rpx solid rgba(224, 185, 130, 0.3);
|
||||
box-shadow: 0 6rpx 20rpx rgba(105, 46, 4, 0.05);
|
||||
z-index: 3;
|
||||
position: relative;
|
||||
.header-box {
|
||||
width: 690rpx;
|
||||
height: 76rpx;
|
||||
position: relative;
|
||||
.header-bg {
|
||||
width: 690rpx;
|
||||
height: 76rpx;
|
||||
}
|
||||
.header-title {
|
||||
position: absolute;
|
||||
left: 20rpx;
|
||||
top: 24rpx;
|
||||
overflow: hidden;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.log-header {
|
||||
padding: 22rpx 28rpx 18rpx 28rpx;
|
||||
background: linear-gradient(180deg, #fffcf6 0%, #ffffff 100%);
|
||||
border-bottom: 1rpx solid #f6f0e4;
|
||||
|
||||
.header-left {
|
||||
.title-bar {
|
||||
width: 6rpx;
|
||||
height: 24rpx;
|
||||
border-radius: 4rpx;
|
||||
background: linear-gradient(180deg, #ff6000 0%, #ff9500 100%);
|
||||
margin-right: 12rpx;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
color: #ffffff;
|
||||
line-height: 30rpx;
|
||||
}
|
||||
.cicon-forward {
|
||||
font-size: 30rpx;
|
||||
font-weight: 400;
|
||||
color: #ffffff;
|
||||
line-height: 30rpx;
|
||||
font-size: 26rpx;
|
||||
font-weight: 700;
|
||||
color: #522703;
|
||||
line-height: 32rpx;
|
||||
}
|
||||
}
|
||||
.log-scroll {
|
||||
height: 600rpx;
|
||||
background: #fdfae9;
|
||||
padding: 10rpx 20rpx 0;
|
||||
box-sizing: border-box;
|
||||
border-radius: 0 0 12rpx 12rpx;
|
||||
|
||||
.log-item-box {
|
||||
margin-bottom: 20rpx;
|
||||
.log-time {
|
||||
// margin-left: 30rpx;
|
||||
text-align: right;
|
||||
font-size: 24rpx;
|
||||
font-family: OPPOSANS;
|
||||
font-weight: 400;
|
||||
color: #c4c4c4;
|
||||
}
|
||||
.sub-hint {
|
||||
font-size: 22rpx;
|
||||
color: #b5906a;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
.log-scroll {
|
||||
max-height: 520rpx;
|
||||
background: #ffffff;
|
||||
padding: 8rpx 28rpx 20rpx;
|
||||
box-sizing: border-box;
|
||||
|
||||
.log-item-box {
|
||||
padding: 20rpx 0;
|
||||
border-bottom: 1rpx solid #faf6f0;
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.loadmore-wrap {
|
||||
// line-height: 80rpx;
|
||||
}
|
||||
|
||||
.log-item {
|
||||
// background: rgba(#ffffff, 0.2);
|
||||
border-radius: 24rpx;
|
||||
padding: 6rpx 20rpx 6rpx 12rpx;
|
||||
|
||||
.log-item-left {
|
||||
.log-img {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
border-radius: 50%;
|
||||
margin-right: 10rpx;
|
||||
margin-right: 14rpx;
|
||||
flex-shrink: 0;
|
||||
background: #f5f5f5;
|
||||
}
|
||||
|
||||
.log-text {
|
||||
max-width: 480rpx;
|
||||
font-size: 24rpx;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
font-weight: 500;
|
||||
line-height: 34rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.log-time {
|
||||
font-size: 22rpx;
|
||||
font-family: OPPOSANS, sans-serif;
|
||||
color: #a1a1aa;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.empty-wrap {
|
||||
padding: 60rpx 0;
|
||||
|
||||
.empty-text {
|
||||
font-size: 24rpx;
|
||||
color: #c4c4c4;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
在新工单中引用
屏蔽一个用户