merge.wxml 593 B

123456789101112131415
  1. <van-empty wx:if="{{ !mergeCouponsRules }}" description="暂无合成规则" />
  2. <van-cell-group wx:for="{{mergeCouponsRules}}" wx:key="id" title="{{ item.name }}">
  3. <van-cell
  4. wx:for="{{item.rules}}"
  5. wx:for-item="rule"
  6. wx:key="id"
  7. icon="{{ rule.type == 0 ? 'delete' : 'share-o' }}"
  8. title="{{ rule.typeStr }}"
  9. label="优惠券:{{ rule.couponName }}"
  10. value="{{rule.number}} 张"
  11. />
  12. <view class="block-btn">
  13. <van-button type="primary" block data-idx="{{ index }}" loading="{{ loading }}" bind:click="merge">立即合成</van-button>
  14. </view>
  15. </van-cell-group>