Commit 345489a0 by 李伟康

提交

1 parent a908d46d
...@@ -101,3 +101,7 @@ page { ...@@ -101,3 +101,7 @@ page {
background-color: #fff; background-color: #fff;
} }
} }
.flex{
display: flex;
align-items: center;
}
\ No newline at end of file \ No newline at end of file
...@@ -5,7 +5,100 @@ Page({ ...@@ -5,7 +5,100 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
dateGroups: [
{
date: '2 月 3 日',
stats: {
total: 1,
reviewed: 2,
unreviewed: 2
},
records: [
{
index: 1,
userName: '方先生',
phone: '17083127409',
role: '驻店员工',
reviewStatus: 'reviewed',
reviewText: '已复盘',
brand: 'AITO 问界',
carModel: 'M9',
customerType: '理智型客户',
store: '深圳南山问界 4S 店',
qualityScore: '63',
attackScore: '6.7',
actionBtn: {
text: '查看',
type: 'view'
}
},
{
index: 2,
userName: '黄恩雨',
phone: '18902640418',
role: '赵惠惠',
reviewStatus: 'unreviewed',
reviewText: '未复盘',
brand: 'AITO 问界',
carModel: 'M9',
customerType: '理智型客户',
store: '深圳南山问界 4S 店',
qualityScore: '63',
attackScore: '0.0',
actionBtn: {
text: '录音复盘',
type: 'review'
}
},
{
index: 3,
userName: '武汉市华阳通发发发发发看就看',
phone: '18902640418',
role: '陈和',
reviewStatus: 'unreviewed',
reviewText: '未复盘',
brand: 'AITO 问界',
carModel: 'M9',
customerType: '理智型客户',
store: '深圳南山问界 4S 店',
qualityScore: '90',
attackScore: '未发现',
actionBtn: {
text: '录音复盘',
type: 'review'
}
}
]
},
{
date: '2 月 2 日',
stats: {
total: 0,
reviewed: 2,
unreviewed: 0
},
records: [
{
index: 1,
userName: '方先生',
phone: '17083127409',
role: '驻店员工',
reviewStatus: 'reviewed',
reviewText: '已复盘',
brand: 'AITO 问界',
carModel: 'M9',
customerType: '理智型客户',
store: '深圳南山问界 4S 店',
qualityScore: '63',
attackScore: '6.7',
actionBtn: {
text: '查看',
type: 'view'
}
}
]
}
]
}, },
/** /**
......
{ {
"usingComponents": {} "usingComponents": {},
"navigationBarTitleText": "录音复盘",
"navigationBarBackgroundColor": "#F2F3F7",
"navigationBarTextStyle": "black"
} }
\ No newline at end of file \ No newline at end of file
/* packageIndex/pages/recordingReview/recordingReview.wxss */ /* packageIndex/pages/recordingReview/recordingReview.wxss */
page {
background: #f2f3f7;
}
.container {
padding: 8rpx 24rpx 24rpx 16rpx;
}
// 顶部标题区域
.header {
background: #fff;
border-radius: 16rpx;
padding: 24rpx;
margin-bottom: 24rpx;
.title {
display: flex;
align-items: center;
margin-bottom: 24rpx;
.title-text {
font-size: 28rpx;
font-weight: 500;
color: #222;
line-height: 40rpx;
}
.status-tag {
margin-left: auto;
padding: 0 12rpx;
border-radius: 8rpx;
font-size: 22rpx;
height: 40rpx;
justify-content: center;
&.processing {
background: #fff7e6;
color: #fa8c16;
}
}
}
.subtitle {
font-size: 24rpx;
color: #999;
}
}
// 日期分组
.date-group {
margin-bottom: 32rpx;
.date-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16rpx 0;
margin-bottom: 16rpx;
.date-text {
color: #222222;
font-size: 28rpx;
font-weight: 500;
}
.stats {
display: flex;
gap: 42rpx;
.stat-item {
color: #222222;
font-size: 26rpx;
&.reviewed {
color: #35C376;
}
&.unreviewed {
color: #F24724;
}
}
}
}
}
// 录音记录卡片
.record-block {
padding-left: 36rpx;
position: relative;
padding-bottom: 16rpx;
.line {
position: absolute;
top: 0;
left: 16rpx;
height: 100%;
border-left: 3rpx dashed #D7DBE0;
}
.index-badge-box {
position: absolute;
left: 0;
top: 0;
padding-top: 16rpx;
background-color: #f2f3f7;
.index-badge {
height: 36rpx;
border-radius: 50%;
background: #666666;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
font-size: 24rpx;
padding: 0 8rpx;
}
}
.record-card {
background: #fff;
border-radius: 28rpx;
padding: 32rpx 28rpx;
position: relative;
.fixed-block {
position: absolute;
right: 24rpx;
top: 28rpx;
.user-role {
color: #222222;
font-size: 30rpx;
margin-right: 12rpx;
line-height: 44rpx;
}
.review-status {
padding: 6rpx 12rpx;
border-radius: 6rpx;
font-size: 24rpx;
&.reviewed {
background: #f6ffed;
color: #52c41a;
}
&.unreviewed {
background: #fff1f0;
color: #ff4d4f;
}
}
}
.card-header {
display: flex;
align-items: center;
margin-bottom: 4rpx;
.user-info {
flex: 1;
.user-name {
color: #222222;
font-size: 30rpx;
font-weight: 500;
max-width: 212rpx;
line-height: 44rpx;
}
.user-phone {
font-size: 26rpx;
color: #999;
flex-shrink: 0;
line-height: 40rpx;
margin-left: 12rpx;
}
}
}
.user-tag-box {
gap: 12rpx;
.tag {
padding: 0 8rpx;
border-radius: 4rpx;
color: #999999;
font-size: 22rpx;
border: 2rpx solid #e8ecf0;
}
}
.card-body {
.info-row {
display: flex;
align-items: center;
margin-top: 12rpx;
line-height: 40rpx;
.label {
color: #999999;
font-size: 28rpx;
width: 144rpx;
margin-right: 32rpx;
flex-shrink: 0;
}
.value {
font-size: 28rpx;
color: #222;
line-height: 40rpx;
}
}
}
.card-footer {
display: flex;
justify-content: flex-end;
padding-top: 12rpx;
.action-btn {
display: flex;
align-items: center;
justify-content: center;
border-radius: 28rpx;
font-size: 26rpx;
font-weight: 500;
border: 2rpx solid #2C66F7;
color: #2C66F7;
background: #fff;
margin: 0;
width: 144rpx;
height: 60rpx;
padding: 0;
box-sizing: border-box;
}
.review-btn{
background: #2c66f71a;
border: none;
&::after{
display: none;
}
}
}
}
}
<!--packageIndex/pages/recordingReview/recordingReview.wxml-->
<text>packageIndex/pages/recordingReview/recordingReview.wxml</text>
\ No newline at end of file \ No newline at end of file
<!-- packageIndex/pages/recordingReview/recordingReview.wxml -->
<view class="container">
<!-- 顶部标题区域 -->
<view class="header">
<view class="title flex">
<text class="title-text">录音复盘</text>
<view class="status-tag processing flex">进行中</view>
</view>
<view class="subtitle">请按以下要求提交实战效果录音复盘记录</view>
</view>
<!-- 日期分组列表 -->
<view class="date-group" wx:for="{{dateGroups}}" wx:key="date">
<view class="date-header">
<text class="date-text">{{item.date}}</text>
<view class="stats">
<text class="stat-item">战数 {{item.stats.total}}</text>
<text class="stat-item reviewed">已复盘 {{item.stats.reviewed}}</text>
<text class="stat-item unreviewed">未复盘 {{item.stats.unreviewed}}</text>
</view>
</view>
<!-- 录音记录卡片列表 -->
<block wx:for="{{item.records}}" wx:key="index" wx:for-item="record">
<view class="record-block">
<block wx:if="{{index != item.records.length - 1}}">
<view class="line"></view>
</block>
<view class="index-badge-box">
<view class="index-badge">
{{record.index}}
</view>
</view>
<view class="record-card">
<view class="fixed-block flex">
<view class="user-role">{{record.role}}</view>
<view class="review-status {{record.reviewStatus}}">{{record.reviewText}}</view>
</view>
<view class="card-header">
<view class="user-info flex">
<view class="user-name text-hide">{{record.userName}}</view>
<view class="user-phone">{{record.phone}}</view>
</view>
</view>
<view class="user-tag-box flex">
<text class="tag">{{record.brand}}</text>
<text class="tag">{{record.carModel}}</text>
<text class="tag">{{record.customerType}}</text>
</view>
<view class="card-body">
<view class="info-row">
<text class="label">服务门店</text>
<text class="value">{{record.store}}</text>
</view>
<view class="info-row">
<text class="label">质检评分</text>
<text class="value">{{record.qualityScore}}</text>
</view>
<view class="info-row">
<text class="label">攻防评分</text>
<text class="value">{{record.attackScore}}</text>
</view>
</view>
<view class="card-footer">
<button class="action-btn {{record.actionBtn.type}}-btn">
{{record.actionBtn.text}}
</button>
</view>
</view>
</view>
</block>
</view>
</view>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!