小程序页面的一些优化
自动发布开发环境 Nacos 配置 / publish (push) Successful in 25s
环境分支晋级检查 / environment-promotion-source (pull_request_target) Successful in 10s

This commit is contained in:
2026-11-07 01:10:02 +08:00
parent 71ddf0210c
commit 3d73ac7db7
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -36,8 +36,8 @@ Page({
customers: list.map(item => ({
id: item.id,
name: item.nickname || item.name || item.account || '客户',
phone: item.contactPhone || item.phone || '未填写',
lastTime: item.lastOrderTime || item.lastConsumeTime || '-'
phone: item.contactPhone || item.phone || '未填写联系电话',
lastTime: item.lastOrderTime || item.lastConsumeTime || '暂无消费记录'
}))
})
} catch (error) {
+3 -3
View File
@@ -14,9 +14,9 @@
<view wx:elif="{{customers.length === 0}}" class="empty card">暂无客户</view>
<view wx:for="{{customers}}" wx:key="id" class="card list-card customer-card" data-id="{{item.id}}" bindtap="openDetail">
<view>
<text class="name">{{item.name}}</text>
<text class="meta">{{item.phone}}</text>
<text class="meta">最近消费 {{item.lastTime}}</text>
<text class="name">姓名: {{item.name}}</text>
<text class="meta">联系电话: {{item.phone}}</text>
<text class="meta">最近消费: {{item.lastTime}}</text>
</view>
<text class="arrow">›</text>
</view>