Commit a7d458c1 by zeven

Merge remote-tracking branch 'origin/hzp'

parents 205530bd f2cfe15c
...@@ -4,7 +4,9 @@ import {FlatList, Image, Modal, ScrollView, Text, View} from 'react-native'; ...@@ -4,7 +4,9 @@ import {FlatList, Image, Modal, ScrollView, Text, View} from 'react-native';
import {font} from '../utils/common'; import {font} from '../utils/common';
import NP from '../utils/np'; import NP from '../utils/np';
import {scaleSize, setSpText} from '../utils/screen'; import {scaleSize, setSpText} from '../utils/screen';
import Speech from '../utils/Speech';
import ModalStyles from './Modal/styles'; import ModalStyles from './Modal/styles';
import Touch from './Touch';
const mStyles = { const mStyles = {
...ModalStyles, ...ModalStyles,
...@@ -119,6 +121,11 @@ class OrderDetailMini extends Component { ...@@ -119,6 +121,11 @@ class OrderDetailMini extends Component {
</View> </View>
); );
onNoBuy = async () => {
const {data} = await this.props.dispatch({type: 'store/noBuyGoGoGo'});
Speech.speak(data.msg);
};
render() { render() {
const {goodsArr, faceType, ...props} = this.props; const {goodsArr, faceType, ...props} = this.props;
let totalPrice = 0; // 总价 let totalPrice = 0; // 总价
...@@ -213,6 +220,24 @@ class OrderDetailMini extends Component { ...@@ -213,6 +220,24 @@ class OrderDetailMini extends Component {
style={styles.emptyImg} style={styles.emptyImg}
/> />
</View> </View>
<Touch onPress={() => this.onNoBuy()}>
<View
style={{
backgroundColor:
faceType === 'wxpay' ? '#24af41' : '#09a1e8',
width: scaleSize(600),
height: scaleSize(100),
display: 'flex',
justifyContent: 'center',
alignContent: 'center',
alignItems: 'center',
borderRadius: 20,
}}>
<Text style={{color: '#fff', fontSize: scaleSize(44)}}>
无购物出店
</Text>
</View>
</Touch>
</View> </View>
</View> </View>
)} )}
...@@ -383,6 +408,8 @@ const styles = { ...@@ -383,6 +408,8 @@ const styles = {
height: scaleSize(1150), height: scaleSize(1150),
resizeMode: 'contain', resizeMode: 'contain',
}, },
guardModal_button_nobuy: {},
callText: {},
}; };
export default OrderDetailMini; export default OrderDetailMini;
...@@ -57,6 +57,10 @@ class TipsModal extends Component { ...@@ -57,6 +57,10 @@ class TipsModal extends Component {
...styles.reset, ...styles.reset,
color: '#1b7dc7', color: '#1b7dc7',
}; };
styles.tryAngin = {
...styles.tryAngin,
backgroundColor: '#1b7dc7',
};
} }
return ( return (
<Modal styles={mStyles} {...props}> <Modal styles={mStyles} {...props}>
...@@ -82,6 +86,7 @@ class TipsModal extends Component { ...@@ -82,6 +86,7 @@ class TipsModal extends Component {
<View style={styles.container}> <View style={styles.container}>
{qrCode && ( {qrCode && (
<View style={styles.qrcode}> <View style={styles.qrcode}>
<Text>
<QRCode <QRCode
logoSize={scaleSize(80)} logoSize={scaleSize(80)}
// logoBackgroundColor="#fc4000" // logoBackgroundColor="#fc4000"
...@@ -89,6 +94,7 @@ class TipsModal extends Component { ...@@ -89,6 +94,7 @@ class TipsModal extends Component {
size={scaleSize(360)} size={scaleSize(360)}
value={qrCode} value={qrCode}
/> />
</Text>
</View> </View>
)} )}
<Text <Text
...@@ -97,6 +103,15 @@ class TipsModal extends Component { ...@@ -97,6 +103,15 @@ class TipsModal extends Component {
style={styles.tip}> style={styles.tip}>
{tip} {tip}
</Text> </Text>
<Touch onPress={() => console.log('1')}>
<View style={styles.tryAngin}>
<Image
source={require('../assets/shualian.png')}
style={styles.tryImg}
/>
<Text style={styles.tryText}>重新刷脸</Text>
</View>
</Touch>
</View> </View>
{!qrCode && flags && ( {!qrCode && flags && (
<View style={styles.footer}> <View style={styles.footer}>
...@@ -135,7 +150,7 @@ const styles = { ...@@ -135,7 +150,7 @@ const styles = {
position: 'absolute', position: 'absolute',
}, },
modal: { modal: {
height: '40%', height: '50%',
width: '80%', width: '80%',
marginLeft: '10%', marginLeft: '10%',
marginTop: '40%', marginTop: '40%',
...@@ -237,6 +252,23 @@ const styles = { ...@@ -237,6 +252,23 @@ const styles = {
fontSize: setSpText(45), fontSize: setSpText(45),
color: '#2BA245', color: '#2BA245',
}, },
tryAngin: {
backgroundColor: '#24af41',
width: scaleSize(370),
height: scaleSize(100),
display: 'flex',
flexDirection: 'row',
justifyContent: 'center',
alignContent: 'center',
alignItems: 'center',
borderRadius: 20,
},
tryText: {color: '#fff', fontSize: scaleSize(38)},
tryImg: {
width: scaleSize(38),
height: scaleSize(38),
marginRight: 10,
},
}; };
export default TipsModal; export default TipsModal;
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