fix:临时提交,bug修复

master
blak-kong 2 years ago
parent 625d36d025
commit 075021a38e

@ -184,9 +184,19 @@ class Index extends Component<any, any> {
}
componentDidHide() {
this.wl200UpgradeErrorFun();
Taro.closeBluetoothAdapter();
setStorageSync("isDisconnectUpdate", true); // 已断开更新
this.closeUpgradeBox();
}
/**
*
*
* */
closeUpgradeBox() {
if (this.state.isShowVersionUpgrading) {
this.wl200UpgradeErrorFun();
Taro.closeBluetoothAdapter();
setStorageSync("isDisconnectUpdate", true); // 已断开更新
}
}
showInit = async () => {

@ -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">

Loading…
Cancel
Save