特易招,招聘小程序
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.

163 lines
2.9 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year 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. import mixinList from '@/mixins/list.js'
  47. export default {
  48. mixins : [mixinList],
  49. data() {
  50. return {
  51. title : '积分记录',
  52. agentFlow : {
  53. total : 0,
  54. records : [
  55. {
  56. type : 0,
  57. money : 100,
  58. createTime : '2024-04-02 20:00',
  59. title : "佣金提现",
  60. },
  61. {
  62. type : 0,
  63. money : 100,
  64. createTime : '2024-04-02 20:00',
  65. title : "佣金提现",
  66. },
  67. {
  68. type : 0,
  69. money : 100,
  70. createTime : '2024-04-02 20:00',
  71. title : "佣金提现",
  72. },
  73. ]
  74. },
  75. x : ['+', '-' , '-' , '+'],
  76. status : 0,
  77. tabs: [
  78. {
  79. name: '收入'
  80. },
  81. {
  82. name: '消耗'
  83. },
  84. ],
  85. type : 0,
  86. mixinsListApi : 'commonQueryScore',
  87. }
  88. },
  89. onLoad(e) {
  90. this.status = e.status
  91. },
  92. methods: {
  93. leftClick() { //返回钱包
  94. uni.navigateBack(-1)
  95. },
  96. getAgentFlow(){ //获取流水记录
  97. let type = this.status;
  98. this.$api('getAgentFlow', { type }, res => {
  99. if(res.code == 200){
  100. this.agentFlow = res.result
  101. }
  102. })
  103. },
  104. clickTabs({index}) {
  105. this.type = index
  106. },
  107. }
  108. }
  109. </script>
  110. <style lang="scss" scoped>
  111. .IntegralRecord{
  112. width: 750rpx;
  113. background: #fff;
  114. margin: 0 auto;
  115. min-height: 100vh;
  116. .const{
  117. display: flex;
  118. flex-direction: column;
  119. margin: 40rpx 20rpx;
  120. box-shadow: 0 0 6rpx 6rpx #00000011;
  121. border-radius: 20rpx;
  122. overflow: hidden;
  123. .number{
  124. display: flex;
  125. flex-direction: column;
  126. justify-content: center;
  127. align-items: center;
  128. padding: 40rpx;
  129. background-color: $uni-color;
  130. color: #fff;
  131. view{
  132. font-size: 40rpx;
  133. font-weight: 900;
  134. }
  135. }
  136. .bottom{
  137. color: $uni-color;
  138. display: flex;
  139. view{
  140. flex: 1;
  141. display: flex;
  142. justify-content: center;
  143. align-items: center;
  144. padding: 20rpx;
  145. }
  146. view:nth-child(1){
  147. border-right: 1rpx solid $uni-color;
  148. }
  149. }
  150. }
  151. .tab-box{
  152. margin: 20rpx;
  153. background-color: #fff;
  154. border-radius: 20rpx;
  155. overflow: hidden;
  156. }
  157. }
  158. </style>