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

149 lines
2.7 KiB

11 months ago
8 months ago
11 months ago
8 months ago
11 months ago
10 months ago
11 months ago
10 months ago
11 months ago
8 months ago
11 months ago
10 months ago
11 months ago
10 months ago
8 months ago
10 months ago
11 months ago
10 months ago
11 months ago
10 months ago
11 months ago
10 months ago
11 months ago
10 months ago
10 months ago
11 months ago
10 months ago
11 months ago
10 months ago
8 months ago
10 months ago
11 months ago
10 months ago
10 months ago
10 months ago
10 months ago
11 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. :key="index"
  33. :value="x[item.type] + item.score" :label="item.createTime" />
  34. </view>
  35. <view
  36. style="padding: 100rpx 0;"
  37. v-else>
  38. <uv-empty
  39. mode="history"
  40. textSize="28rpx"
  41. iconSize="100rpx"/>
  42. </view>
  43. </view>
  44. </view>
  45. </template>
  46. <script>
  47. import mixinList from '@/mixins/list.js'
  48. export default {
  49. mixins : [mixinList],
  50. data() {
  51. return {
  52. title : '积分记录',
  53. x : ['+', '-'],
  54. status : 0,
  55. tabs: [
  56. {
  57. name: '收入'
  58. },
  59. {
  60. name: '消耗'
  61. },
  62. ],
  63. type : 0,
  64. mixinsListApi : 'commonQueryScoreRecord',
  65. // 积分
  66. formal : {},
  67. }
  68. },
  69. onLoad(e) {
  70. this.status = e.status
  71. this.queryParams.type = this.type
  72. },
  73. onShow() {
  74. this.getCounst()
  75. this.$store.commit('getUserInfo')
  76. },
  77. methods: {
  78. leftClick() { //返回钱包
  79. uni.navigateBack(-1)
  80. },
  81. clickTabs({index}) {
  82. this.type = index
  83. this.queryParams.type = this.type
  84. this.getData()
  85. },
  86. getCounst(){
  87. this.$api('commonQueryScore', res => {
  88. if(res.code == 200){
  89. this.formal = res.result
  90. }
  91. })
  92. },
  93. }
  94. }
  95. </script>
  96. <style lang="scss" scoped>
  97. .IntegralRecord{
  98. width: 750rpx;
  99. background: #fff;
  100. margin: 0 auto;
  101. min-height: 100vh;
  102. .const{
  103. display: flex;
  104. flex-direction: column;
  105. margin: 40rpx 20rpx;
  106. box-shadow: 0 0 6rpx 6rpx #00000011;
  107. border-radius: 20rpx;
  108. overflow: hidden;
  109. .number{
  110. display: flex;
  111. flex-direction: column;
  112. justify-content: center;
  113. align-items: center;
  114. padding: 40rpx;
  115. background-color: $uni-color;
  116. color: #fff;
  117. view{
  118. font-size: 40rpx;
  119. font-weight: 900;
  120. }
  121. }
  122. .bottom{
  123. color: $uni-color;
  124. display: flex;
  125. view{
  126. flex: 1;
  127. display: flex;
  128. justify-content: center;
  129. align-items: center;
  130. padding: 20rpx;
  131. }
  132. view:nth-child(1){
  133. border-right: 1rpx solid $uni-color;
  134. }
  135. }
  136. }
  137. .tab-box{
  138. margin: 20rpx;
  139. background-color: #fff;
  140. border-radius: 20rpx;
  141. overflow: hidden;
  142. }
  143. }
  144. </style>