Commit 1ecbe49b by 黄日华

收银机程序共用调整

parent e6c3a477
src/assets/Vertical/logo.png

4.94 KB | W: | H:

src/assets/Vertical/logo.png

47.8 KB | W: | H:

src/assets/Vertical/logo.png
src/assets/Vertical/logo.png
src/assets/Vertical/logo.png
src/assets/Vertical/logo.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/logo.png

19.4 KB | W: | H:

src/assets/logo.png

71.2 KB | W: | H:

src/assets/logo.png
src/assets/logo.png
src/assets/logo.png
src/assets/logo.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/logo2.png

46 KB | W: | H:

src/assets/logo2.png

58.6 KB | W: | H:

src/assets/logo2.png
src/assets/logo2.png
src/assets/logo2.png
src/assets/logo2.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -36,7 +36,6 @@ class AuthPage extends Component { ...@@ -36,7 +36,6 @@ class AuthPage extends Component {
<QRCode <QRCode
size={scaleSize(700)} size={scaleSize(700)}
logo={require('../assets/logo.png')} logo={require('../assets/logo.png')}
logoBackgroundColor="#FC4000"
backgroundColor="white" backgroundColor="white"
value={`${config.qrHost}/#/store-auth-${socket}`} value={`${config.qrHost}/#/store-auth-${socket}`}
/> />
......
...@@ -1126,6 +1126,12 @@ const CounterMixins = ComposeComponent => { ...@@ -1126,6 +1126,12 @@ const CounterMixins = ComposeComponent => {
this.submitBarcode(goods.bags[index].barcode); this.submitBarcode(goods.bags[index].barcode);
}; };
talkCall = () => {
this.props.dispatch({
type: 'agora/talkCall',
});
};
onCloseLucky = () => { onCloseLucky = () => {
this.setState({ this.setState({
luckyVisible: false, luckyVisible: false,
...@@ -1158,23 +1164,36 @@ const CounterMixins = ComposeComponent => { ...@@ -1158,23 +1164,36 @@ const CounterMixins = ComposeComponent => {
if (data.code === 1) { if (data.code === 1) {
Speech.speak(data.msg || '门已经打开,谢谢惠顾'); Speech.speak(data.msg || '门已经打开,谢谢惠顾');
} else if (data.code === -2) { } else if (data.code === -2) {
Speech.speak(data.msg || '开门失败,请联系客服处理'); Speech.speak(data.msg || '开门失败,正在为您呼叫客服');
this.talkCall();
} else if (data.code === -1) {
Speech.speak(data.msg || '开门失败,请扫收银机二维码认证手机号');
this.setState({
noBuyModal: true,
});
setTimeout(() => {
this.setState({noBuyModal: false});
}, 30000);
} else { } else {
setTimeout(async () => { setTimeout(async () => {
const {data: dataNext} = await this.props.dispatch({ const {data: dataNext} = await this.props.dispatch({
type: 'store/open', type: 'store/open',
orderId: this.orderId, orderId: this.orderId,
isScan: !this.state.isInduction,
}); });
if (dataNext.code === 1) { if (dataNext.code === 1) {
Speech.speak(data.msg || '门已经打开,谢谢惠顾'); Speech.speak(data.msg || '门已经打开,谢谢惠顾');
} else { } else if (data.code === -1) {
Speech.speak(data.msg || '开门失败,请联系客服处理'); Speech.speak(data.msg || '开门失败,请扫收银机二维码认证手机号');
this.setState({ this.setState({
noBuyModal: true, noBuyModal: true,
}); });
setTimeout(() => { setTimeout(() => {
this.setState({noBuyModal: false}); this.setState({noBuyModal: false});
}, 30000); }, 30000);
} else {
Speech.speak(data.msg || '开门失败,正在为您呼叫客服');
this.talkCall();
} }
}, 500); }, 500);
} }
......
...@@ -596,7 +596,7 @@ class VerticalPage extends Component { ...@@ -596,7 +596,7 @@ class VerticalPage extends Component {
contact, contact,
hintVisible, hintVisible,
logoVisible, logoVisible,
logo, // logo,
priceVisible, priceVisible,
stype, stype,
isCard, isCard,
...@@ -667,7 +667,8 @@ class VerticalPage extends Component { ...@@ -667,7 +667,8 @@ class VerticalPage extends Component {
<QRCode <QRCode
logoSize={width > 801 ? 50 : scaleSize(100)} logoSize={width > 801 ? 50 : scaleSize(100)}
// logoBackgroundColor="#fc4000" // logoBackgroundColor="#fc4000"
logo={logoVisible && require('../assets/logo2.png')} //2023.11.1 logo={logoVisible && require('../assets/logo2.png')}
logo={require('../assets/logo2.png')}
size={width > 801 ? 200 : scaleSize(400)} size={width > 801 ? 200 : scaleSize(400)}
value={`${qrHost || login}/#/store-leave-g${this.storeKey}`} value={`${qrHost || login}/#/store-leave-g${this.storeKey}`}
/> />
...@@ -732,15 +733,19 @@ class VerticalPage extends Component { ...@@ -732,15 +733,19 @@ class VerticalPage extends Component {
/> />
<View style={styles.header}> <View style={styles.header}>
<View style={styles.left}> <View style={styles.left}>
{logoVisible && {/*2023.11.1{logoVisible &&*/}
(logo ? ( {/* (logo ? (*/}
<Image style={styles.logo} source={{uri: logo}} /> {/* <Image style={styles.logo} source={{uri: logo}} />*/}
) : ( {/* ) : (*/}
{/* <Image*/}
{/* style={styles.logo}*/}
{/* source={require('../assets/Vertical/logo.png')}*/}
{/* />*/}
{/* ))}*/}
<Image <Image
style={styles.logo} style={styles.logo}
source={require('../assets/Vertical/logo.png')} source={require('../assets/Vertical/logo.png')}
/> />
))}
<Image style={styles.counterText} source={counterText} /> <Image style={styles.counterText} source={counterText} />
<Image source={img24h} /> <Image source={img24h} />
</View> </View>
...@@ -1110,7 +1115,7 @@ class VerticalPage extends Component { ...@@ -1110,7 +1115,7 @@ class VerticalPage extends Component {
</View> </View>
<View style={styles.paymentRightCode}> <View style={styles.paymentRightCode}>
<QRCode <QRCode
logoSize={width > 801 ? 50 : scaleSize(60)} logoSize={width > 801 ? 60 : scaleSize(75)}
// logoBackgroundColor="#fc4000" // logoBackgroundColor="#fc4000"
logo={logoVisible && require('../assets/logo2.png')} logo={logoVisible && require('../assets/logo2.png')}
size={width > 801 ? 200 : scaleSize(250)} size={width > 801 ? 200 : scaleSize(250)}
...@@ -1317,11 +1322,12 @@ const styles = { ...@@ -1317,11 +1322,12 @@ const styles = {
}, },
left: { left: {
flexDirection: 'row', flexDirection: 'row',
alignItems: 'center',
width: width > 801 ? '60%' : '55%', width: width > 801 ? '60%' : '55%',
}, },
logo: { logo: {
width: width > 801 ? 100 : scaleSize(75), width: width > 801 ? 135 : scaleSize(100),
height: width > 801 ? 100 : scaleSize(75), height: width > 801 ? 135 : scaleSize(100),
}, },
counterText: { counterText: {
marginLeft: width > 801 ? 40 : scaleSize(22), marginLeft: width > 801 ? 40 : scaleSize(22),
......
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