|
|
@@ -0,0 +1,63 @@
|
|
|
+<template>
|
|
|
+ <div>
|
|
|
+ <block v-if="!$util.isEmpty(list.data)">
|
|
|
+ <t-table :headerBackgroundColor="'#F0F2F6'">
|
|
|
+ <t-tr header>
|
|
|
+ <t-th align="center">名称</t-th>
|
|
|
+ <t-th align="center">金额</t-th>
|
|
|
+ <t-th align="center">时间</t-th>
|
|
|
+ </t-tr>
|
|
|
+ <t-tr v-for="(item, index) in list.data" :key="index">
|
|
|
+ <t-td align="center" color="info"><view>{{item.customName}}</view></t-td>
|
|
|
+ <t-td align="center" color="info"><view>{{item.amount}}</view></t-td>
|
|
|
+ <t-td align="center" color="info"><view>{{item.addTime.substr(0,10)}}</view></t-td>
|
|
|
+ </t-tr>
|
|
|
+ </t-table>
|
|
|
+ </block>
|
|
|
+ <block v-else>
|
|
|
+ <AppWrapperEmpty title="暂无记录" :is-empty="$util.isEmpty(list.data)" />
|
|
|
+ </block>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
+import { customRechargeList } from '@/api/recharge'
|
|
|
+import list from '@/mixins/list'
|
|
|
+export default {
|
|
|
+ name: "customRechargeList",
|
|
|
+ components: {
|
|
|
+ AppWrapperEmpty
|
|
|
+ },
|
|
|
+ mixins:[list],
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+
|
|
|
+ };
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ async init(){
|
|
|
+ const res = await customRechargeList({
|
|
|
+ page:this.list.page
|
|
|
+ })
|
|
|
+ this.completes(res)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ async onPullDownRefresh() {
|
|
|
+ this.resetList();
|
|
|
+ await this.init()
|
|
|
+ uni.stopPullDownRefresh();
|
|
|
+ },
|
|
|
+ async onReachBottom() {
|
|
|
+ if (!this.list.finished) {
|
|
|
+ await this.init()
|
|
|
+ uni.stopPullDownRefresh();;
|
|
|
+ } else {
|
|
|
+ uni.stopPullDownRefresh();
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped></style>
|