调整周视图和客户页展示样式
This commit is contained in:
@@ -1,9 +1,27 @@
|
||||
<view class="page">
|
||||
<view class="customer-toolbar">
|
||||
<view class="search-card card">
|
||||
<input value="{{keyword}}" bindinput="onSearchInput" placeholder="搜索客户姓名或手机号" />
|
||||
<view class="page customer-page">
|
||||
<view class="customer-header">
|
||||
<text class="customer-title">客户</text>
|
||||
<button class="compact-btn customer-edit-btn" bindtap="addCustomer">编辑</button>
|
||||
</view>
|
||||
|
||||
<view class="search-card card">
|
||||
<text class="search-icon">⌕</text>
|
||||
<input value="{{keyword}}" bindinput="onSearchInput" placeholder="搜索客户姓名或手机号" />
|
||||
</view>
|
||||
|
||||
<view class="customer-stats card">
|
||||
<view class="customer-stat">
|
||||
<text class="customer-stat-value">{{customerStats.todayArrival}}</text>
|
||||
<text class="customer-stat-label">今日到店</text>
|
||||
</view>
|
||||
<view class="customer-stat">
|
||||
<text class="customer-stat-value">¥{{customerStats.monthAmount}}</text>
|
||||
<text class="customer-stat-label">本月消费</text>
|
||||
</view>
|
||||
<view class="customer-stat">
|
||||
<text class="customer-stat-value">{{customerStats.memberCount}}</text>
|
||||
<text class="customer-stat-label">会员人数</text>
|
||||
</view>
|
||||
<button class="compact-btn add-customer-btn" bindtap="addCustomer">+</button>
|
||||
</view>
|
||||
|
||||
<view class="list section">
|
||||
@@ -13,16 +31,20 @@
|
||||
</view>
|
||||
<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 class="customer-identity">
|
||||
<view class="customer-avatar">{{item.shortName}}</view>
|
||||
<view class="customer-copy">
|
||||
<view class="customer-name-row">
|
||||
<text class="name">{{item.name}}</text>
|
||||
<text class="customer-status">已建档</text>
|
||||
</view>
|
||||
<text class="meta">{{item.phone}}</text>
|
||||
<text class="meta">最近消费 {{item.lastTime}}</text>
|
||||
<view class="customer-avatar-wrap">
|
||||
<image class="customer-avatar-image" src="{{item.avatar}}" mode="aspectFill"></image>
|
||||
<view class="customer-online-dot"></view>
|
||||
</view>
|
||||
<view class="customer-copy">
|
||||
<view class="customer-name-row">
|
||||
<text class="name">{{item.name}}</text>
|
||||
<text class="customer-status">{{item.tagText}}</text>
|
||||
</view>
|
||||
<view class="customer-detail-row">
|
||||
<text class="meta-label">最近消费</text>
|
||||
<text class="amount">¥{{item.amountText}}</text>
|
||||
</view>
|
||||
<text class="meta">最近到店 {{item.lastDateText}}</text>
|
||||
</view>
|
||||
<text class="arrow">›</text>
|
||||
</view>
|
||||
@@ -32,7 +54,7 @@
|
||||
<view class="customer-modal" catchtap="stopTap">
|
||||
<view class="modal-head">
|
||||
<text class="modal-title">新增客户</text>
|
||||
<view class="modal-close" bindtap="closeCreateModal">×</view>
|
||||
<view class="modal-close" bindtap="closeCreateModal"></view>
|
||||
</view>
|
||||
<view class="form-grid">
|
||||
<view class="modal-field">
|
||||
|
||||
Reference in New Issue
Block a user