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

157 lines
2.8 KiB

8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 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="total">
  30. <uv-cell center border :title="item.title"
  31. v-for="(item, index) in list"
  32. :value="x[item.type] + item.score" :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 : 'commonQueryScoreRecord',
  87. }
  88. },
  89. onLoad(e) {
  90. this.status = e.status
  91. this.queryParams.type = this.type
  92. },
  93. methods: {
  94. leftClick() { //返回钱包
  95. uni.navigateBack(-1)
  96. },
  97. clickTabs({index}) {
  98. this.type = index
  99. this.queryParams.type = this.type
  100. },
  101. }
  102. }
  103. </script>
  104. <style lang="scss" scoped>
  105. .IntegralRecord{
  106. width: 750rpx;
  107. background: #fff;
  108. margin: 0 auto;
  109. min-height: 100vh;
  110. .const{
  111. display: flex;
  112. flex-direction: column;
  113. margin: 40rpx 20rpx;
  114. box-shadow: 0 0 6rpx 6rpx #00000011;
  115. border-radius: 20rpx;
  116. overflow: hidden;
  117. .number{
  118. display: flex;
  119. flex-direction: column;
  120. justify-content: center;
  121. align-items: center;
  122. padding: 40rpx;
  123. background-color: $uni-color;
  124. color: #fff;
  125. view{
  126. font-size: 40rpx;
  127. font-weight: 900;
  128. }
  129. }
  130. .bottom{
  131. color: $uni-color;
  132. display: flex;
  133. view{
  134. flex: 1;
  135. display: flex;
  136. justify-content: center;
  137. align-items: center;
  138. padding: 20rpx;
  139. }
  140. view:nth-child(1){
  141. border-right: 1rpx solid $uni-color;
  142. }
  143. }
  144. }
  145. .tab-box{
  146. margin: 20rpx;
  147. background-color: #fff;
  148. border-radius: 20rpx;
  149. overflow: hidden;
  150. }
  151. }
  152. </style>