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} + > { * - + 查看序列号位置