80 lines
3.2 KiB
Plaintext
80 lines
3.2 KiB
Plaintext
<!--pages/customer/score/exchange.wxml 20250624 -->
|
|
<view class="container">
|
|
|
|
<!-- 日期选择区域 -->
|
|
<view class="date-section">
|
|
<view class="date-picker">
|
|
<picker mode="date" value="{{startDate}}" bindchange="onStartDateChange">
|
|
<view class="date-input bg-f8 ulib-r750 font-24">
|
|
<text class="date-icon font-20 mr5" style="filter: grayscale(100%);">📅</text>
|
|
<text class="date-text">{{startDate || '请选择开始时间'}}</text>
|
|
</view>
|
|
</picker>
|
|
<text class="date-separator">-</text>
|
|
<picker mode="date" value="{{endDate}}" bindchange="onEndDateChange">
|
|
<view class="date-input bg-f8 ulib-r750 font-24">
|
|
<text class="date-icon font-20 mr5" style="filter: grayscale(100%);">📅</text>
|
|
<text class="date-text">{{endDate || '请选择结束时间'}}</text>
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
<view class="btn bg-36afa2 color-fff font-26 ulib-r750 pl40 pr40 pt10 pb10" bindtap="onSearch">
|
|
<text>搜索</text>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 订单列表 -->
|
|
<view class="order-list">
|
|
<view class="order-item" wx:for="{{list}}" wx:key="id">
|
|
<!-- 订单编号和详情按钮 -->
|
|
<view class="order-header font-26 color-36afa2 pt20 pb20 pl30 pr30" bindtap="pushLink" data-url="/pages/order/detail/index2?id={{item.order_id}}">
|
|
<text class="order-number">订单编号 {{item.order_sid}}</text>
|
|
<view class="order-detail-btn" bindtap="viewOrderDetail" data-id="{{item.order_id}}">
|
|
<text>订单详情 ></text>
|
|
</view>
|
|
</view>
|
|
<view class="inner30">
|
|
<!-- 客户信息 -->
|
|
<view class="customer-info">
|
|
<text class="customer-name">{{item.name}}</text>
|
|
<text class="customer-phone">({{item.mobile}})</text>
|
|
<view class="points-info" wx:if="{{item.points}}">
|
|
<text class="points-label">消耗积分:</text>
|
|
<text class="points-value">{{item.points}}</text>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 优惠券信息 -->
|
|
<view class="coupon-card">
|
|
<view class="coupon-left text-center">
|
|
<view >
|
|
<text class="coupon-amount">{{item.price}}</text>
|
|
<text class="coupon-unit">元</text>
|
|
</view>
|
|
<view class="coupon-rules mt10 font-22" bindtap="viewCouponRules">
|
|
<text>使用规则 ></text>
|
|
</view>
|
|
</view>
|
|
<view class="coupon-divider"></view>
|
|
<view class="coupon-right">
|
|
<text class="coupon-title text-italic text-bold">
|
|
<text>{{item.type_cn}}</text><text style="color:#f84803;">{{item.red_type_cn}}</text></text>
|
|
<text class="coupon-validity font-22">时限 {{item.timeStart}}-{{item.timeEnd}}</text>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 下单时间 -->
|
|
<view class="order-time font-24 color-666">
|
|
<text>核销时间: {{item.use_time}}</text>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
<lcb-listmore isLoading='{{loading}}' isEnd='{{end}}' isNoData='{{noData}}'></lcb-listmore>
|
|
</view>
|
|
|
|
<!-- 空状态 -->
|
|
<view class="empty-state" wx:if="{{orderList.length === 0}}">
|
|
<text>暂无核销记录</text>
|
|
</view>
|
|
</view> |