From 4e57ef0328d4ea0e08f7600ac37435151e3cbce4 Mon Sep 17 00:00:00 2001 From: blak-kong <546598185@qq.com> Date: Fri, 22 Mar 2024 17:38:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E5=BA=8F=E5=88=97=E5=8F=B7?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/instrument/instrument.tsx | 43 ++++++++++++++++--- 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/src/instrument/pages/instrument/instrument.tsx b/src/instrument/pages/instrument/instrument.tsx index bb9d24f..03f1141 100644 --- a/src/instrument/pages/instrument/instrument.tsx +++ b/src/instrument/pages/instrument/instrument.tsx @@ -46,12 +46,12 @@ class Instrument extends Component { super(props); this.state = { name: "instrument", + isSerialPosition: false, isBindingError: false, isBindingError203: false, isBindingCheckError: false, style: "font-size: 28rpx; color: #ccc;", succeedShow: false, - tipShow: false, loading: true, channelList: [], channelInfo: { @@ -126,10 +126,6 @@ class Instrument extends Component { this.setState({ channelInfo }); }; - onTipShow = () => { - this.setState({ tipShow: true }); - }; - onTabTap = (type) => { this.setState({ inputType: type, @@ -532,12 +528,24 @@ class Instrument extends Component { } }; + openLookSerialPosition = () => { + console.log(this.state.channelInfo); + if (this.state.channelInfo.manualCodeBinding) { + this.setState({ isSerialPosition: true }); + } else { + msg("暂无图片"); + } + }; + closeLookSerialPosition = () => { + this.setState({ isSerialPosition: false }); + }; + render() { let { + isSerialPosition, isBindingError, isBindingError203, isBindingCheckError, - show, channelInfo, instrumentInfo, inputType, @@ -602,6 +610,24 @@ class Instrument extends Component { close={this.onBindCheckErrorClose} confirm={this.onBindCheckErrorClose} > + + + + + } + confirmButtonText="知道了" + textAlgin="center" + close={this.closeLookSerialPosition} + confirm={this.closeLookSerialPosition} + > { * - + 查看序列号位置