修改打卡输入框bug

master
qsj 2 years ago
parent 075021a38e
commit f9f825b5d4

@ -55,6 +55,7 @@ export default class InstrumentClickInUpload extends Component<any, any> {
secondClockImg: null, secondClockImg: null,
thirdClockImg: null, thirdClockImg: null,
}, },
clockcontents:'',
// 现在选中的数据 // 现在选中的数据
currentInfo: { currentInfo: {
modeVideo: "", modeVideo: "",
@ -260,10 +261,11 @@ export default class InstrumentClickInUpload extends Component<any, any> {
videoLoadedMetaData = async () => {}; videoLoadedMetaData = async () => {};
handleTextareaInput = async (e) => { handleTextareaInput = async (e) => {
let { punchInInfo } = this.state; const punchInInfo = this.state.punchInInfo;
punchInInfo.clockContent = e.detail.value; punchInInfo.clockContent = e.detail.value;
let clockcontents = e.detail.value;
this.setState({ punchInInfo }); this.setState({ punchInInfo, clockcontents });
// this.setState({ punchInInfo:{...punchInInfo,clockContent: e.detail.value} });
}; };
onModeLockOpen = async () => { onModeLockOpen = async () => {
@ -294,6 +296,7 @@ export default class InstrumentClickInUpload extends Component<any, any> {
punchInInfo, punchInInfo,
isTipShow, isTipShow,
currentInfo, currentInfo,
clockcontents,
modeInfo, modeInfo,
nurseInfo, nurseInfo,
isModeLock, isModeLock,
@ -474,10 +477,10 @@ export default class InstrumentClickInUpload extends Component<any, any> {
</View> </View>
<View className="content"> <View className="content">
<Textarea <Textarea
placeholder-className="placeholder" placeholder-className="placeh和给g'holder"
maxlength={100} maxlength={100}
onInput={this.handleTextareaInput} onInput={this.handleTextareaInput}
value={punchInInfo.clockContent} value={clockcontents}
placeholder="请记录一下今天打卡的心得吧~" placeholder="请记录一下今天打卡的心得吧~"
></Textarea> ></Textarea>
{/* {tipshow && ( {/* {tipshow && (

Loading…
Cancel
Save