29 lines
1.3 KiB
Plaintext
29 lines
1.3 KiB
Plaintext
<navigation-bar title="发放优惠券" back="{{true}}" color="#f6efe7" background="#081518"></navigation-bar>
|
|
|
|
<view class="page-shell">
|
|
<view class="page-stack">
|
|
<view class="surface-card" wx:if="{{coupon}}">
|
|
<text class="section-title">{{coupon.couponName}}</text>
|
|
<text class="section-desc">选择用户后批量发放,数量默认 1。移动端只保留高频发放能力,不把 Web 的宽表格搬过来。</text>
|
|
<view class="field-group">
|
|
<text class="field-label">发放数量</text>
|
|
<input class="field-input" type="number" value="{{quantity}}" bindinput="handleQuantityInput"></input>
|
|
</view>
|
|
<view class="field-group">
|
|
<text class="field-label">选择用户</text>
|
|
<checkbox-group bindchange="handleUserCheck">
|
|
<block wx:for="{{users}}" wx:key="id">
|
|
<label class="checkbox-chip {{item.checked ? 'active' : ''}}">
|
|
<checkbox value="{{item.valueId}}" checked="{{item.checked}}" />
|
|
{{item.nickname || item.account}}
|
|
</label>
|
|
</block>
|
|
</checkbox-group>
|
|
</view>
|
|
<view class="action-row">
|
|
<button class="primary-btn" bindtap="handleSubmit">确认发放</button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|