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

148 lines
2.7 KiB

4 months ago
2 months ago
4 months ago
2 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
2 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
2 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 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. {{ userInfo.integerPrice }}
  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. this.$store.commit('getUserInfo')
  75. },
  76. methods: {
  77. leftClick() { //返回钱包
  78. uni.navigateBack(-1)
  79. },
  80. clickTabs({index}) {
  81. this.type = index
  82. this.queryParams.type = this.type
  83. this.getData()
  84. },
  85. getCounst(){
  86. this.$api('commonQueryScore', res => {
  87. if(res.code == 200){
  88. this.formal = res.result
  89. }
  90. })
  91. },
  92. }
  93. }
  94. </script>
  95. <style lang="scss" scoped>
  96. .IntegralRecord{
  97. width: 750rpx;
  98. background: #fff;
  99. margin: 0 auto;
  100. min-height: 100vh;
  101. .const{
  102. display: flex;
  103. flex-direction: column;
  104. margin: 40rpx 20rpx;
  105. box-shadow: 0 0 6rpx 6rpx #00000011;
  106. border-radius: 20rpx;
  107. overflow: hidden;
  108. .number{
  109. display: flex;
  110. flex-direction: column;
  111. justify-content: center;
  112. align-items: center;
  113. padding: 40rpx;
  114. background-color: $uni-color;
  115. color: #fff;
  116. view{
  117. font-size: 40rpx;
  118. font-weight: 900;
  119. }
  120. }
  121. .bottom{
  122. color: $uni-color;
  123. display: flex;
  124. view{
  125. flex: 1;
  126. display: flex;
  127. justify-content: center;
  128. align-items: center;
  129. padding: 20rpx;
  130. }
  131. view:nth-child(1){
  132. border-right: 1rpx solid $uni-color;
  133. }
  134. }
  135. }
  136. .tab-box{
  137. margin: 20rpx;
  138. background-color: #fff;
  139. border-radius: 20rpx;
  140. overflow: hidden;
  141. }
  142. }
  143. </style>