完成资金明细
This commit is contained in:
parent
897b40f9f9
commit
cced601628
|
@ -84,7 +84,7 @@ const apis = {
|
|||
}
|
||||
},
|
||||
cash: {
|
||||
withdrawLog: {
|
||||
log: {
|
||||
url: "/user/workerinfo/drawmoneylog",
|
||||
showLoading: true,
|
||||
auth: true,
|
||||
|
|
|
@ -326,10 +326,10 @@ export default {
|
|||
});
|
||||
}
|
||||
},
|
||||
withdrawLog(data) {
|
||||
cashLog(data) {
|
||||
return new Promise((resolve, reject) => {
|
||||
prototype.$request({
|
||||
api: "user.cash.withdrawLog",
|
||||
api: "user.cash.log",
|
||||
data: data,
|
||||
}).then(response => {
|
||||
if (response.code == 1) {
|
||||
|
@ -337,8 +337,9 @@ export default {
|
|||
response.data.forEach(item => {
|
||||
list.push({
|
||||
id: item.id,
|
||||
money: item.money,
|
||||
state: item.status,
|
||||
change: item.change,
|
||||
balance: item.balance,
|
||||
remark: item.remark,
|
||||
createTime: item.times,
|
||||
});
|
||||
});
|
||||
|
|
|
@ -6,11 +6,10 @@
|
|||
{{ item.createTime }}
|
||||
</view>
|
||||
<view class="body">
|
||||
<text class="money">{{ item.money }}</text>
|
||||
<text class="state" :class="{ active: item.state > 0 }">
|
||||
{{ item.state > 0 ? "已审核" : "待审核" }}
|
||||
</text>
|
||||
<text class="money" :class="{ active: item.change > 0 }">{{ item.change }}</text>
|
||||
<text class="balance">余额:{{ item.balance }}</text>
|
||||
</view>
|
||||
<view class="remark"> 备注:{{ item.remark }} </view>
|
||||
</view>
|
||||
</view>
|
||||
<app-load-more :hasMore="more" @loadmore="loadList" />
|
||||
|
@ -50,7 +49,7 @@ export default {
|
|||
methods: {
|
||||
loadList() {
|
||||
this.$models.user
|
||||
.withdrawLog({
|
||||
.cashLog({
|
||||
page: this.page,
|
||||
})
|
||||
.then((list) => {
|
||||
|
@ -76,28 +75,32 @@ export default {
|
|||
box-sizing: border-box;
|
||||
padding: 20rpx 30rpx;
|
||||
margin-bottom: 20rpx;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.date {
|
||||
color: #999999;
|
||||
font-size: 28rpx;
|
||||
line-height: 28rpx;
|
||||
}
|
||||
.body {
|
||||
font-size: 28rpx;
|
||||
margin-top: 20rpx;
|
||||
margin: 20rpx 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.money {
|
||||
font-weight: bold;
|
||||
color: #08b500;
|
||||
}
|
||||
.money.active {
|
||||
color: #ff0000;
|
||||
}
|
||||
.balance {
|
||||
color: #333333;
|
||||
}
|
||||
.remark {
|
||||
color: #666666;
|
||||
}
|
||||
.state {
|
||||
color: #a1a1a1;
|
||||
}
|
||||
.state.avtive {
|
||||
color: #8b9aeb;
|
||||
}
|
||||
padding-top: 10rpx;
|
||||
border-top: 2rpx solid #e0e0e0;
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue