修改部分内容
This commit is contained in:
@@ -16,6 +16,26 @@ Page({
|
||||
list: [],
|
||||
page: 1,
|
||||
size: 999,
|
||||
header: [
|
||||
{ key: 'day', title: '日期', },
|
||||
{ key: "money", title: '充值金额', renderBody: (item) => {
|
||||
if (item.type === 1 || item.type === 7) {
|
||||
return item.topFee
|
||||
} else if (item.type === 5 || item.type === 6 || item.type === 8) {
|
||||
return `-${item.topFee}`
|
||||
} else {
|
||||
return 0
|
||||
}
|
||||
} },
|
||||
{ key: 'overall', title: '电费', renderBody: (item) => {
|
||||
if (item.type == 1 || item.type === 5 || item.type === 6 || item.type === 7 || item.type === 8) {
|
||||
return 0;
|
||||
} else {
|
||||
return item.money
|
||||
}
|
||||
} },
|
||||
{ key: 'balance', title: '电表余额' },
|
||||
],
|
||||
},
|
||||
|
||||
/**
|
||||
|
@@ -6,6 +6,7 @@
|
||||
"van-tag": "@vant/weapp/tag/index",
|
||||
"van-row": "@vant/weapp/row/index",
|
||||
"empty": "/components/empty/index",
|
||||
"table": "/components/table/table",
|
||||
"van-col": "@vant/weapp/col/index"
|
||||
},
|
||||
"navigationStyle": "custom"
|
||||
|
@@ -11,7 +11,7 @@
|
||||
</view>
|
||||
|
||||
<view class="customTable" wx:if="{{list.length}}">
|
||||
<view class="customTableTile">
|
||||
<!-- <view class="customTableTile">
|
||||
<van-row>
|
||||
<van-col span="4">
|
||||
<view style="text-align: center;"> 日期 </view>
|
||||
@@ -50,7 +50,15 @@
|
||||
</van-row>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view> -->
|
||||
<table
|
||||
header="{{header}}"
|
||||
list="{{list}}"
|
||||
border="{{true}}"
|
||||
topStyle="text-align: center"
|
||||
bodyStyle="text-align: center"
|
||||
topColor="rgb(242,248,246)"
|
||||
/>
|
||||
</view>
|
||||
<empty bind:refresh="getList" wx:else />
|
||||
</view>
|
||||
|
@@ -84,3 +84,8 @@
|
||||
border-top: 0rpx;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
|
||||
|
||||
page {
|
||||
background-color: var(--transparent-green);
|
||||
}
|
@@ -27,8 +27,8 @@
|
||||
"name": "pages/workBench/index",
|
||||
"pathName": "pages/workBench/index",
|
||||
"query": "",
|
||||
"scene": null,
|
||||
"launchMode": "default"
|
||||
"launchMode": "default",
|
||||
"scene": null
|
||||
},
|
||||
{
|
||||
"name": "pages/workBench/index",
|
||||
|
@@ -45,8 +45,8 @@ export function getConfigByEnv() {
|
||||
switch (envVersion) {
|
||||
// 开发版
|
||||
case 'develop':
|
||||
api = "http://localhost:8000"
|
||||
// api = "https://zgd.hbhcbn.com/api3"
|
||||
// api = "http://localhost:8000"
|
||||
api = "https://zgd.hbhcbn.com/api3"
|
||||
// TODO: 发布正式时使用此路径
|
||||
// api = "https://zgd.hbhcbn.com/wxApi"
|
||||
// api = "http://127.0.0.1:4523/m1/4143821-0-default"
|
||||
|
Reference in New Issue
Block a user