重构项目文件夹目录
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<navigation-bar title="优惠券管理" back="{{true}}" color="#f6efe7" background="#081518"></navigation-bar>
|
||||
|
||||
<view class="page-shell">
|
||||
<view class="page-stack">
|
||||
<view class="surface-card">
|
||||
<text class="section-title">优惠券列表</text>
|
||||
<text class="section-desc">普通券、VIP 自动券都在这里维护;发放动作单独收口到移动端发放页,避免一屏塞太多字段。</text>
|
||||
</view>
|
||||
|
||||
<block wx:for="{{list}}" wx:key="id">
|
||||
<view class="list-card">
|
||||
<view class="list-head">
|
||||
<view>
|
||||
<text class="list-title">{{item.couponName}}</text>
|
||||
<text class="list-subtitle">{{item.displayShopName}} · {{item.displayTypeText}}</text>
|
||||
</view>
|
||||
<text class="badge">{{item.displayValueText}}</text>
|
||||
</view>
|
||||
<view class="meta-grid">
|
||||
<view class="meta-item">
|
||||
<text class="meta-label">可用时间</text>
|
||||
<text class="meta-value">{{item.startTime}} ~ {{item.endTime}}</text>
|
||||
</view>
|
||||
<view class="meta-item">
|
||||
<text class="meta-label">剩余数量</text>
|
||||
<text class="meta-value">{{item.remainingCount || item.totalCount || '--'}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="list-actions">
|
||||
<view class="mini-btn" data-coupon="{{item}}" bindtap="handleDistribute">发放</view>
|
||||
<view class="mini-btn primary" data-coupon="{{item}}" bindtap="handleEdit">编辑</view>
|
||||
<view class="mini-btn danger" data-coupon="{{item}}" bindtap="handleDelete">删除</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<view wx:if="{{!list.length}}" class="empty-state">
|
||||
<text class="empty-title">暂无优惠券</text>
|
||||
<text class="empty-desc">可以先创建普通券,也可以为每家店铺维护自己的 VIP 自动券模板。</text>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{canCreate}}" class="fab" bindtap="handleCreate">+</view>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user