-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy_balance.html
142 lines (124 loc) · 2.95 KB
/
my_balance.html
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="format-detection" content="telephone=no" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>账户余额</title>
<link rel="stylesheet" href="css/sta.css">
<link href="css/mui.css" rel="stylesheet" type="text/css">
<script src="js/mui.js"></script>
</head>
<style>
.tb_order {
width: 100%;
}
.ctt {
clear: both;
}
#tb_ {
height: 44px;
margin-top: 10px;
background: #fff;
padding: 0 10px;
}
.tb_ li {
float: left;
height: 42px;
line-height: 42px;
cursor: pointer;
width: 25%;
font-size: 1em;
text-align: center;
font-weight: 600;
}
.tb_t li {
float: left;
height: 22px;
line-height: 22px;
cursor: pointer;
margin-right: 20px;
font-size: 12px;
text-align: center;
padding: 0 10px;
border-radius: 2px;
}
.normaltab {
color: #333;
}
.hovertab {
border-bottom: 2px solid #008CEE;
color: #333;
}
.dis {
display: block;
}
.undis {
display: none;
}
</style>
<body style="background:#fff;">
<div class="index_box" style="margin-top:50px" id="app">
<div class="nearby_top">
<h1>账户余额</h1>
<a class="index_back mui-action-back"><img src="img/back.png" alt="" width="100%" height="100%"></a>
</div>
<div class="tb_order">
<div class="ctt">
<!-- 95折商家 -->
<div class="dis" id="tbc_01">
<div class="bonus_box">
<p>账户余额</p>
<h6>{{amount}}</h6>
</div>
<div class="goods_top" style="position: inherit;">
<table border="1">
<thead>
<tr>
<th><a>类型</a></th>
<th><a>日期</a></th>
<th><a>金额</a></th>
</tr>
</thead>
<tbody>
<tr v-for="item in list">
<td>{{item.type_text}}</td>
<td>{{item.created_at}}</td>
<td>{{item.money}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<script src="js/vue.js"></script>
<script src="js/config.js"></script>
<script src="js/common.js"></script>
<script>
var vm = new Vue({
el: '#app',
data: {
amount: '',
list: []
},
created: function() {
var self = this;
getJson(
'api/user/balanceList',
null,
function(ret) {
if (ret.code == 200) {
self.amount = ret.data.amount;
self.list = ret.data.list;
}
}
)
}
})
</script>
</body>
</html>