查看序列号位置

master
blak-kong 2 years ago
parent 88bc691525
commit 4e57ef0328

@ -46,12 +46,12 @@ class Instrument extends Component<any, any> {
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<any, any> {
this.setState({ channelInfo });
};
onTipShow = () => {
this.setState({ tipShow: true });
};
onTabTap = (type) => {
this.setState({
inputType: type,
@ -532,12 +528,24 @@ class Instrument extends Component<any, any> {
}
};
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<any, any> {
close={this.onBindCheckErrorClose}
confirm={this.onBindCheckErrorClose}
></PopupAlert>
<PopupAlert
isShow={isSerialPosition}
title="序列号位置"
content={
<View>
<Image
style="width: 100%;height:200px"
mode="aspectFill"
src={channelInfo.manualCodeBinding}
></Image>
</View>
}
confirmButtonText="知道了"
textAlgin="center"
close={this.closeLookSerialPosition}
confirm={this.closeLookSerialPosition}
></PopupAlert>
</View>
<Canvas
style="position: fixed;left:-10000px;max-width: 1024px;max-height: 768px;"
@ -726,7 +752,10 @@ class Instrument extends Component<any, any> {
*
</Text>
</View>
<View className="label_text" onClick={this.onTipShow}>
<View
className="label_text"
onClick={this.openLookSerialPosition}
>
<Text className="label-tips"></Text>
<Image
className="right_icon"

Loading…
Cancel
Save