Commit 7b025397 by Confettis

feat: 适配刷卡

parent 1afa41d5
src/assets/Vertical/card.png

8.28 KB | W: | H:

src/assets/Vertical/card.png

11 KB | W: | H:

src/assets/Vertical/card.png
src/assets/Vertical/card.png
src/assets/Vertical/card.png
src/assets/Vertical/card.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -562,7 +562,6 @@ class VerticalPage extends Component { ...@@ -562,7 +562,6 @@ class VerticalPage extends Component {
autoplayTime, autoplayTime,
imgArr, imgArr,
adType, adType,
card,
} = this.props; } = this.props;
let { let {
contact, contact,
...@@ -610,7 +609,6 @@ class VerticalPage extends Component { ...@@ -610,7 +609,6 @@ class VerticalPage extends Component {
styles.guide = {...styles.guide, backgroundColor: '#1b7dc7'}; styles.guide = {...styles.guide, backgroundColor: '#1b7dc7'};
const facepay = const facepay =
this.state.faceType === 'wxpay' ? this.wxFacepay : this.smilepay; this.state.faceType === 'wxpay' ? this.wxFacepay : this.smilepay;
console.log('card', card);
return ( return (
<View style={styles.main}> <View style={styles.main}>
{goodsArr.length === 0 && stype === 'guard' ? ( {goodsArr.length === 0 && stype === 'guard' ? (
...@@ -955,15 +953,18 @@ class VerticalPage extends Component { ...@@ -955,15 +953,18 @@ class VerticalPage extends Component {
<View style={styles.faceScan}> <View style={styles.faceScan}>
<Touch onPress={isCard ? this.cardPayPay : facepay}> <Touch onPress={isCard ? this.cardPayPay : facepay}>
<View> <View>
{isCard ? (
<Image <Image
source={ source={require('../assets/Vertical/card.png')}
isCard alt=""
? require('../assets/Vertical/card.png') />
: require('../assets/Vertical/face.gif') ) : (
} <Image
source={require('../assets/Vertical/face.gif')}
style={styles.faceGif} style={styles.faceGif}
alt="" alt=""
/> />
)}
<View style={styles.facePay}> <View style={styles.facePay}>
{!isCard && ( {!isCard && (
<Image <Image
...@@ -977,7 +978,7 @@ class VerticalPage extends Component { ...@@ -977,7 +978,7 @@ class VerticalPage extends Component {
/> />
)} )}
<Text style={styles.payText}> <Text style={styles.payText}>
{isCard ? '点击刷脸支付' : '点击刷卡支付'} {isCard ? '点击刷卡支付' : '点击刷脸支付'}
</Text> </Text>
</View> </View>
</View> </View>
......
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