consumePage.vue
2.0 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
<template>
<view class="content">
<view class="item" v-for="(item,index) in mingxilist" :key="index">
<view class="left">
<view class="title">xx收益</view>
<view class="time">2020-2-19</view>
</view>
<view class="right">¥800.00</view>
</view>
<!-- <view class="item">
<view class="left">
<view class="title">提现</view>
<view class="time">2020-2-19</view>
</view>
<view class="right" style="color:#81C3BF">-¥800.00</view>
</view> -->
<view class="nodata" v-if="mingxilist.length==0">暂无数据</view>
</view>
</template>
<script>
import app from "../../App.vue";
export default {
data(){
return{
page:1,
size:10,
mingxilist:[]
}
},
methods:{
getyuE(){
var that = this
var url = "money/listMoneyLog"
var token = uni.getStorageSync('token')
var params = {
token:token,
page:that.page,
size:that.size
}
app.post(url,params,"get").then((res)=>{
console.log(res)
that.mingxilist=res
}).catch((err)=>{
console.log(err)
})
}
},
onLoad(){
this.getyuE()
}
}
</script>
<style lang="less">
.content{
.nodata{
text-align: center;
font-size: 28rpx;
}
.item{
width: 686rpx;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
padding: 24rpx 0;
border-bottom: 1rpx solid rgba(238,238,238,1);
.left{
.title{
font-size: 28rpx;
}
.time{
font-size: 24rpx;
color:rgba(140,145,152,1);
}
}
.right{
font-size: 28rpx;
color:rgba(239,76,70,1);
}
}
}
</style>