Files
qingcheng-xiaochengxu/pages/dashboardModule/userOrderPerformance/userOrderPerformance.wxml

93 lines
3.0 KiB
Plaintext
Raw Normal View History

2025-08-04 16:31:21 +08:00
<!-- pages/dashboardModule/userOrderPerformance/userOrderPerformance.wxml -->
2025-08-15 00:36:04 +08:00
<view class="page">
<!-- 标题 -->
<view class="page-title">
<text class="title">客户订单明细</text>
</view>
2025-08-04 16:31:21 +08:00
2025-08-15 00:36:04 +08:00
<scroll-view scroll-y class="content no-scrollbar">
<!-- 搜索表单 -->
<view class="card form-card">
<view class="field">
<text class="field-label">订单号</text>
<view class="input-box">
2025-08-04 16:31:21 +08:00
<input
2025-08-15 00:36:04 +08:00
class="input"
2025-08-04 16:31:21 +08:00
placeholder="请输入订单号"
2025-08-15 00:36:04 +08:00
placeholder-class="ph"
value="{{ orderNumber }}"
2025-08-09 01:21:59 +08:00
type="number"
2025-08-04 16:31:21 +08:00
bindinput="onOrderNumberInput"
/>
</view>
</view>
2025-08-15 00:36:04 +08:00
<view class="btn btn-primary" bindtap="searchOrder">搜索</view>
2025-08-04 16:31:21 +08:00
</view>
2025-08-15 00:36:04 +08:00
<!-- 结果列表 -->
<view class="result-wrap">
<!-- 有数据 -->
<block wx:if="{{ OrderItems.length }}">
2025-08-04 16:31:21 +08:00
<view
2025-08-15 00:36:04 +08:00
wx:for="{{ OrderItems }}"
2025-08-04 16:31:21 +08:00
wx:for-item="item"
wx:for-index="index"
wx:key="id"
2025-08-15 00:36:04 +08:00
class="card order-card"
2025-08-04 16:31:21 +08:00
>
2025-08-15 00:36:04 +08:00
<!-- 顶部:订单号 + 状态徽标 -->
<view class="topline">
<view class="row-left">
<text class="label">订单号</text>
<text class="mono">{{ item.orderNumber }}</text>
</view>
<view class="badge {{ item.orderStatus === '待支付' ? 'badge-pending' : (item.orderStatus === '已支付' || item.orderStatus === '交易成功' ? 'badge-success' : 'badge-default') }}">
<text class="badge-text">{{ item.orderStatus }}</text>
</view>
2025-08-04 16:31:21 +08:00
</view>
2025-08-15 00:36:04 +08:00
<!-- 键值对信息 -->
<view class="kv">
<text class="kv-key">用户</text>
<text class="kv-val">{{ item.nickName }}</text>
2025-08-04 16:31:21 +08:00
</view>
2025-08-15 00:36:04 +08:00
<view class="kv">
<text class="kv-key">手机号</text>
<text class="kv-val">{{ item.phoneNumber }}</text>
2025-08-04 16:31:21 +08:00
</view>
2025-08-15 00:36:04 +08:00
<view class="kv">
<text class="kv-key">金额</text>
<text class="kv-val money">¥{{ item.totalAmount }}</text>
2025-08-04 16:31:21 +08:00
</view>
2025-08-15 00:36:04 +08:00
<view class="kv">
<text class="kv-key">抽成</text>
<text class="kv-val">主管:{{ item.firstRate * 100 }}%,员工:{{ item.secondRate * 100 }}%</text>
2025-08-04 16:31:21 +08:00
</view>
2025-08-15 00:36:04 +08:00
<view class="kv">
<text class="kv-key">奖励</text>
<text class="kv-val">主管:¥{{ item.firstReward }},员工:¥{{ item.secondReward }}</text>
2025-08-04 16:31:21 +08:00
</view>
2025-08-15 00:36:04 +08:00
<view class="kv">
<text class="kv-key">提成状态</text>
<text class="kv-val">{{ item.commissionStatus }}</text>
2025-08-04 16:31:21 +08:00
</view>
</view>
</block>
2025-08-15 00:36:04 +08:00
<!-- 无数据 -->
2025-08-04 16:31:21 +08:00
<block wx:else>
2025-08-15 00:36:04 +08:00
<view class="empty">
<image class="empty-img" src="/assets/empty-list.png" mode="aspectFit" />
<text class="empty-text">暂无数据</text>
</view>
2025-08-04 16:31:21 +08:00
</block>
</view>
2025-08-15 00:36:04 +08:00
</scroll-view>
2025-08-04 16:31:21 +08:00
</view>