fuint-uniapp-master/pages/wallet/balance/log.vue
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<template>
<view class="container">
<mescroll-body ref="mescrollRef" :sticky="true" @init="mescrollInit" :down="{ use: false }" :up="upOption"
@up="upCallback">
<view class="log-list">
<view v-for="(item, index) in list.content" :key="index" class="log-item">
<view class="item-left flex-box">
<view class="rec-status">
<text>{{ item.description ? item.description : '' }}</text>
<text v-if="!item.description">{{ item.amount > 0 ? '增加金额' : '减少金额' }}</text>
</view>
<view class="rec-time">
<text>{{ item.createTime | timeFormat('yyyy-mm-dd hh:MM') }}</text>
</view>
</view>
<view class="item-right">
<text>{{ item.amount > 0 ? '+' : '' }}{{ item.amount }}元</text>
</view>
</view>
</view>
</mescroll-body>
</view>
</template>
<script>
import MescrollBody from '@/components/mescroll-uni/mescroll-body.vue'
import MescrollMixin from '@/components/mescroll-uni/mescroll-mixins'
import * as LogApi from '@/api/balance'
import { getEmptyPaginateObj, getMoreListData } from '@/utils/app'
const pageSize = 20
export default {
components: {
MescrollBody
},
mixins: [MescrollMixin],
data() {
return {
// 余额账单明细列表
list: getEmptyPaginateObj(),
// 上拉加载配置
upOption: {
// 首次自动执行
auto: true,
// 每页数据的数量; 默认20
page: { size: pageSize },
// 数量要大于12条才显示无更多数据
noMoreSize: 20,
// 空布局
empty: {
tip: '亲,暂无账单明细.'
}
}
}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {},
后面还有 68 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。