score-card.wxml 1.1 KB

12345678910111213141516171819202122232425
  1. <view class="container" bind:tap="toClickCard">
  2. <view class="card">
  3. <view class="ivlist_title">
  4. <view class="card-title van-ellipsis">{{item.course_name || ''}}</view>
  5. </view>
  6. <view>
  7. <view class="ivlist_subt">兑换后有效天数:
  8. <view class="sub-value">{{item.valid_time || '0'}}天</view>
  9. </view>
  10. <view class="ivlist_subt">积分:
  11. <view class="sub-value2">{{item.score || '0'}}积分</view>
  12. <view wx:if="{{!isComplete}}">
  13. <van-button round color="linear-gradient(45deg, #FF7B60 0%, #FFAD8E 100%)"
  14. custom-class="btn" size="mini" catch:tap="toHandleScore" wx:if="{{item.hasScore}}">兑换课程
  15. </van-button>
  16. <view class="btn2" wx:else>积分不足</view>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. <edu-line/>
  22. <view class="card-img">
  23. <van-image width="188rpx" height="150rpx" fit="cover" radius="10rpx" src="{{item.course_thumbnail}}"/>
  24. </view>
  25. </view>