修改样式

This commit is contained in:
2024-06-17 17:36:07 +08:00
parent 56e08863de
commit 75713f1e97
16 changed files with 72 additions and 40 deletions

View File

@@ -23,7 +23,7 @@ Page({
const { page, list } = this.data;
const { code, data, message } = await getBillList(page)
if (!data?.length) {
alertInfo("没更多了")
alertInfo("没更多了")
return;
}
this.setData({

View File

@@ -1,7 +1,8 @@
{
"usingComponents": {
"navigator": "/components/navigator/index",
"van-icon": "@vant/weapp/icon/index"
"van-icon": "@vant/weapp/icon/index",
"empty": "/components/empty/index"
},
"navigationStyle": "custom"
}

View File

@@ -1,8 +1,12 @@
<!--pages/billList/index.wxml-->
<navigator title="电费账单" canBack="{{true}}" />
<view class="itemWrapper" wx:for="{{list}}" wx:key="index">
<van-icon name="balance-list-o" />
<view class="time"> {{ item.time }} </view>
<view class="operate" bind:tap="jumpToDetail" data-id="{{item.id}}"> 查看详细 </view>
<view wx:if="{{!list.length}}">
<empty bind:refresh="init" />
</view>
<view wx:else>
<view class="itemWrapper" wx:for="{{list}}" wx:key="index">
<van-icon name="balance-list-o" />
<view class="time"> {{ item.time }} </view>
<view class="operate" bind:tap="jumpToDetail" data-id="{{item.id}}"> 查看详细 </view>
</view>
</view>