特易招,招聘小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

160 lines
2.8 KiB

6 months ago
  1. <template>
  2. <!-- 积分记录 -->
  3. <view class="IntegralRecord">
  4. <navbar :title="title" leftClick @leftClick="leftClick" />
  5. <view class="const">
  6. <view class="number">
  7. 当前积分
  8. <view>
  9. 0
  10. </view>
  11. </view>
  12. <view class="bottom">
  13. <view>
  14. 正式积分0
  15. </view>
  16. <view>
  17. 临时积分0
  18. </view>
  19. </view>
  20. </view>
  21. <view class="">
  22. <uv-tabs :list="tabs"
  23. lineColor="#3796F8"
  24. lineHeight="8rpx"
  25. lineWidth="50rpx"
  26. @click="clickTabs"></uv-tabs>
  27. </view>
  28. <view class="tab-box">
  29. <view class="tab-box1" v-if="agentFlow && agentFlow.total">
  30. <uv-cell center border :title="item.title"
  31. v-for="(item, index) in agentFlow.records"
  32. :value="x[item.type] + item.money" :label="item.createTime" />
  33. </view>
  34. <view
  35. style="padding: 100rpx 0;"
  36. v-else>
  37. <uv-empty
  38. mode="history"
  39. textSize="28rpx"
  40. iconSize="100rpx"/>
  41. </view>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. export default {
  47. data() {
  48. return {
  49. title : '积分记录',
  50. agentFlow : {
  51. total : 0,
  52. records : [
  53. {
  54. type : 0,
  55. money : 100,
  56. createTime : '2024-04-02 20:00',
  57. title : "佣金提现",
  58. },
  59. {
  60. type : 0,
  61. money : 100,
  62. createTime : '2024-04-02 20:00',
  63. title : "佣金提现",
  64. },
  65. {
  66. type : 0,
  67. money : 100,
  68. createTime : '2024-04-02 20:00',
  69. title : "佣金提现",
  70. },
  71. ]
  72. },
  73. x : ['+', '-' , '-' , '+'],
  74. status : 0,
  75. tabs: [
  76. {
  77. name: '收入'
  78. },
  79. {
  80. name: '消耗'
  81. },
  82. ],
  83. type : 0,
  84. }
  85. },
  86. onLoad(e) {
  87. this.status = e.status
  88. },
  89. methods: {
  90. leftClick() { //返回钱包
  91. uni.navigateBack(-1)
  92. },
  93. getAgentFlow(){ //获取流水记录
  94. let type = this.status;
  95. this.$api('getAgentFlow', { type }, res => {
  96. if(res.code == 200){
  97. this.agentFlow = res.result
  98. }
  99. })
  100. },
  101. clickTabs({index}) {
  102. this.type = index
  103. },
  104. }
  105. }
  106. </script>
  107. <style lang="scss" scoped>
  108. .IntegralRecord{
  109. width: 750rpx;
  110. background: #fff;
  111. margin: 0 auto;
  112. min-height: 100vh;
  113. .const{
  114. display: flex;
  115. flex-direction: column;
  116. margin: 40rpx 20rpx;
  117. box-shadow: 0 0 6rpx 6rpx #00000011;
  118. border-radius: 20rpx;
  119. overflow: hidden;
  120. .number{
  121. display: flex;
  122. flex-direction: column;
  123. justify-content: center;
  124. align-items: center;
  125. padding: 40rpx;
  126. background-color: $uni-color;
  127. color: #fff;
  128. view{
  129. font-size: 40rpx;
  130. font-weight: 900;
  131. }
  132. }
  133. .bottom{
  134. color: $uni-color;
  135. display: flex;
  136. view{
  137. flex: 1;
  138. display: flex;
  139. justify-content: center;
  140. align-items: center;
  141. padding: 20rpx;
  142. }
  143. view:nth-child(1){
  144. border-right: 1rpx solid $uni-color;
  145. }
  146. }
  147. }
  148. .tab-box{
  149. margin: 20rpx;
  150. background-color: #fff;
  151. border-radius: 20rpx;
  152. overflow: hidden;
  153. }
  154. }
  155. </style>