c6206787da
项目结构: - backend/ Python FastAPI 后端 - uni-app/ uni-app跨端前端 - docs/ 设计文档 - docker-compose.yml Docker编排 - nginx/scripts/systemd 运维配置 已完成功能: - 用户认证 (JWT) - 智能翻译 + 回复建议 - 营销素材生成 - 客户管理 + 沉默检测 - 报价单管理 - 产品库管理 - 汇率换算 - 推送通知 (uni-push) - WhatsApp Webhook框架 - Celery定时任务
68 lines
2.6 KiB
Plaintext
68 lines
2.6 KiB
Plaintext
<view class="container">
|
|
<view class="header">
|
|
<text class="section-title">客户列表</text>
|
|
<button class="add-btn" bindtap="showAdd">+ 添加客户</button>
|
|
</view>
|
|
|
|
<view class="customer-list">
|
|
<view class="customer-item" wx:for="{{customers}}" wx:key="id" bindtap="viewDetail" data-id="{{item.id}}">
|
|
<view class="customer-info">
|
|
<view class="customer-name">{{item.name}}</view>
|
|
<view class="customer-meta">
|
|
{{item.company}} {{item.country ? '· ' + item.country : ''}}
|
|
</view>
|
|
<view class="customer-meta" wx:if="{{item.last_contact_at}}">
|
|
最后联系: {{item.last_contact_at}}
|
|
</view>
|
|
</view>
|
|
<view class="customer-status status-{{item.status}}">
|
|
{{item.status === 'lead' ? '潜在' : item.status === 'negotiating' ? '谈判中' : '已成交'}}
|
|
</view>
|
|
</view>
|
|
|
|
<view class="empty" wx:if="{{customers.length === 0 && !loading}}">
|
|
<text>暂无客户,点击上方添加</text>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="modal" wx:if="{{showAddModal}}" bindtap="hideAdd">
|
|
<view class="modal-content" catchtap>
|
|
<view class="modal-title">添加客户</view>
|
|
|
|
<view class="form-group">
|
|
<text class="form-label">姓名 *</text>
|
|
<input class="form-input" placeholder="客户姓名" data-field="name" bindinput="onInput" />
|
|
</view>
|
|
|
|
<view class="form-group">
|
|
<text class="form-label">公司</text>
|
|
<input class="form-input" placeholder="公司名称" data-field="company" bindinput="onInput" />
|
|
</view>
|
|
|
|
<view class="form-group">
|
|
<text class="form-label">国家</text>
|
|
<input class="form-input" placeholder="如:美国、德国" data-field="country" bindinput="onInput" />
|
|
</view>
|
|
|
|
<view class="form-group">
|
|
<text class="form-label">电话</text>
|
|
<input class="form-input" placeholder="手机号" data-field="phone" bindinput="onInput" />
|
|
</view>
|
|
|
|
<view class="form-group">
|
|
<text class="form-label">WhatsApp</text>
|
|
<input class="form-input" placeholder="WhatsApp ID" data-field="whatsapp_id" bindinput="onInput" />
|
|
</view>
|
|
|
|
<view class="form-group">
|
|
<text class="form-label">邮箱</text>
|
|
<input class="form-input" placeholder="邮箱地址" data-field="email" bindinput="onInput" />
|
|
</view>
|
|
|
|
<view class="modal-btns">
|
|
<view class="modal-btn btn-cancel" bindtap="hideAdd">取消</view>
|
|
<view class="modal-btn btn-confirm" bindtap="addCustomer">确定</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view> |