income.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <template>
  2. <view>
  3. <view class="index">
  4. <image class="index-bg" src="@/static/img/wallet/bg.png" mode="scaleToFill"></image>
  5. <view class="head-money">
  6. <view class="sys-color-794B06 sys-size-28">我的波点(个)</view>
  7. <view class="head-mongy-1">
  8. <view class="sys-size-52 sys-color-362100 sys-weight-600">138</view>
  9. </view>
  10. </view>
  11. </view>
  12. <view class="t-box sys-background-FFDFC3">
  13. <view class="sys-background-gray-f"></view>
  14. </view>
  15. <view class="box-sizing-border box-card">
  16. <view class="card-echrecs box-sizing-border">
  17. <view class="sys-size-32 sys-color-gray-3 sys-weight-600">每日波点</view>
  18. <view class="card-echrecs-box">
  19. <ColumnEcharts ref="columnEcharts"></ColumnEcharts>
  20. </view>
  21. </view>
  22. <image class="crad-f" src="@/static/img/wallet/ad-1.png" mode="scaleToFill" @click="selectFun(1)"></image>
  23. <view class="card-b">
  24. <view class="sys-background-FE6915 sys-radius-16 sys-size-32 sys-color-white sys-weight-600" @click="selectFun(2)">兑换JM币</view>
  25. <view class="sys-radius-16 tx-view sys-size-32 sys-color-FE6915 sys-weight-600" @click="selectFun(3)">提现</view>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. import ColumnEcharts from './column-echarts.vue';
  32. import {getDailyEarnings} from "@/api/my";
  33. import tools from "@/service/tools";
  34. export default {
  35. components:{ColumnEcharts},
  36. data(){
  37. return{
  38. date:''
  39. }
  40. },
  41. mounted() {
  42. this.date = tools.getDateYM();
  43. this.getDailyEarnings()
  44. },
  45. methods:{
  46. getDailyEarnings(){
  47. if(this.isAjax){
  48. return
  49. }
  50. this.isAjax=true
  51. let that=this
  52. getDailyEarnings({'pageNo':this.page,'pageSize':20,'month':this.date,'type':'OP_IN'}).then((res)=>{
  53. this.isAjax=false
  54. if(res.code===0){
  55. res.data.data.forEach((item)=>{
  56. that.list.push(item )
  57. })
  58. ++that.page
  59. that.total=res.data.total
  60. }
  61. })
  62. },
  63. selectFun(type){
  64. if(type === 1){
  65. uni.navigateTo({
  66. url:'/pages/wallet/wave-point'
  67. })
  68. }else if(type === 2){
  69. // 兑换JM币
  70. }else if(type === 3){
  71. // 提现
  72. }
  73. },
  74. },
  75. }
  76. </script>
  77. <style scoped lang="scss">
  78. .index{
  79. width: 100%;
  80. height: 436rpx;
  81. position: relative;
  82. .index-bg{
  83. width: 100%;
  84. height: 436rpx;
  85. }
  86. .head-money{
  87. position: absolute;
  88. left: 54rpx;
  89. bottom: 76rpx;
  90. .head-mongy-1{
  91. display: flex;
  92. align-items: center;
  93. margin-top: 26rpx;
  94. image{
  95. width: 40rpx;
  96. height: 40rpx;
  97. border-radius: 50%;
  98. margin-right: 12rpx;
  99. }
  100. }
  101. }
  102. }
  103. .t-box{
  104. height: 30rpx;
  105. view{
  106. height: 30rpx;
  107. border-radius: 30rpx 30rpx 0rpx 0rpx;
  108. }
  109. }
  110. .box-card{
  111. min-height: 100rpx;
  112. padding: 0 32rpx 10rpx 32rpx;
  113. .card-echrecs{
  114. width: 100%;
  115. height: 516rpx;
  116. border-radius: 20rpx;
  117. box-shadow: 0rpx 0rpx 8rpx 0rpx rgba(0,0,0,0.1);
  118. margin-bottom: 30rpx;
  119. padding: 32rpx 36rpx;
  120. .card-echrecs-box{
  121. width: 100%;
  122. height: 400rpx;
  123. margin-top: 20rpx;
  124. }
  125. }
  126. .crad-f{
  127. width: 100%;
  128. height: 160rpx;
  129. border-radius: 20rpx;
  130. box-shadow: 0rpx 0rpx 8rpx 0rpx rgba(0,0,0,0.1);
  131. }
  132. .card-b{
  133. margin-top: 20rpx;
  134. display: flex;
  135. justify-content: space-between;
  136. view{
  137. width: 332rpx;
  138. height: 88rpx;
  139. line-height: 88rpx;
  140. text-align: center;
  141. }
  142. .tx-view{
  143. box-sizing: border-box;
  144. border: 2rpx solid #FE6915;
  145. }
  146. }
  147. }
  148. </style>