Commit 80234996 by 黄日华

屏保添加无码商品

parent 44751709
......@@ -71,7 +71,7 @@ const CounterMixins = ComposeComponent => {
cloudFinishModal: false,
noBuyModal: false,
logoVisible: true,
nobodyVoice: true,
nobodyVoice: false,
};
componentWillMount = async () => {
......@@ -135,7 +135,9 @@ const CounterMixins = ComposeComponent => {
});
this.printerConnect();
this.listen();
if (this.state.nobodyVoice) {
this.guideVoice();
}
};
initSetting = () => {
......@@ -153,7 +155,6 @@ const CounterMixins = ComposeComponent => {
type: 'store/findModuleSetting',
group,
});
console.warn(data.data);
if (data.code === 1 && data.data) {
const state = {priceVisible: data.data.priceVisible};
if (data.data.cardCounter) {
......@@ -261,7 +262,6 @@ const CounterMixins = ComposeComponent => {
window.socket.on(
'goodsOperate',
({type, number, row, barcode, price}) => {
console.warn('goodsOperate', barcode);
const index = row;
if (type === 'add') {
// 新增
......@@ -1027,15 +1027,15 @@ const CounterMixins = ComposeComponent => {
guideVoice = () => {
if (this.nobodyInter) clearInterval(this.nobodyInter);
// const that = this;
const that = this;
this.nobodyInter = setInterval(async () => {
// if (this.state.nobodyVoice) {
// await Speech.speak('您好,选购完商品后请到收银机这边付款');
// await wait(5000);
// await Speech.speak('请先扫描商品条码,再出示付款码');
// } else {
// clearInterval(that.nobodyInter);
// }
if (this.state.nobodyVoice) {
await Speech.speak('您好,选购完商品后请到收银机这边付款');
await wait(5000);
await Speech.speak('请先扫描商品条码,再出示付款码');
} else {
clearInterval(that.nobodyInter);
}
}, 45000);
this.setState({
nobodyVoice: true,
......
......@@ -706,7 +706,15 @@ class VerticalPage extends Component {
justifyContent: 'flex-end',
alignItems: 'center',
}}>
<View style={[styles.guardModal_button_call, {opacity: 0}]} />
<Touch onPress={() => this.props.handleCodeless()}>
<View
style={[
styles.guardModal_button_nobuy,
{marginRight: 50},
]}>
<Text style={styles.callText}>无码商品</Text>
</View>
</Touch>
<Touch onPress={() => this.props.handleBarcode()}>
<View style={styles.guardModal_button_nobuy}>
<Text style={styles.callText}>输入条码</Text>
......
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