Commit 288a60d1 by 修福龙

支付宝设备的界面兼容

parent 85c3f209
src/assets/Vertical/first.jpg

167 KB | W: | H:

src/assets/Vertical/first.jpg

172 KB | W: | H:

src/assets/Vertical/first.jpg
src/assets/Vertical/first.jpg
src/assets/Vertical/first.jpg
src/assets/Vertical/first.jpg
  • 2-up
  • Swipe
  • Onion skin
src/assets/Vertical/second.jpg

134 KB | W: | H:

src/assets/Vertical/second.jpg

134 KB | W: | H:

src/assets/Vertical/second.jpg
src/assets/Vertical/second.jpg
src/assets/Vertical/second.jpg
src/assets/Vertical/second.jpg
  • 2-up
  • Swipe
  • Onion skin
src/assets/Vertical/third.jpg

137 KB | W: | H:

src/assets/Vertical/third.jpg

151 KB | W: | H:

src/assets/Vertical/third.jpg
src/assets/Vertical/third.jpg
src/assets/Vertical/third.jpg
src/assets/Vertical/third.jpg
  • 2-up
  • Swipe
  • Onion skin
...@@ -15,6 +15,7 @@ import Toast from '../components/Toast'; ...@@ -15,6 +15,7 @@ import Toast from '../components/Toast';
import NP from '../utils/np'; import NP from '../utils/np';
import {total} from '../utils/validity'; import {total} from '../utils/validity';
import RedPacketModal from '../components/RedPacketModal'; import RedPacketModal from '../components/RedPacketModal';
import {width, scaleSize} from '../utils/screen';
window.RN = RN; window.RN = RN;
window.Toast = Toast; window.Toast = Toast;
...@@ -24,11 +25,12 @@ const mStyles = { ...@@ -24,11 +25,12 @@ const mStyles = {
...ModalStyles, ...ModalStyles,
innerContainer: { innerContainer: {
...ModalStyles.innerContainer, ...ModalStyles.innerContainer,
width: 777, width: width > 777 ? 777 : scaleSize(900),
}, },
header: { header: {
...ModalStyles.header, ...ModalStyles.header,
fontSize: font.title, fontSize: font.title,
width: width > 777 ? '100%' : '95%',
}, },
}; };
......
...@@ -15,7 +15,7 @@ import phone from '../assets/Vertical/phone.png'; ...@@ -15,7 +15,7 @@ import phone from '../assets/Vertical/phone.png';
import {login} from '../utils/config'; import {login} from '../utils/config';
import {colors} from '../utils/common'; import {colors} from '../utils/common';
import WxFacepay from '../utils/WxFacepay'; import WxFacepay from '../utils/WxFacepay';
import {width} from '../utils/screen'; import {width, setSpText, scaleSize, scaleHeight} from '../utils/screen';
import Speech from '../utils/Speech'; import Speech from '../utils/Speech';
import delay from '../utils/delay'; import delay from '../utils/delay';
import Smilepay from '../utils/Smilepay'; import Smilepay from '../utils/Smilepay';
...@@ -294,7 +294,12 @@ class VerticalPage extends Component { ...@@ -294,7 +294,12 @@ class VerticalPage extends Component {
</View> </View>
</View> </View>
</View> </View>
<View style={{height: 20, backgroundColor: '#F0F0F0'}} /> <View
style={{
height: width > 801 ? 20 : scaleHeight(30),
backgroundColor: '#F0F0F0',
}}
/>
</View> </View>
); );
}; };
...@@ -499,9 +504,12 @@ class VerticalPage extends Component { ...@@ -499,9 +504,12 @@ class VerticalPage extends Component {
</View> </View>
<View style={{width: '10%', flexDirection: 'column'}}> <View style={{width: '10%', flexDirection: 'column'}}>
<View <View
style={{height: width > 801 ? 81 : 77, backgroundColor: '#fff'}} style={{
height: width > 801 ? 81 : scaleHeight(118),
backgroundColor: '#fff',
}}
/> />
<View style={{height: width > 801 ? 8 : 10}} /> <View style={{height: width > 801 ? 8 : scaleHeight(17.1)}} />
<View style={styles.pagination}> <View style={styles.pagination}>
<Touch <Touch
disabled={current <= 1} disabled={current <= 1}
...@@ -676,10 +684,10 @@ class VerticalPage extends Component { ...@@ -676,10 +684,10 @@ class VerticalPage extends Component {
</View> </View>
<View style={styles.paymentRightCode}> <View style={styles.paymentRightCode}>
<QRCode <QRCode
logoSize={width > 801 ? 50 : 40} logoSize={width > 801 ? 50 : scaleSize(60)}
// logoBackgroundColor="#fc4000" // logoBackgroundColor="#fc4000"
logo={require('../assets/logo2.png')} logo={require('../assets/logo2.png')}
size={width > 801 ? 200 : 180} size={width > 801 ? 200 : scaleSize(250)}
value={`${qrHost || login}/#/counter-order-${admin.socket}`} value={`${qrHost || login}/#/counter-order-${admin.socket}`}
/> />
</View> </View>
...@@ -798,40 +806,30 @@ const styles = { ...@@ -798,40 +806,30 @@ const styles = {
flexDirection: 'row', flexDirection: 'row',
backgroundColor: '#fc4000', backgroundColor: '#fc4000',
height: '6%', height: '6%',
paddingRight: width > 801 ? 40 : 20, paddingRight: width > 801 ? 40 : scaleSize(25),
paddingLeft: width > 801 ? 40 : 20, paddingLeft: width > 801 ? 40 : scaleSize(25),
}, },
left: { left: {
flexDirection: 'row', flexDirection: 'row',
width: width > 801 ? '60%' : '55%', width: width > 801 ? '60%' : '55%',
}, },
counterText: { counterText: {
marginLeft: width > 801 ? 40 : 20, marginLeft: width > 801 ? 40 : scaleSize(22),
marginRight: width > 801 ? 40 : 20, marginRight: width > 801 ? 40 : scaleSize(22),
}, },
right: { right: {
flexDirection: 'row', flexDirection: 'row',
}, },
phone: { phone: {
width: 60, width: width > 801 ? 60 : scaleSize(75),
height: 60, height: width > 801 ? 60 : scaleSize(75),
marginRight: 10, marginRight: width > 801 ? 10 : scaleSize(20),
marginLeft: width > 801 ? 20 : 15, marginLeft: width > 801 ? 20 : scaleSize(15),
}, },
number: { number: {
fontSize: 45, fontSize: width > 801 ? 45 : setSpText(60),
color: '#ffffff', color: '#ffffff',
}, },
navMask: {
width,
height: '6%',
position: 'absolute',
top: 0,
left: 0,
backgroundColor: 'transparent',
alignItems: 'center',
flexDirection: 'row',
},
container: { container: {
height: width > 801 ? '62%' : '94%', height: width > 801 ? '62%' : '94%',
}, },
...@@ -848,11 +846,11 @@ const styles = { ...@@ -848,11 +846,11 @@ const styles = {
justifyContent: 'center', justifyContent: 'center',
}, },
paginationText: { paginationText: {
fontSize: 40, fontSize: width > 801 ? 40 : setSpText(50),
}, },
imgPagination: { imgPagination: {
width: 50, width: width > 801 ? 50 : scaleSize(75),
height: 50, height: width > 801 ? 50 : scaleSize(75),
}, },
btnHighStyle: { btnHighStyle: {
flexDirection: 'row', flexDirection: 'row',
...@@ -1068,7 +1066,7 @@ const styles = { ...@@ -1068,7 +1066,7 @@ const styles = {
display: 'flex', display: 'flex',
flexDirection: 'row', flexDirection: 'row',
justifyContent: 'center', justifyContent: 'center',
marginTop: 10, marginTop: width > 801 ? 10 : scaleSize(10),
}, },
payImage: { payImage: {
width: 30, width: 30,
...@@ -1131,21 +1129,23 @@ const styles = { ...@@ -1131,21 +1129,23 @@ const styles = {
firstThStyle: { firstThStyle: {
width: '40%', width: '40%',
alignItems: 'flex-start', alignItems: 'flex-start',
paddingTop: 18, justifyContent: 'center',
paddingBottom: 18, paddingTop: width > 801 ? 18 : scaleHeight(30),
paddingLeft: 10, paddingBottom: width > 801 ? 18 : scaleHeight(30),
paddingRight: 10, paddingLeft: width > 801 ? 10 : scaleSize(20),
paddingRight: width > 801 ? 10 : scaleSize(20),
}, },
ThStyle: { ThStyle: {
width: '20%', width: '20%',
alignItems: 'center', alignItems: 'center',
paddingTop: 18, justifyContent: 'center',
paddingBottom: 18, paddingTop: width > 801 ? 18 : scaleHeight(30),
paddingLeft: 10, paddingBottom: width > 801 ? 18 : scaleHeight(30),
paddingRight: 10, paddingLeft: width > 801 ? 10 : scaleSize(20),
paddingRight: width > 801 ? 10 : scaleSize(20),
}, },
ThText: { ThText: {
fontSize: 30, fontSize: setSpText(40),
}, },
oddCell: { oddCell: {
flexDirection: 'row', flexDirection: 'row',
...@@ -1158,23 +1158,24 @@ const styles = { ...@@ -1158,23 +1158,24 @@ const styles = {
firstTdStyle: { firstTdStyle: {
width: '40%', width: '40%',
alignItems: 'flex-start', alignItems: 'flex-start',
paddingTop: 18, justifyContent: 'center',
paddingBottom: 18, paddingTop: width > 801 ? 18 : scaleHeight(30),
paddingLeft: 10, paddingBottom: width > 801 ? 18 : scaleHeight(30),
paddingRight: 10, paddingLeft: width > 801 ? 10 : scaleSize(20),
paddingRight: width > 801 ? 10 : scaleSize(20),
}, },
TdStyle: { TdStyle: {
flexDirection: 'row', flexDirection: 'row',
width: '20%', width: '20%',
alignItems: 'center', alignItems: 'center',
justifyContent: 'center', justifyContent: 'center',
paddingTop: width > 801 ? 18 : 18, paddingTop: width > 801 ? 18 : scaleHeight(30),
paddingBottom: width > 801 ? 18 : 18, paddingBottom: width > 801 ? 18 : scaleHeight(30),
paddingLeft: 10, paddingLeft: width > 801 ? 10 : scaleSize(20),
paddingRight: 10, paddingRight: width > 801 ? 10 : scaleSize(20),
}, },
TdText: { TdText: {
fontSize: 25, fontSize: width > 801 ? 25 : setSpText(30),
}, },
explain: { explain: {
display: 'flex', display: 'flex',
......
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