Commit a03c010a by PigeonMuyz

弹窗提示

parent c33d8a75
...@@ -862,7 +862,13 @@ const CounterMixins = ComposeComponent => { ...@@ -862,7 +862,13 @@ const CounterMixins = ComposeComponent => {
} }
if (data.data.category && data.data.category.search('烟') !== -1) { if (data.data.category && data.data.category.search('烟') !== -1) {
if (this.state.banSmoke) { if (this.state.banSmoke) {
Speech.speak('云值守模式下不允许售卖香烟,请把香烟放回原位'); const msg = '云值守模式下不允许售卖香烟,请把香烟放回原位';
this.setState({voiceModal: true, voiceTitle: msg});
Speech.speak(msg);
clearTimeout(this.noAuthTimeout);
this.noAuthTimeout = setTimeout(() => {
this.setState({voiceModal: false});
}, 3000);
return; return;
} }
} }
......
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