增加提现记录
This commit is contained in:
parent
e173c1d67d
commit
617ef9d3c2
|
@ -80,6 +80,13 @@ const apis = {
|
||||||
list: {
|
list: {
|
||||||
url: "/wxapp/index/mysevaluation",
|
url: "/wxapp/index/mysevaluation",
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
cash: {
|
||||||
|
withdrawLog: {
|
||||||
|
url: "/user/workerinfo/drawmoneylog",
|
||||||
|
showLoading: true,
|
||||||
|
auth: true,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
service: {
|
service: {
|
||||||
|
|
|
@ -340,5 +340,27 @@ export default {
|
||||||
}).catch(e => { });
|
}).catch(e => { });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
withdrawLog(data) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
prototype.$request({
|
||||||
|
api: "user.cash.withdrawLog",
|
||||||
|
data: data,
|
||||||
|
}).then(response => {
|
||||||
|
if (response.code == 1) {
|
||||||
|
let list = [];
|
||||||
|
response.data.forEach(item => {
|
||||||
|
list.push({
|
||||||
|
id: item.id,
|
||||||
|
money: item.money,
|
||||||
|
state: item.status,
|
||||||
|
createTime: item.times,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
return resolve(list);
|
||||||
|
}
|
||||||
|
return reject(response.msg);
|
||||||
|
}).catch(e => { });
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,11 +62,17 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/member/cash-withdraw",
|
"path": "pages/member/cash/withdraw",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "我要提现"
|
"navigationBarTitleText": "我要提现"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/member/cash/withdraw-log",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "提现记录"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/member/setting",
|
"path": "pages/member/setting",
|
||||||
"style": {
|
"style": {
|
||||||
|
|
|
@ -0,0 +1,101 @@
|
||||||
|
<template>
|
||||||
|
<app-layout title="提现记录">
|
||||||
|
<view class="withdraw-log-container">
|
||||||
|
<view class="log-item" v-for="(item, index) in list" :key="index">
|
||||||
|
<view class="date">
|
||||||
|
{{ item.createTime }}
|
||||||
|
</view>
|
||||||
|
<view class="body">
|
||||||
|
<text class="money">{{ item.money }}</text>
|
||||||
|
<text class="state" :class="{ active: item.state > 0 }">
|
||||||
|
{{ item.state > 0 ? "已审核" : "待审核" }}
|
||||||
|
</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<app-load-more :hasMore="more" @loadmore="loadList" />
|
||||||
|
</app-layout>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import AppLayout from "@/components/layout/layout";
|
||||||
|
import AppLoadMore from "@/components/widgets/loadmore";
|
||||||
|
export default {
|
||||||
|
name: "member-cash-log",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
page: 1,
|
||||||
|
more: true,
|
||||||
|
list: [],
|
||||||
|
};
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
AppLayout,
|
||||||
|
AppLoadMore,
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
|
this.loadList();
|
||||||
|
},
|
||||||
|
onShow() {},
|
||||||
|
onReady() {},
|
||||||
|
onHide() {},
|
||||||
|
onReachBottom() {
|
||||||
|
if (this.more) {
|
||||||
|
this.loadList();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onPullDownRefresh() {},
|
||||||
|
methods: {
|
||||||
|
loadList() {
|
||||||
|
this.$models.user
|
||||||
|
.withdrawLog({
|
||||||
|
page: this.page,
|
||||||
|
})
|
||||||
|
.then((list) => {
|
||||||
|
if (list.length > 0) {
|
||||||
|
this.list = this.list.concat(list);
|
||||||
|
this.page++;
|
||||||
|
} else {
|
||||||
|
this.more = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
.withdraw-log-container {
|
||||||
|
width: 100%;
|
||||||
|
padding: 20rpx 0;
|
||||||
|
.log-item {
|
||||||
|
width: 100%;
|
||||||
|
background-color: #ffffff;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 20rpx 30rpx;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
.date {
|
||||||
|
color: #999999;
|
||||||
|
font-size: 28rpx;
|
||||||
|
line-height: 28rpx;
|
||||||
|
}
|
||||||
|
.body {
|
||||||
|
font-size: 28rpx;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
.money {
|
||||||
|
font-weight: bold;
|
||||||
|
color: #666666;
|
||||||
|
}
|
||||||
|
.state {
|
||||||
|
color: #a1a1a1;
|
||||||
|
}
|
||||||
|
.state.avtive {
|
||||||
|
color: #8b9aeb;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -65,7 +65,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="common-form-widget-group">
|
<view class="common-form-widget-group">
|
||||||
<view class="widget-item" @click="toPage('/pages/member/cash-withdraw')">
|
<view class="widget-item" @click="toPage('/pages/member/cash/withdraw')">
|
||||||
<text class="title limit-line clamp-1">我要提现</text>
|
<text class="title limit-line clamp-1">我要提现</text>
|
||||||
<text class="iconfont icon-jinru"></text>
|
<text class="iconfont icon-jinru"></text>
|
||||||
</view>
|
</view>
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
<text class="title limit-line clamp-1">服务无忧保</text>
|
<text class="title limit-line clamp-1">服务无忧保</text>
|
||||||
<text class="iconfont icon-jinru"></text>
|
<text class="iconfont icon-jinru"></text>
|
||||||
</view>
|
</view>
|
||||||
<view class="widget-item">
|
<view class="widget-item" @click="toPage('/pages/member/cash/withdraw-log')">
|
||||||
<text class="title limit-line clamp-1">提现记录</text>
|
<text class="title limit-line clamp-1">提现记录</text>
|
||||||
<text class="iconfont icon-jinru"></text>
|
<text class="iconfont icon-jinru"></text>
|
||||||
</view>
|
</view>
|
||||||
|
|
Loading…
Reference in New Issue