This commit is contained in:
yunkexin 2025-11-06 16:13:47 +08:00
parent 2776e9a2a5
commit 81f9dd9435

View File

@ -40,20 +40,8 @@ class GuideCanvas extends Component {
} }
} }
); );
if (this.props.login.OrgId == "b043b28b-bbc3-c452-6052-4fba1457abfa") {
this.setState({ visible: "flex" })
this.state.company = "XLK";
} else if (this.props.login.OrgId == "d9871ba8-0eec-9e4a-bb87-7d5a540d8913") {
this.state.company = "LYYL";
} else if (this.props.login.OrgId == "8b3c41aa-51b1-7ce9-1879-248a038c1b5c") {
this.state.company = "DCJD";
} else if (this.props.login.OrgId == "8f1cf418-8bf3-ea3f-7a6d-fc5d61247008") {
this.state.company = "LYXT";
} else if (this.props.login.OrgId == "3efd5276-632b-e379-9ff3-7a7546591fca") {
this.state.company = "GXBB";
}
QRCode.toCanvas( QRCode.toCanvas(
config.h5Web + "#/pages/apply/index?Company=" + this.state.company, config.h5Web + "#/pages/apply/index?OrgId=" + this.props.login.OrgId,
{ errorCorrectionLevel: "L", width: 140 }, { errorCorrectionLevel: "L", width: 140 },
function (err, canvas) { function (err, canvas) {
if (err) throw err; if (err) throw err;
@ -109,7 +97,7 @@ class GuideCanvas extends Component {
</div> </div>
<div <div
style={{ style={{
display: this.state.visible, display: 'none',
flexDirection: "column", flexDirection: "column",
alignItems: "center", alignItems: "center",
marginLeft: "30px", marginLeft: "30px",
@ -121,7 +109,7 @@ class GuideCanvas extends Component {
<div <div
style={{ style={{
display: this.state.visible, display: 'flex',
flexDirection: "column", flexDirection: "column",
alignItems: "center", alignItems: "center",
marginLeft: "30px", marginLeft: "30px",