1
jhzh
2024-11-09 76a3da9e613191b032620303210ccbefdfdfa1a4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<template>
  <div class="wrapper">
    <!-- <div class="header">
      <mt-header title="资金明细">
        <router-link to="/user" slot="left">
          <mt-button icon="back">我的</mt-button>
        </router-link>
        <mt-button icon="more" slot="right"></mt-button>
      </mt-header>
    </div> -->
    <div class="box page-part">
      <div class="box-contain clearfix">
        <div class="account text-center">
          <p class="title">当前可用余额(元)</p>
          <p class="red number">{{$store.state.userInfo.enableAmt}}</p>
        </div>
        <div class="account-panel">
          <div class="col-xs-6">
            <a href="#/recharge">
              <img src="../../assets/img/recharge_icon.png"><br>
              充值
            </a>
          </div>
          <div class="col-xs-6">
            <a href="#/cash">
              <img src="../../assets/img/withdrew_icon.png"><br>
              提现
            </a>
          </div>
        </div>
      </div>
    </div>
    <div>
      <listDetail/>
    </div>
  </div>
</template>
 
<script>
import listDetail from './compontents/list-detail'
 
export default {
  components: {
    listDetail
  },
  props: {},
  data () {
    return {
      listDetail
    }
  },
  watch: {},
  computed: {},
  created () {},
  mounted () {
    if (this.$state.theme =='red') {
        document.body.classList.remove('black-bg')
        document.body.classList.add('red-bg')
    }
  },
  beforeDestroy () {
    if (this.$state.theme =='red') {
      document.body.classList.remove('red-bg')
        document.body.classList.add('black-bg')
    }
  },
  methods: {}
}
</script>
<style lang="less" scoped>
  .account {
    padding-bottom: 0.2rem;
 
    .title {
      height: 1.4rem;
      line-height: 1.4rem;
      font-size: 0.29rem;
      // color: rgb(51, 51, 51);
      // color: #ddd;
      text-align: center;
      // font-weight: 700;
    }
 
    .number {
      font-size: 0.566rem;
      font-weight: 600;
    }
  }
 
  .transaction {
    // color: rgba(100, 100, 100, 0.78);
    color: #ccc;
 
    .transaction-title {
      padding: 0.15rem 0.3rem;
    }
 
    .empty {
      height: 2.8rem;
      line-height: 2.8rem;
    }
  }
 
  .account-panel {
    div {
      text-align: center;
    }
 
    a {
      width: 50%;
      text-align: center;
      margin: 0 auto;
 
      img {
        width: 0.48rem;
        margin-bottom: 0.1rem;
      }
    }
  }
</style>