point.wxml 6.0 KB

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