mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-22 00:49:37 +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, // 音频对象
|
||||||
@ -456,11 +459,11 @@ Page({
|
|||||||
|
|
||||||
// 文件-上传后
|
// 文件-上传后
|
||||||
async fileAfterRead(event) {
|
async fileAfterRead(event) {
|
||||||
Toast.loading({
|
Toast.loading({
|
||||||
message: '上传中...',
|
message: '上传中...',
|
||||||
forbidClick: true,
|
forbidClick: true,
|
||||||
duration: 0
|
duration: 0
|
||||||
})
|
})
|
||||||
let _this = this;
|
let _this = this;
|
||||||
console.log('fileAfterRead', event);
|
console.log('fileAfterRead', event);
|
||||||
// 上传完成需要更新 fileList
|
// 上传完成需要更新 fileList
|
||||||
@ -601,7 +604,7 @@ Page({
|
|||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
app.vantNotifySuccess(Notify, res.msg)
|
app.vantNotifySuccess(Notify, res.msg)
|
||||||
wx.reLaunch({
|
wx.reLaunch({
|
||||||
url: '/pages/reportRepair/query/record/record',
|
url: '/pages/reportRepair/query/record/record',
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
app.vantNotifyErr(Notify, res.msg)
|
app.vantNotifyErr(Notify, res.msg)
|
||||||
@ -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