适配微信小程序
This commit is contained in:
@@ -79,6 +79,10 @@
|
||||
<text>服务中</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="service-title" v-if="item.title">
|
||||
<text class="service-title__text">{{ item.title }}</text>
|
||||
</view>
|
||||
|
||||
<view class="customer-info">
|
||||
<text class="customer-name">客户:{{ item.customerName || '未知客户' }}</text>
|
||||
@@ -540,6 +544,11 @@ export default {
|
||||
if (record.projectName) {
|
||||
tags.push({ text: `项目:${record.projectName}`, color: 'blue' });
|
||||
}
|
||||
|
||||
const title =
|
||||
firstNonEmptyString(record.recordingName) ||
|
||||
(firstNonEmptyString(record.customerName) ? `${String(record.customerName).trim()}的接待记录` : '') ||
|
||||
'';
|
||||
|
||||
return {
|
||||
id: record.id || '',
|
||||
@@ -549,6 +558,7 @@ export default {
|
||||
customerPhone: record.customerPhone || '',
|
||||
customerId: record.customerId || '',
|
||||
recordingName: record.recordingName || '',
|
||||
title,
|
||||
remarks: record.remarks || '',
|
||||
tags,
|
||||
durationText: formattedCreateTime ? `开始时间:${formattedCreateTime}` : '暂无开始时间'
|
||||
@@ -1012,11 +1022,16 @@ export default {
|
||||
<style scoped>
|
||||
/* 最外层容器 */
|
||||
.service-status-list {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background-color: #F5F5F5;
|
||||
padding: 24rpx 16rpx 0 16rpx;
|
||||
box-sizing: border-box;
|
||||
/* #ifndef MP-WEIXIN */
|
||||
height: 100%;
|
||||
/* #endif */
|
||||
/* #ifdef MP-WEIXIN */
|
||||
height: 100%;
|
||||
/* #endif */
|
||||
}
|
||||
|
||||
.service-status-toolbar {
|
||||
@@ -1103,6 +1118,21 @@ export default {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.service-title {
|
||||
margin-top: 16rpx;
|
||||
margin-bottom: 8rpx;
|
||||
}
|
||||
|
||||
.service-title__text {
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
color: #111827;
|
||||
display: block;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.staff-info {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user