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

147 lines
2.6 KiB

6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
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. {{ formal.currentScore }}
  10. </view>
  11. </view>
  12. <view class="bottom">
  13. <view>
  14. 正式积分{{ formal.formalScore }}
  15. </view>
  16. <view>
  17. 临时积分{{ formal.tempScore }}
  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. x : ['+', '-'],
  53. status : 0,
  54. tabs: [
  55. {
  56. name: '收入'
  57. },
  58. {
  59. name: '消耗'
  60. },
  61. ],
  62. type : 0,
  63. mixinsListApi : 'commonQueryScoreRecord',
  64. // 积分
  65. formal : {},
  66. }
  67. },
  68. onLoad(e) {
  69. this.status = e.status
  70. this.queryParams.type = this.type
  71. },
  72. onShow() {
  73. this.getCounst()
  74. },
  75. methods: {
  76. leftClick() { //返回钱包
  77. uni.navigateBack(-1)
  78. },
  79. clickTabs({index}) {
  80. this.type = index
  81. this.queryParams.type = this.type
  82. this.getData()
  83. },
  84. getCounst(){
  85. this.$api('commonQueryScore', res => {
  86. if(res.code == 200){
  87. this.formal = res.result
  88. }
  89. })
  90. },
  91. }
  92. }
  93. </script>
  94. <style lang="scss" scoped>
  95. .IntegralRecord{
  96. width: 750rpx;
  97. background: #fff;
  98. margin: 0 auto;
  99. min-height: 100vh;
  100. .const{
  101. display: flex;
  102. flex-direction: column;
  103. margin: 40rpx 20rpx;
  104. box-shadow: 0 0 6rpx 6rpx #00000011;
  105. border-radius: 20rpx;
  106. overflow: hidden;
  107. .number{
  108. display: flex;
  109. flex-direction: column;
  110. justify-content: center;
  111. align-items: center;
  112. padding: 40rpx;
  113. background-color: $uni-color;
  114. color: #fff;
  115. view{
  116. font-size: 40rpx;
  117. font-weight: 900;
  118. }
  119. }
  120. .bottom{
  121. color: $uni-color;
  122. display: flex;
  123. view{
  124. flex: 1;
  125. display: flex;
  126. justify-content: center;
  127. align-items: center;
  128. padding: 20rpx;
  129. }
  130. view:nth-child(1){
  131. border-right: 1rpx solid $uni-color;
  132. }
  133. }
  134. }
  135. .tab-box{
  136. margin: 20rpx;
  137. background-color: #fff;
  138. border-radius: 20rpx;
  139. overflow: hidden;
  140. }
  141. }
  142. </style>