score.wxml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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="btn-group">
  7. <view class="btn btn-t">
  8. <view class="score-btn-bg" bind:tap="toDetail">积分明细</view>
  9. <van-image width="48rpx" height="48rpx" fit="cover" src="/images/ic_score_tag.png" class="score-bg-tag" />
  10. </view>
  11. <view class="btn btn-b">
  12. <view class="score-btn-bg" bind:tap="toRule">积分规则</view>
  13. <van-image width="48rpx" height="48rpx" fit="cover" src="/images/ic_rule_tag.png" class="score-bg-tag" />
  14. </view>
  15. </view>
  16. </view>
  17. <view class="score-item" wx:for="{{scoreInfos}}" wx:key="index">
  18. <view class="score-left">
  19. {{item.itemName || ''}}({{item.teamName || ''}})
  20. </view>
  21. <view class="score-right">
  22. {{item.surplusValue || '0'}}分
  23. </view>
  24. </view>
  25. </view>
  26. <view class="card1">
  27. <view class="score-course-img">
  28. <van-image width="256rpx" height="35rpx" fit="cover" src="/images/ic_score_course.png" />
  29. </view>
  30. <van-tabs active="{{ active }}" bind:change="onChange" line-width="60rpx" line-height="5rpx" color='#FF4330' title-active-color="#FF4330" title-inactive-color="#666" sticky border="{{true}}">
  31. <van-tab title="{{item}}" wx:for="{{ ['兑换课程','已兑换课程']}}" wx:key="index">
  32. <edu-loadmore isEmpty="{{rows.length == 0}}" isRefresh="{{isRefresh}}" isLoading="{{isLoading}}" isComplete="{{noMore}}">
  33. <score-card wx:for="{{rows}}" wx:key="index" bind:score='toNewsDetail' item="{{score}}" isComplete="{{isComplete}}" wx:for-item="score" bind:card="toVideo"></score-card>
  34. </edu-loadmore>
  35. </van-tab>
  36. </van-tabs>
  37. <score-pop show="{{show}}" item="{{item}}" scoreInfos="{{scoreInfos}}" bind:pay="pay" />
  38. </view>
  39. </view>