Commit 7b065fd0 by zeven

修复云值守店二维码

parent 3377c57d
...@@ -438,10 +438,11 @@ class FacePage extends Component { ...@@ -438,10 +438,11 @@ class FacePage extends Component {
}; };
setQrcode = ({action, tip, qrcode}) => { setQrcode = ({action, tip, qrcode}) => {
let p = 'j';
if (this.sense) p = 's';
if (this.state.stype === 'guard') p = 'g';
const state = { const state = {
qrCode: `${qrHost}/#/store-${action || 'leave'}-${ qrCode: `${qrHost}/#/store-${action || 'leave'}-${p}${this.storeKey}`,
this.sense ? 's' : 'j'
}${this.storeKey}`,
}; };
if (tip) { if (tip) {
state.tip = tip; state.tip = tip;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment