growth.wxml 801 B

1234567891011121314151617181920
  1. <view class="score">
  2. <view>当前可用积分</view>
  3. <view>{{score}}</view>
  4. </view>
  5. <view class="container">
  6. <form bindsubmit="bindSave">
  7. <view class="form-box">
  8. <view class="row-wrap">
  9. <view class="label">兑换积分</view>
  10. <view class="label-right">
  11. <input name="score" class="input" type="text" placeholder="你希望用多少积分来兑换成长值" />
  12. </view>
  13. </view>
  14. </view>
  15. <button type="warn" class="save-btn" formType="submit">立即兑换</button>
  16. </form>
  17. </view>
  18. <van-cell-group wx:if="{{deductionRules}}" title="兑换规则:">
  19. <van-cell wx:for="{{deductionRules}}" wx:key="id" title="获得 {{ item.money }} 成长值" value="{{ item.loop? '每满': '满' }} {{ item.score }} 积分即可兑换" />
  20. </van-cell-group>