修改样式,修改不能输入负数的问题
This commit is contained in:
@@ -19,6 +19,11 @@ Component({
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
|
||||
jumpToHistory() {
|
||||
const { meterInfo } = this.data;
|
||||
wx.navigateTo({
|
||||
url: `/pages/readingHistory/index?meter=${meterInfo?.id}&park=${meterInfo?.parkId}`,
|
||||
})
|
||||
},
|
||||
}
|
||||
})
|
@@ -3,6 +3,7 @@
|
||||
"usingComponents": {
|
||||
"van-tag": "@vant/weapp/tag/index",
|
||||
"van-row": "@vant/weapp/row/index",
|
||||
"van-col": "@vant/weapp/col/index"
|
||||
"van-col": "@vant/weapp/col/index",
|
||||
"van-button": "@vant/weapp/button/index"
|
||||
}
|
||||
}
|
@@ -1,12 +1,18 @@
|
||||
<!--pages/writeReading/components/meterInfo/index.wxml-->
|
||||
<view class="wrapper">
|
||||
<view class="title">
|
||||
<text> 电表列表 </text>
|
||||
<view class="title" style="display: flex; justify-content: space-between; align-items: center;">
|
||||
<text> 电表详情 </text>
|
||||
<view class="time">
|
||||
<!-- 2025年9月5日 -->
|
||||
<van-button size="small" type="info" bind:click="jumpToHistory">
|
||||
历史记录
|
||||
</van-button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="info">
|
||||
<view class="title">
|
||||
<view class="address">
|
||||
标1东-307
|
||||
{{ meterInfo.address }}
|
||||
</view>
|
||||
<view class="meterType">
|
||||
<van-tag type="primary">华昌宝能收费</van-tag>
|
||||
@@ -17,7 +23,7 @@
|
||||
<van-row gutter="20">
|
||||
<van-col span="12">
|
||||
<view class="text">
|
||||
<view>
|
||||
<view class="titleText">
|
||||
编号
|
||||
</view>
|
||||
<view>
|
||||
@@ -27,7 +33,7 @@
|
||||
</van-col>
|
||||
<van-col span="12">
|
||||
<view class="text">
|
||||
<view>
|
||||
<view class="titleText">
|
||||
类型
|
||||
</view>
|
||||
<view wx:if="{{meterInfo.meterBelongType === 0}}">
|
||||
@@ -43,7 +49,7 @@
|
||||
</van-col>
|
||||
<van-col span="12">
|
||||
<view class="text">
|
||||
<view>
|
||||
<view class="titleText">
|
||||
状态
|
||||
</view>
|
||||
<view wx:if="{{meterInfo.enabled}}">
|
||||
@@ -56,7 +62,7 @@
|
||||
</van-col>
|
||||
<van-col span="12">
|
||||
<view class="text">
|
||||
<view>
|
||||
<view class="titleText">
|
||||
读数
|
||||
</view>
|
||||
<view>
|
||||
|
@@ -34,4 +34,8 @@
|
||||
|
||||
.wrapper > .title {
|
||||
font-size: 32rpx;
|
||||
}
|
||||
|
||||
.titleText {
|
||||
color: rgb(150, 137, 137);
|
||||
}
|
Reference in New Issue
Block a user