point.wxml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <view class=' toppoint_view' >
  2. <view class='commonHview'>
  3. <view class='header_left_view' bindtap='btnClick' id='{{idAddPoint}}'>
  4. <image src='../../img/add_point.png' class='im_sty1'></image>
  5. <text class='add_text_sty'>加分单</text>
  6. </view>
  7. <view style='width:6rpx;height:50rpx;background-color:#F2F2F2;margin-top:10rpx;'></view>
  8. <view class='header_left_view' bindtap='btnClick' id='{{idMinusPoint}}' >
  9. <image src='../../img/minus_point.png' class='im_sty1'></image>
  10. <text class='minus_text_sty'>减分单</text>
  11. </view>
  12. </view>
  13. <view class='commonhline' style='height:20rpx;'></view>
  14. <view class="swiper-tab" >
  15. <view class="swiper-tab-list {{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="swichNav">加分记录</view>
  16. <view class="swiper-tab-list {{currentTab==1 ? 'on' : ''}}" data-current="1" bindtap="swichNav">扣分记录</view>
  17. <view class="swiper-tab-list {{currentTab==2 ? 'on' : ''}}" data-current="2" bindtap="swichNav">积分排名</view>
  18. </view>
  19. </view>
  20. <view wx:if='{{(currentTab == 0 && addList.length == 0) || (currentTab == 1 && minusList.length == 0) || (currentTab == 2 && points_rank.all_points.length == 0)}}' class='nodata_view'>
  21. <view><image class='nodata_style' src='../../img/common_nodata.png'></image></view>
  22. </view>
  23. <swiper current="{{currentTab}}" class="swiper-box" duWration="300" bindchange="bindChange"
  24. style="height:{{winHeight-31}}px;margin:185rpx 0 0 0;">
  25. <swiper-item>
  26. <scroll-view scroll-y="true" >
  27. <view wx:for='{{addList}}' bindtap='addListClick' data-item='{{item}}' >
  28. <template is='addPointTem' data='{{...item}}' />
  29. </view>
  30. </scroll-view>
  31. </swiper-item>
  32. <swiper-item>
  33. <scroll-view scroll-y="true">
  34. <view wx:for='{{minusList}}' bindtap='minusListClick' data-item='{{item}}' >
  35. <template is='minusPointTem' data='{{...item}}'/>
  36. </view>
  37. </scroll-view>
  38. </swiper-item>
  39. <swiper-item >
  40. <scroll-view scroll-y="true" >
  41. <view class='commonHview' style='background-color:#B1F4AE;height:100rpx;' wx:if='{{points_rank.my_rank}}'>
  42. <view style='color:#333333;font-size:30rpx;text-align:left;margin:25rpx;width:50%;'>当前排名:{{points_rank.my_rank.rank}}</view>
  43. <view style='color:#666666;font-size:30rpx;text-align:right;margin:25rpx;width:50%;'>{{points_rank.my_rank.point}} 积分</view>
  44. </view>
  45. <block wx:for='{{points_rank.all_points}}'>
  46. <view class='commonHview' style='height:100rpx;'>
  47. <view wx:if='{{index == 0}}' style='color:#F60000;font-size:30rpx;text-align:left;margin:25rpx;width:50%;' >{{index+1}} <text style='color:#333333'>{{item.name}}</text></view>
  48. <view wx:elif='{{index == 1}}' style='color:#FF9700;font-size:30rpx;text-align:left;margin:25rpx;width:50%;' >{{index+1}} <text style='color:#333333'>{{item.name}}</text></view>
  49. <view wx:elif='{{index == 2}}' style='color:#09C44D;font-size:30rpx;text-align:left;margin:25rpx;width:50%;' >{{index+1}} <text style='color:#333333'>{{item.name}}</text></view>
  50. <view wx:else style='color:#666666;font-size:30rpx;text-align:left;margin:25rpx;width:50%;' >{{index+1}} {{item.name}}</view>
  51. <view style='color:#666666;font-size:30rpx;text-align:right;margin:25rpx;width:50%;'>{{item.point}} 积分</view>
  52. </view>
  53. <view class='commonhline' style='height:3rpx;'></view>
  54. </block>
  55. </scroll-view>
  56. </swiper-item>
  57. </swiper>
  58. <template name='addPointTem'>
  59. <view class='commonHview' >
  60. <view class='add_item_left_sty'>
  61. <view style='color:#333333;font-size:30rpx;overflow:hidden; text-overflow:ellipsis;white-space:nowrap;'>{{categoryName}}</view>
  62. <view style='color:#20AB41;font-size:30rpx;margin-top:20rpx;'>{{score}}</view>
  63. </view>
  64. <view class='add_item_right_sty'>
  65. <view wx:if='{{invoicesStatus==1}}' style='color:#666666;font-size:26rpx;' >待通过</view>
  66. <view wx:elif='{{invoicesStatus==2}}' style='color:#666666;font-size:26rpx;' >已通过</view>
  67. <view wx:elif='{{invoicesStatus==3}}' style='color:#666666;font-size:26rpx;' >不通过</view>
  68. <view style='color:#666666;font-size:26rpx;margin-top:20rpx;'>{{invoicesDate}}</view>
  69. </view>
  70. </view>
  71. <view class='commonhline' style='height:3rpx;'></view>
  72. </template>
  73. <template name='minusPointTem'>
  74. <view class='commonHview' >
  75. <view class='add_item_left_sty'>
  76. <view style='color:#333333;font-size:30rpx;overflow:hidden; text-overflow:ellipsis;white-space:nowrap;'>{{categoryName}}</view>
  77. <view style='color:#CB0404;font-size:30rpx;margin-top:20rpx;'>{{score}}</view>
  78. </view>
  79. <view class='add_item_right_sty'>
  80. <view style='color:#666666;font-size:26rpx;'>扣分人:{{fillName}}</view>
  81. <view style='color:#666666;font-size:26rpx;margin-top:20rpx;'>{{invoicesDate}}</view>
  82. </view>
  83. </view>
  84. <view class='commonhline' style='height:3rpx;'></view>
  85. </template>
  86. <template name='pointRankTem'>
  87. <view class='commonHview' style='height:100rpx;'>
  88. <view style='color:#333333;font-size:30rpx;text-align:left;margin:25rpx;width:50%;'>{{index}}.吴彦祖</view>
  89. <view style='color:#666666;font-size:30rpx;text-align:right;margin:25rpx;width:50%;'>520131 积分</view>
  90. </view>
  91. <view class='commonhline' style='height:3rpx;'></view>
  92. </template>
  93. <!-- <template name='ordertep'>
  94. <view class='commonHview itemRow' >
  95. <view><image src='../../img/common_header_boy.png' class='img1'></image></view>
  96. <view class='commonVview itemMsg'>
  97. <view style='font-size:28rpx;'>西红柿</view>
  98. <view style='color:#999999;font-size:24rpx;line-height:40rpx;'>1斤</view>
  99. <view style='color:#999999;font-size:24rpx;'>实付款<text style='color:#FF0000;'>¥28</text></view>
  100. </view>
  101. <view class='itemStatue_finish'>已完成</view>
  102. </view>
  103. <view class='commonhline' style='height:3rpx;'></view>
  104. </template> -->