修改解绑表的时候读数问题,抄表路线的抄表记录可以查看图片
This commit is contained in:
30
pages/readingHistory/components/detailModal/index.js
Normal file
30
pages/readingHistory/components/detailModal/index.js
Normal file
@@ -0,0 +1,30 @@
|
||||
// pages/readingHistory/components/detailModal/index.js
|
||||
Component({
|
||||
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
visible: Boolean,
|
||||
detail: Object,
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
showImage() {
|
||||
this.setData({ show: true })
|
||||
},
|
||||
onClose() {
|
||||
this.setData({ show: false })
|
||||
}
|
||||
}
|
||||
})
|
||||
9
pages/readingHistory/components/detailModal/index.json
Normal file
9
pages/readingHistory/components/detailModal/index.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"van-dialog": "@vant/weapp/dialog/index",
|
||||
"van-field": "@vant/weapp/field/index",
|
||||
"van-image": "@vant/weapp/image/index",
|
||||
"van-popup": "@vant/weapp/popup/index"
|
||||
}
|
||||
}
|
||||
64
pages/readingHistory/components/detailModal/index.wxml
Normal file
64
pages/readingHistory/components/detailModal/index.wxml
Normal file
@@ -0,0 +1,64 @@
|
||||
<!--pages/readingHistory/components/detailModal/index.wxml-->
|
||||
<van-dialog
|
||||
use-slot
|
||||
title="详情"
|
||||
show="{{ visible }}"
|
||||
confirmButtonText="关闭"
|
||||
bind:close="onClose"
|
||||
>
|
||||
<view class="modalContentWrapper">
|
||||
<van-field
|
||||
value="{{ detail.readAt }}"
|
||||
label="时间"
|
||||
readonly
|
||||
border="{{ false }}"
|
||||
use-button-slot
|
||||
title-width="100rpx"
|
||||
>
|
||||
</van-field>
|
||||
<van-field
|
||||
value="{{ detail.overall }}"
|
||||
placeholder="请输入读数"
|
||||
label="读数"
|
||||
readonly
|
||||
type="digit"
|
||||
border="{{ false }}"
|
||||
title-width="100rpx"
|
||||
>
|
||||
</van-field>
|
||||
<van-field
|
||||
wx:if="{{!!detail.url}}"
|
||||
value="{{ detail.overall }}"
|
||||
label="图片"
|
||||
readonly
|
||||
border="{{ false }}"
|
||||
title-width="100rpx"
|
||||
use-button-slot
|
||||
>
|
||||
<view slot="input">
|
||||
<van-image
|
||||
width="100"
|
||||
height="100"
|
||||
fit="contain"
|
||||
src="{{detail.url}}"
|
||||
bind:click="showImage"
|
||||
/>
|
||||
</view>
|
||||
</van-field>
|
||||
</view>
|
||||
|
||||
</van-dialog>
|
||||
|
||||
<van-popup
|
||||
show="{{ show }}"
|
||||
bind:close="onClose"
|
||||
z-index="99999"
|
||||
>
|
||||
<van-image
|
||||
width="100vw"
|
||||
height="99.1vh"
|
||||
fit="contain"
|
||||
src="{{detail.url}}"
|
||||
bind:click="onClose"
|
||||
/>
|
||||
</van-popup>
|
||||
1
pages/readingHistory/components/detailModal/index.wxss
Normal file
1
pages/readingHistory/components/detailModal/index.wxss
Normal file
@@ -0,0 +1 @@
|
||||
/* pages/readingHistory/components/detailModal/index.wxss */
|
||||
Reference in New Issue
Block a user