修改搜索条件被截掉的问题,新增电表列表
This commit is contained in:
@@ -62,19 +62,19 @@
|
||||
<view class="cardItemValue" style="position: relative;">
|
||||
<view class="text" wx:if="{{user.id}}"> {{meter.money}} </view>
|
||||
<view class="text" wx:else> --- </view>
|
||||
<!-- bind:click="jumpToMeterList" -->
|
||||
<!-- bind:click="refreshMeter" -->
|
||||
<van-button
|
||||
type="info"
|
||||
size="small"
|
||||
plain="{{true}}"
|
||||
custom-style="position: absolute; right: -20rpx; bottom: -20rpx;z-index: 99;"
|
||||
wx:if="{{user.id}}"
|
||||
bind:click="refreshMeter"
|
||||
bind:click="jumpToMeterList"
|
||||
>
|
||||
<view style="width: 160rpx;display: flex;justify-content: center;">
|
||||
<van-icon name="replay" />
|
||||
<!-- 查看全部 -->
|
||||
刷新
|
||||
<!-- <van-icon name="replay" /> -->
|
||||
查看全部
|
||||
<!-- 刷新 -->
|
||||
</view>
|
||||
</van-button>
|
||||
</view>
|
||||
|
@@ -14,7 +14,7 @@ Component({
|
||||
},
|
||||
lifetimes: {
|
||||
attached() {
|
||||
this.init();
|
||||
loadingFunc(() => this.init())
|
||||
}
|
||||
},
|
||||
/**
|
||||
|
@@ -23,14 +23,15 @@
|
||||
</view>
|
||||
</view>
|
||||
</van-checkbox-group>
|
||||
<view style="height: 60rpx"></view>
|
||||
|
||||
<view class="allSelect">
|
||||
<van-checkbox value="{{ allChecked }}" bind:change="onAllChecked">
|
||||
全选
|
||||
</van-checkbox>
|
||||
<view style="flex: 1; display: flex; align-items: center; justify-content: flex-end;">
|
||||
<view style="flex: 1; display: flex; align-items: center; justify-content: flex-end;white-space: normal;word-break: keep-all;">
|
||||
<view class="allNumber"> {{ selectCount }} </view>
|
||||
笔订单,共
|
||||
笔,共
|
||||
<view class="allMoney"> ¥ {{selectMoney}} </view>
|
||||
<van-button size="small" type="info" bind:click="next" disabled="{{!selectCount}}"> 下一步 </van-button>
|
||||
</view>
|
||||
|
@@ -18,6 +18,10 @@
|
||||
.middle {
|
||||
margin-top: 26rpx;
|
||||
font-size: 32rpx;
|
||||
overflow: hidden;
|
||||
width: 350rpx;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.bottom {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// pages/meterList/index.js
|
||||
import { getTenementMeterList } from "../../service/meter";
|
||||
import { alertInfo } from "../../utils/index";
|
||||
import { alertInfo, loadingFunc } from "../../utils/index";
|
||||
import request from '../../utils/request';
|
||||
const { OK } = request;
|
||||
Page({
|
||||
@@ -12,7 +12,7 @@ Page({
|
||||
header: [
|
||||
{ key: 'address', title: '电表地址' },
|
||||
{ key: "money", title: '电表余额', },
|
||||
{ key: 'number', title: '电表总量' },
|
||||
{ key: 'overall', title: '电表总量' },
|
||||
],
|
||||
list: [{}],
|
||||
},
|
||||
@@ -36,7 +36,9 @@ Page({
|
||||
*/
|
||||
onLoad(options) {
|
||||
console.log('options', options)
|
||||
this.getMeters({ id: options?.id })
|
||||
loadingFunc(async () => {
|
||||
await this.getMeters({ id: options?.id })
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user