修改打卡输入框bug

master
qsj 2 years ago
parent 075021a38e
commit f9f825b5d4

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

Loading…
Cancel
Save