Commit 7e4b3413 by 黄日华

暂时取消掉语音引导

parent 80234996
......@@ -1026,20 +1026,20 @@ const CounterMixins = ComposeComponent => {
};
guideVoice = () => {
if (this.nobodyInter) clearInterval(this.nobodyInter);
const that = this;
this.nobodyInter = setInterval(async () => {
if (this.state.nobodyVoice) {
await Speech.speak('您好,选购完商品后请到收银机这边付款');
await wait(5000);
await Speech.speak('请先扫描商品条码,再出示付款码');
} else {
clearInterval(that.nobodyInter);
}
}, 45000);
this.setState({
nobodyVoice: true,
});
// if (this.nobodyInter) clearInterval(this.nobodyInter);
// const that = this;
// this.nobodyInter = setInterval(async () => {
// if (this.state.nobodyVoice) {
// await Speech.speak('您好,选购完商品后请到收银机这边付款');
// await wait(5000);
// await Speech.speak('请先扫描商品条码,再出示付款码');
// } else {
// clearInterval(that.nobodyInter);
// }
// }, 45000);
// this.setState({
// nobodyVoice: true,
// });
};
pushBag = index => {
......
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