accountDetails.vue
3.8 KB
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<template>
<view class="page">
<view class="box">
<view class="item" v-for="(item,index) in account" :key="index">
<view class="title">{{item.year_month}}
<image src="../../static/more.png" mode="widthFix" class="more" />
</view>
<view class="xitem" v-for="(itemk,indexk) in item.list" :key="indexk">
<view class="top">
<text v-if="itemk.type==1">充值</text>
<text v-if="itemk.type==2">余额购买</text>
<text v-if="itemk.type==3">提现审核</text>
<text v-if="itemk.type==4">提现审核通过</text>
<text v-if="itemk.type==5">提现审核未通过</text>
<text v-if="itemk.type==6">转出</text>
<text v-if="itemk.type==7">转入</text>
<text v-if="itemk.type==8">赊吧消费</text>
<text v-if="itemk.type==9">赊吧还款</text>
<text v-if="itemk.type==10">提现已打款</text>
<text v-if="itemk.type==11">佣金提现</text>
<text v-if="itemk.type==1">+{{itemk.money}}</text>
<text v-if="itemk.type==2">-{{itemk.money}}</text>
<text v-if="itemk.type==3">-{{itemk.money}}</text>
<text v-if="itemk.type==4">-{{itemk.money}}</text>
<text v-if="itemk.type==5">+{{itemk.money}}</text>
<text v-if="itemk.type==6">-{{itemk.money}}</text>
<text v-if="itemk.type==7">+{{itemk.money}}</text>
<text v-if="itemk.type==8">-{{itemk.money}}</text>
<text v-if="itemk.type==9">-{{itemk.money}}</text>
<text v-if="itemk.type==10">+{{itemk.money}}</text>
<text v-if="itemk.type==11">+{{itemk.money}}</text>
</view>
<view class="num">
<text>{{item.createtime}}</text>
<text>余额 {{itemk.after_money}}</text>
</view>
</view>
<!-- <view class="xitem">
<view class="top">
<text>账户充值</text>
<text>-20.00</text>
</view>
<view class="num">
<text>2019.10.10 9:50</text>
<text>余额 3362.68</text>
</view>
</view>
<view class="xitem">
<view class="top">
<text>账户转入</text>
<text>-20.00</text>
</view>
<view class="num">
<text>2019.10.10 9:50</text>
<text>余额 3362.68</text>
</view>
</view>
-->
</view>
</view>
</view>
</template>
<script>
import app from "../../App.vue";
export default {
data() {
return {
page:1,
accountlist:[],
account:[]
}
},
onLoad() {
this.getaccount()
},
methods: {
getaccount(){
let that = this;
var url = 'money/money_log';
var params = {
}
console.log('7766554', params)
app.post(url, params).then((res) => {
console.log(res);
that.account=that.account.concat(res.data.data);
// that.accountlist = that.accountlist.concat(res.data.data);
// that.accountlist.forEach(function(value, index, array) {
// value.card_number = value.card_number.substr(-4)
// })
// that.accountlist = that.accountlist;
}).catch((err) => {
console.log(err)
})
}
},
onReachBottom() {
}
}
</script>
<style>
page {
background: #F7F7F7;
}
.box {
padding: 0 32rpx;
box-sizing: border-box;
background: #fff;
margin-top: 16rpx;
}
.title {
height: 92rpx;
display: flex;
align-items: center;
border-bottom: 1px solid #EEEEEE;
}
.more {
width: 32rpx;
margin-left: 12rpx;
}
.xitem {
height: 128rpx;
border-bottom: 1px solid #EEEEEE;
overflow: hidden;
}
.top,
.num {
display: flex;
align-items: center;
justify-content: space-between;
}
.top {
margin-top: 20rpx;
font-size: 32rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: rgba(35, 35, 35, 1);
}
.top text:last-child {
color: #FF9417;
}
.num {
margin-top: 10rpx;
font-size: 24rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: rgba(187, 194, 203, 1);
}
</style>