withdraw.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <template>
  2. <view class="index">
  3. <view class="top">
  4. <view class="t1" @tap="navigateTo('/pages/myDriving/recording')">提现记录</view>
  5. <view class="icon">&#xe61c;</view>
  6. <view class="t2">账户余额</view>
  7. <view class="t3">
  8. {{ userinfo.money }}
  9. <text>元</text>
  10. </view>
  11. <button class="button" type="primary" @tap="navigateTo('/pages/myDriving/withdraws')">提现</button>
  12. </view>
  13. <view class="bottom">
  14. <view class="item" @tap="navigateTo('/pages/myDriving/myDriving')">
  15. <text class="icon">&#xe606;</text>
  16. 首页
  17. </view>
  18. <view class="item" @tap="navigateTo('/pages/myDriving/order')">
  19. <text class="icon">&#xe616;</text>
  20. 订单
  21. </view>
  22. <view class="item active" @tap="navigateTo('/pages/myDriving/withdraw')">
  23. <text class="icon">&#xe61c;</text>
  24. 提现
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. import helper from '../../common/helper.js';
  31. import api from '../../common/api.js';
  32. export default {
  33. data() {
  34. return {
  35. userinfo: {},
  36. info:{}
  37. };
  38. },
  39. onShow() {
  40. this.getUserInfo();
  41. },
  42. methods: {
  43. async getUserInfo() {
  44. let res = await api.getUserInfo();
  45. this.userinfo = res.data;
  46. },
  47. navigateTo(url) {
  48. uni.navigateTo({
  49. url: url
  50. });
  51. }
  52. }
  53. };
  54. </script>
  55. <style lang="scss" scoped>
  56. page,
  57. .index {
  58. background-color: #fbfbfb;
  59. }
  60. .top {
  61. text-align: center;
  62. padding: 30upx;
  63. background-color: #32c45e;
  64. color: #ffffff;
  65. .t1 {
  66. width: 100%;
  67. text-align: right;
  68. font-size: 26upx;
  69. }
  70. .icon {
  71. font-size: 160upx;
  72. }
  73. .t2 {
  74. padding: 10upx 0;
  75. font-size: 28upx;
  76. }
  77. .t3 {
  78. font-size: 50upx;
  79. text {
  80. font-size: 28upx;
  81. }
  82. }
  83. .button {
  84. width: 25%;
  85. background-color: #ffffff;
  86. color: #101010;
  87. font-size: 28upx;
  88. border-radius: 50upx;
  89. margin-top: 5%;
  90. }
  91. }
  92. .bottom {
  93. position: absolute;
  94. width: 100%;
  95. bottom: 0;
  96. height: 120upx;
  97. display: flex;
  98. align-items: center;
  99. justify-content: space-around;
  100. .item {
  101. width: 33.33%;
  102. display: flex;
  103. flex-direction: column;
  104. align-items: center;
  105. font-size: 24upx;
  106. .icon {
  107. font-size: 56upx;
  108. color: #999999;
  109. }
  110. }
  111. }
  112. .active {
  113. color: #32c45e !important;
  114. .icon {
  115. color: #32c45e !important;
  116. }
  117. }
  118. </style>