score.wxml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <view class="container">
  2. <view class="card">
  3. <view class="top-img">
  4. <van-image width="700rpx" height="143rpx" fit="cover" src="/images/ic_score_bg.png" class="score-bg-img"/>
  5. <view class="score-tip">我的积分{{scoreInfos.length == 0 ? "(暂无积分)" : ""}}</view>
  6. <view class="score-btn-bg" bind:tap="toDetail">积分明细</view>
  7. <van-image width="48rpx" height="48rpx" fit="cover" src="/images/ic_score_tag.png" class="score-bg-tag"/>
  8. </view>
  9. <view class="score-item" wx:for="{{scoreInfos}}" wx:key="index">
  10. <view class="score-left">
  11. {{item.itemName || ''}}({{item.teamName || ''}})
  12. </view>
  13. <view class="score-right">
  14. {{item.surplusValue || '0'}}
  15. </view>
  16. </view>
  17. </view>
  18. <view class="card">
  19. <view class="score-course-img">
  20. <van-image width="256rpx" height="35rpx" fit="cover" src="/images/ic_score_course.png"/>
  21. </view>
  22. <van-tabs active="{{ active }}" bind:change="onChange" line-width="60rpx" line-height="5rpx" color='#FF4330'
  23. title-active-color="#FF4330" title-inactive-color="#666" sticky border="{{true}}">
  24. <van-tab title="{{item}}" wx:for="{{ ['兑换课程','已兑换课程']}}" wx:key="index">
  25. <edu-loadmore isEmpty="{{rows.length == 0}}" isRefresh="{{isRefresh}}" isLoading="{{isLoading}}"
  26. isComplete="{{noMore}}">
  27. <score-card wx:for="{{rows}}" wx:key="index" bind:score='toNewsDetail' item="{{score}}"
  28. isComplete="{{isComplete}}" wx:for-item="score"
  29. bind:card="toVideo"></score-card>
  30. </edu-loadmore>
  31. </van-tab>
  32. </van-tabs>
  33. <score-pop show="{{show}}" item="{{item}}" scoreInfos="{{scoreInfos}}" bind:pay="pay"/>
  34. </view>
  35. </view>