Files
tcwm-uniapp-shop/my/other/moneydetail.vue
2024-06-06 11:49:50 +08:00

139 lines
3.9 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<view>
<view style="text-align: left;padding-bottom: 10rpx;">
<view v-for="(item, index) in list" :key="index" class="item">
<view>
<view style="margin-bottom: 8upx;display: flex;justify-content: space-between;">
<view class="flex" style="color: #2FB57A">
<view v-if="item.classify == 2"> 微信 </view>
<view v-if="item.classify == 1"> 支付宝 </view>
<text style="margin-bottom: 8upx;color: #2FB57A" v-if="item.state==1">提现成功</text>
<text style="margin-bottom: 8upx;color: #2FB57A" v-if="item.state==0">提现中 </text>
<text style="margin-bottom: 8upx;color: #e10a07" v-if="item.state==-1">提现失败提现金额已退回钱包</text>
</view>
<text style="color: #ecd4b4;font-size: 32upx;font-weight: 600"> {{item.money}}</text>
</view>
<view style="color: #999999;font-size: 28upx;">
<!-- <view style="margin-bottom: 8upx" v-if="item.classify ==1">支付宝提现</view> -->
<view style="margin-bottom: 8upx" v-if="item.classify == 1"> 支付宝账号{{item.zhifubao}}</view>
<view style="margin-bottom: 8upx" v-if="item.classify == 1"> 支付宝姓名{{item.zhifubaoName}}</view>
<view style="margin-bottom: 8upx"> 创建时间{{item.createAt}}</view>
<view style="margin-bottom: 8upx;text-align: right;">
<text v-if="item.type == -1" class="text-olive"
style="font-size: 32upx;font-weight: 600"><text
class="text-olive">+</text>{{item.money}}</text>
<text v-if="item.state == 1||item.state == 0" class="text-red" style="font-size: 32upx;font-weight: 600"><text
class="text-red">-</text>{{item.money}}</text>
</view>
</view>
</view>
</view>
<!-- 加载更多提示 -->
<!-- <view class="s-col is-col-24" v-if="list.length > 0">
<load-more :loadingType="loadingType" :contentText="contentText"></load-more>
</view> -->
<!-- 加载更多提示 -->
<!-- <empty v-if="list.length === 0" des="暂无明细数据" show="false"></empty> -->
<empty v-if="list.length == 0" content="暂无明细"></empty>
</view>
</view>
</template>
<script>
import empty from '@/components/empty.vue'
export default {
components: {
empty
},
data() {
return {
list: [],
page: 1,
limit: 10,
tabIndex: 1,
checkReZhiShu: '否',
checkReTuanZhang: '否',
checkReFeiZhiShu: '否',
scrollTop: false,
contentText: {
contentdown: '上拉显示更多',
contentrefresh: '正在加载...',
contentnomore: '没有更多数据了'
}
}
},
onLoad() {
this.$queue.showLoading("加载中...");
this.getList();
},
onPageScroll: function(e) {
this.scrollTop = e.scrollTop > 200;
},
methods: {
getList() {
let userId = this.$queue.getData('userId');
let data = {
page: this.page,
limit: this.limit,
shopId:uni.getStorageSync('shopId')
}
this.$Request.getT('/shop/shopmoney/selectCashOutList', data).then(res => {
if (res.code === 0) {
if (this.page === 1) {
this.list = res.data.list;
} else {
this.list = [...this.list, ...res.data.list];
}
}
uni.stopPullDownRefresh();
uni.hideLoading();
});
}
},
onReachBottom: function() {
this.page = this.page + 1;
this.getList();
},
onPullDownRefresh: function() {
this.page = 1;
this.getList();
}
}
</script>
<style lang="less">
page {
background: #FFFFFF;
}
.tui-tab-item-title {
// color: #ffffff;
font-size: 30rpx;
height: 80rpx;
line-height: 80rpx;
flex-wrap: nowrap;
white-space: nowrap;
}
.tui-tab-item-title-active {
border-bottom: 1px solid #557EFD;
color: #557EFD;
font-size: 32upx;
font-weight: bold;
border-bottom-width: 6upx;
text-align: center;
}
.item {
background: #FFFFFF;
padding: 32rpx;
margin: 32rpx;
font-size: 28rpx;
box-shadow: 7px 9px 34px rgba(0, 0, 0, 0.1);
border-radius: 16upx;
}
</style>