bugfix
This commit is contained in:
@ -3,7 +3,8 @@
|
||||
"t-fab": "tdesign-miniprogram/fab/fab",
|
||||
"t-swipe-cell": "tdesign-miniprogram/swipe-cell/swipe-cell",
|
||||
"statistics-card": "/components/statistics-card",
|
||||
"t-dialog": "tdesign-miniprogram/dialog/dialog"
|
||||
"t-dialog": "tdesign-miniprogram/dialog/dialog",
|
||||
"load-more": "/components/load-more"
|
||||
},
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
@ -3,6 +3,9 @@ page {
|
||||
padding: 32rpx 0;
|
||||
background-color: #f6f6f6;
|
||||
}
|
||||
.t-navbar__content {
|
||||
--td-navbar-bg-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
.home-page {
|
||||
.t-fab {
|
||||
z-index: 99;
|
||||
@ -92,16 +95,16 @@ page {
|
||||
}
|
||||
.finance-list {
|
||||
.left-icon {
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
width: 72rpx;
|
||||
height: 72rpx;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #fff;
|
||||
font-size: larger;
|
||||
}
|
||||
.btn-wrapper {
|
||||
// height: 100%;
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
justify-content: center;
|
||||
|
||||
@ -13,6 +13,7 @@ Page({
|
||||
*/
|
||||
data: {
|
||||
showConfirmDelete: false,
|
||||
loadStatus: 1,
|
||||
permissions: [],
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
@ -47,6 +48,7 @@ Page({
|
||||
async getList() {
|
||||
this.setData({
|
||||
loading: true,
|
||||
loadStatus: 0,
|
||||
});
|
||||
const { queryParams } = this.data;
|
||||
try {
|
||||
@ -60,6 +62,7 @@ Page({
|
||||
}
|
||||
this.setData({
|
||||
completed,
|
||||
loadStatus: completed ? 3 : 1,
|
||||
total: resp.total,
|
||||
list: resp.rows,
|
||||
});
|
||||
@ -69,6 +72,9 @@ Page({
|
||||
});
|
||||
}
|
||||
} catch (e) {
|
||||
this.setData({
|
||||
loadStatus: 2,
|
||||
});
|
||||
console.log(e);
|
||||
}
|
||||
this.setData({
|
||||
|
||||
@ -3,6 +3,9 @@
|
||||
<wxs module="times" src="../../utils/time.wxs" />
|
||||
<wxs module="dict" src="../../utils/dict.wxs" />
|
||||
<wxs module="utils" src="../../utils/utils.wxs" />
|
||||
<view class="block">
|
||||
<t-navbar title="财务管理" t-class="nav" t-class-title="nav-title" />
|
||||
</view>
|
||||
<view class="home-page">
|
||||
<t-fab wx:if="{{utils.hasPermission('finance:detail:add', permissions)}}" class="float-button" icon="add" aria-label="增加" bind:click="handleAddAffairs" />
|
||||
<statistics-card statistics-data="{{statistics}}" />
|
||||
@ -22,47 +25,8 @@
|
||||
</view>
|
||||
</t-swipe-cell>
|
||||
</t-cell-group>
|
||||
<load-more status="{{loadStatus}}" />
|
||||
</view>
|
||||
<!-- <view wx:if="{{authToken}}" class="list">
|
||||
<view wx:for="{{list}}" wx:key="account" data-finance-id="{{item.financeId}}" bind:longpress="handleLongTap" data-index="{{index}}" bind:tap="handleUpdateFinance" class="{{ index === deleteIndex ? 'card shake' : 'card' }}">
|
||||
<view class="field">
|
||||
<view class="indicator"></view>
|
||||
<view class="content">
|
||||
<text class="title">事项</text>
|
||||
<text class="value">{{item.event}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="field">
|
||||
<view class="indicator"></view>
|
||||
<view class="content">
|
||||
<text class="title">类别</text>
|
||||
<text class="value">{{dict.getDictLabel(item.type, types)}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="field">
|
||||
<view class="indicator"></view>
|
||||
<view class="content">
|
||||
<text class="title">时间</text>
|
||||
<text class="value">{{times.formatDate(item.date) || "-"}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="field">
|
||||
<view class="indicator"></view>
|
||||
<view class="content">
|
||||
<text class="title">对方账户</text>
|
||||
<text class="value">{{item.oppositeCompany}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="field">
|
||||
<view class="indicator"></view>
|
||||
<view class="content">
|
||||
<text class="title">金额</text>
|
||||
<text class="value">{{item.amount}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<t-icon wx:if="{{index === deleteIndex}}" name="close-circle-filled" color="red" size="56rpx" data-finance-id="{{item.financeId}}" data-index="{{index}}" catchtap="handleDeleteFinance" class="close-button"></t-icon>
|
||||
</view>
|
||||
</view> -->
|
||||
<view wx:else class="to-login">
|
||||
<t-button icon="login" theme="primary" bind:tap="toLogin">前往登录</t-button>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user