record.vue
2.1 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
<template>
<view>
<!-- title -->
<view class="user-wrapper">
<view>
<image @click="back" src="../../../static/imgs/left.png" mode=""></image>
<text>伙伴消费记录</text>
<view></view>
</view>
<view>
<image :src="lower.avatar" mode=""></image>
<text>{{lower.nickname}}</text>
</view>
</view>
<!-- content -->
<view v-for="(item,index) in pay" class="content-wrp">
<view class="buy">
<view>{{item.remark}}</view>
<view>{{item.createtime}}</view>
</view>
<view class="money">¥{{item.money}}</view>
</view>
</view>
</template>
<script>
import request from "../../../App.vue"
export default {
data() {
return {
lower:'',
pay:''
};
},
onLoad:function(option){
const data = {
lower_user_id : option.id
}
request.post('/api/user/lowerPayLog',data).then(r=>{
if(r.code == 1){
this.lower = r.data.lower
this.pay = r.data.pay_log.data
}
})
},
methods:{
back(){
uni.navigateBack({
})
}
}
}
</script>
<style lang="scss" scoped>
.money{
color: #FC8C06;
font-size: 32rpx;
font-weight: 500;
}
.buy{
>view:first-child{
color: #323233;
font-size: 28rpx;
padding-bottom: 16rpx;
}
>view:last-child{
color: #969799;
font-size: 24rpx;
}
}
.content-wrp{
display: flex;
align-items: center;
width: 686rpx;
margin: 0 auto;
justify-content: space-between;
padding-bottom: 28rpx;
border-bottom: 1rpx solid #EBEDF0;
padding-top: 24rpx;
}
.user-wrapper{
background-image: url("../../../static/imgs/bgrecord.png");
background-size: cover;
padding-top: 22rpx;
padding-bottom: 32rpx;
>view:first-child{
display: flex;
width: 686rpx;
margin: 0 auto;
justify-content: space-between;
color: white;
>image{
width: 48rpx;
height: 48rpx;
}
}
>view:last-child{
padding-top: 54rpx;
width: 686rpx;
margin: 0 auto;
display: flex;
align-items: center;
>image{
width: 96rpx;
height: 96rpx;
border-radius: 50%;
}
>text{
font-size: 32rpx;
color: white;
padding-left: 24rpx;
}
}
}
</style>