mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-22 04:19:36 +08:00
描述:填写报修信息点击故障描述区域没反应问题
This commit is contained in:
parent
ea90944756
commit
0b0f6646ec
@ -28,6 +28,9 @@ Page({
|
|||||||
id: null,
|
id: null,
|
||||||
title: null,
|
title: null,
|
||||||
userDetail: {},
|
userDetail: {},
|
||||||
|
focus: {
|
||||||
|
explain: false,
|
||||||
|
},
|
||||||
recorderManager: null, // 录音对象
|
recorderManager: null, // 录音对象
|
||||||
voiceObj: {}, // 录音文件对象
|
voiceObj: {}, // 录音文件对象
|
||||||
innerAudioContext: null, // 音频对象
|
innerAudioContext: null, // 音频对象
|
||||||
@ -609,6 +612,14 @@ Page({
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
clickFocus(e) {
|
||||||
|
let _this = this
|
||||||
|
let name = e.currentTarget.dataset.name
|
||||||
|
console.log('clickFocus', name);
|
||||||
|
_this.setData({
|
||||||
|
[`focus.${name}`]: true
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
// 显示错误消息
|
// 显示错误消息
|
||||||
showErrMsg(msg) {
|
showErrMsg(msg) {
|
||||||
|
@ -32,9 +32,9 @@
|
|||||||
<view class="label must">门牌号(地点)</view>
|
<view class="label must">门牌号(地点)</view>
|
||||||
<van-field value="{{ detail.room }}" bind:input="fieldInput" data-name="room" clearable input-class="input" placeholder="请输入" border="{{ false }}" input-align="right" />
|
<van-field value="{{ detail.room }}" bind:input="fieldInput" data-name="room" clearable input-class="input" placeholder="请输入" border="{{ false }}" input-align="right" />
|
||||||
</view>
|
</view>
|
||||||
<view class="rowColumnView" id="des">
|
<view class="rowColumnView" id="des" bind:tap="clickFocus" data-name="explain">
|
||||||
<view class="label must">故障描述</view>
|
<view class="label must">故障描述</view>
|
||||||
<van-field model:value="{{ detail.explain }}" bind:input="fieldInput" data-name="explain" input-class="textarea" type="textarea" clearable placeholder="请对故障进行描述" maxlength="{{100}}" show-word-limit border="{{false}}" autosize />
|
<van-field model:value="{{ detail.explain }}" bind:input="fieldInput" data-name="explain" input-class="textarea" type="textarea" clearable placeholder="请对故障进行描述" maxlength="{{100}}" show-word-limit border="{{false}}" focus="{{focus.explain}}" autosize />
|
||||||
</view>
|
</view>
|
||||||
<view class="rowColumnView">
|
<view class="rowColumnView">
|
||||||
<view class="label">故障图片/视频</view>
|
<view class="label">故障图片/视频</view>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user