fix:临时提交,bug修复

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

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

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

Loading…
Cancel
Save