小程序页面的一些优化
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user