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.

110 lines
2.1 KiB

3 years ago
  1. <template>
  2. <view class="app">
  3. <view class="card column">
  4. <text class="tip">钱包余额</text>
  5. <text class="price">{{ userInfo.money | price(2) }}</text>
  6. </view>
  7. <view v-if="!openExamine" class="cell row b-b" @click="navTo('recLog')">
  8. <text class="mix-icon icon-qianbao"></text>
  9. <text class="tit ">充值</text>
  10. <text class="mix-icon icon-you"></text>
  11. </view>
  12. <view class="cell row b-b" @click="navTo('withdraw')">
  13. <text class="mix-icon icon-tixian"></text>
  14. <text class="tit ">提现</text>
  15. <text class="mix-icon icon-you"></text>
  16. </view>
  17. <view class="cell row" @click="navTo('moneyLog')">
  18. <text class="mix-icon icon-wodezhanghu_zijinjilu"></text>
  19. <text class="tit ">资金记录</text>
  20. <text class="mix-icon icon-you"></text>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. import {mapState} from 'vuex'
  26. export default {
  27. data() {
  28. return {
  29. }
  30. },
  31. computed: {
  32. ...mapState(['openExamine', 'userInfo'])
  33. },
  34. methods: {
  35. navTo(url){
  36. uni.navigateTo({
  37. url
  38. })
  39. }
  40. }
  41. }
  42. </script>
  43. <style scoped lang="scss">
  44. .app{
  45. display: flex;
  46. flex-direction: column;
  47. align-items: center;
  48. padding-top: 10rpx;
  49. }
  50. .card{
  51. width: 680rpx;
  52. height: 280rpx;
  53. padding: 40rpx 30rpx;
  54. margin-bottom: 16rpx;
  55. background-image: url(~@/static/bg/wallet.png);
  56. background-size: 100% 100%;
  57. color: #fff;
  58. .tip{
  59. font-size: 28rpx;
  60. line-height: 40rpx;
  61. }
  62. .price{
  63. margin-top: 8rpx;
  64. font-size: 72rpx;
  65. line-height: 92rpx;
  66. }
  67. }
  68. .cell{
  69. width: 100%;
  70. height: 120rpx;
  71. padding: 0 40rpx 0 44rpx;
  72. &:after{
  73. left: 40rpx;
  74. right: 40rpx;
  75. border-color: #e8e8e8;
  76. }
  77. .tit{
  78. flex: 1;
  79. font-size: 30rpx;
  80. color: #333;
  81. }
  82. .mix-icon{
  83. width: 64rpx;
  84. font-size: 40rpx;
  85. }
  86. .icon-qianbao{
  87. color: #3ed098;
  88. }
  89. .icon-tixian{
  90. color: #fe7c7a;
  91. }
  92. .icon-wodezhanghu_zijinjilu{
  93. font-size: 42rpx;
  94. color: #fbbe59;
  95. }
  96. .icon-you{
  97. width: auto;
  98. font-size: 24rpx;
  99. color: #999;
  100. }
  101. }
  102. </style>