awards.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <view>
  3. <view class="bg-img" style="background-image: url('/static/bgimg.png');height: 310upx;"></view>
  4. <view class="container" style="margin: -80upx 30upx 30upx 30upx;">
  5. <view class="padding">
  6. <text class="text-bold text-black padding-right-sm">账户热力值</text>
  7. <text class="text-bold" style="color: #f87a3a;">可兑换到账{{data.totalWithDraw}}元</text>
  8. </view>
  9. <view class="padding-lr flex justify-between align-center">
  10. <view>
  11. <text
  12. style="font-size: 60upx;font-family: PingFang SC;font-weight: 800;color: #F3484E;">{{data.usableHotValue}}</text>
  13. <text class="padding-left-xs"
  14. style="font-size: 24upx;font-family: PingFang SC;font-weight: 800;color: #878787;">热力值</text>
  15. </view>
  16. <button class="cu-btn round text-white" style="background-color: #f75757;width: 140upx;">提现</button>
  17. </view>
  18. <view style="margin: 10upx 20upx;">
  19. <u-line color="#e0e0e0"></u-line>
  20. </view>
  21. <view style="padding: 20upx 0upx 0upx 30upx;">
  22. <text class="title">已提现:</text>
  23. <text class="number">{{data.withdrawed}}</text>
  24. <text class="title padding-left-xs">元</text>
  25. </view>
  26. <view style="padding: 10upx 0upx 20upx 30upx;">
  27. <text class="title">可提现:</text>
  28. <text class="number">{{data.usableWithdraw}}</text>
  29. <text class="title padding-left-xs">元</text>
  30. </view>
  31. </view>
  32. <view class="container margin-lr">
  33. <view class="padding flex align-center">
  34. <view class="cuIcon-text text-bold padding-right-xs" style="font-size: 38upx;"></view>
  35. <view class="title">提现明细</view>
  36. </view>
  37. <view v-for="(item, index) in list" :key="index" class="flex align-center justify-between">
  38. <view class="padding-lr">
  39. <view class="title">{{item.note}}</view>
  40. <view style="font-size: 24upx;font-family: PingFang SC;font-weight: bold;color: #686868;">
  41. {{item.createTime}}</view>
  42. </view>
  43. <view class="padding-right">
  44. <text style="font-size: 36upx;font-family: PingFang SC;font-weight: bold;color: #F3484E;">+{{ +item.hotValue}}</text>
  45. <text class="text-bold padding-left-xs">元</text>
  46. </view>
  47. </view>
  48. <view style="padding: 20upx;">
  49. <u-line color="#e0e0e0"></u-line>
  50. </view>
  51. </view>
  52. <view style="height: 30upx;"></view>
  53. </view>
  54. </template>
  55. <script>
  56. export default {
  57. data() {
  58. return {
  59. userId: '1',
  60. data: {},
  61. list:[]
  62. }
  63. },
  64. onLoad() {
  65. this.getBonus()
  66. this.getList()
  67. },
  68. methods: {
  69. getBonus() {
  70. this.$u.api.user.getBonus({
  71. userId: this.userId
  72. }).then(res => {
  73. this.data = res
  74. })
  75. },
  76. getList(){
  77. let params={
  78. userId:this.userId
  79. }
  80. this.$u.api.user.withdrawrecords(params).then(res => {
  81. this.list=res.records
  82. })
  83. }
  84. }
  85. }
  86. </script>
  87. <style>
  88. .container {
  89. background-color: #FFFFFF;
  90. border-radius: 16upx;
  91. box-shadow: 0px 3px 79px 0px rgba(132, 132, 132, 0.22);
  92. }
  93. .title {
  94. font-size: 28upx;
  95. font-family: PingFang SC;
  96. font-weight: 800;
  97. color: #000000;
  98. }
  99. .number {
  100. font-size: 30upx;
  101. font-family: PingFang SC;
  102. font-weight: 800;
  103. color: #F3484E;
  104. }
  105. </style>