|
|
|
|
@ -59,6 +59,7 @@ export default class Recording extends Component<any, any> {
|
|
|
|
|
clockImageList: [],
|
|
|
|
|
clockContent: "",
|
|
|
|
|
},
|
|
|
|
|
clockContent: "",
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -110,7 +111,8 @@ export default class Recording extends Component<any, any> {
|
|
|
|
|
clockImageList: res.data.data.clockImg,
|
|
|
|
|
clockContent: res.data.data.clockContent,
|
|
|
|
|
};
|
|
|
|
|
this.setState({ punchInInfo });
|
|
|
|
|
let clockContent = res.data.data.clockContent;
|
|
|
|
|
this.setState({ punchInInfo, clockContent });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -174,7 +176,8 @@ export default class Recording extends Component<any, any> {
|
|
|
|
|
handleTextareaInput(e) {
|
|
|
|
|
const punchInInfo = this.state.punchInInfo;
|
|
|
|
|
punchInInfo.clockContent = e.detail.value;
|
|
|
|
|
this.setState({ punchInInfo });
|
|
|
|
|
let clockContent = e.detail.value;
|
|
|
|
|
this.setState({ punchInInfo, clockContent });
|
|
|
|
|
}
|
|
|
|
|
// 打开/关闭弹窗
|
|
|
|
|
setShow(show: boolean) {
|
|
|
|
|
@ -330,6 +333,7 @@ export default class Recording extends Component<any, any> {
|
|
|
|
|
monthTime,
|
|
|
|
|
show,
|
|
|
|
|
punchInInfo,
|
|
|
|
|
clockContent,
|
|
|
|
|
} = this.state;
|
|
|
|
|
return (
|
|
|
|
|
<Block>
|
|
|
|
|
@ -660,11 +664,11 @@ export default class Recording extends Component<any, any> {
|
|
|
|
|
placeholder="请记录一下今天的护理心得吧"
|
|
|
|
|
maxlength={120}
|
|
|
|
|
onInput={this.handleTextareaInput.bind(this)}
|
|
|
|
|
value={punchInInfo.clockContent}
|
|
|
|
|
value={clockContent}
|
|
|
|
|
></Textarea>
|
|
|
|
|
</View>
|
|
|
|
|
<View className="tip">
|
|
|
|
|
{"(" + (punchInInfo.clockContent.length || 0) + "/120)"}
|
|
|
|
|
{"(" + (clockContent.length || 0) + "/120)"}
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
<View className="popbtnbox flex aitems jcenter">
|
|
|
|
|
|