Commit 94aecd32 by Giang Tran

fix bug methodpay

parent f4dfaacb
......@@ -905,7 +905,7 @@
CODE_SIGN_ENTITLEMENTS = Invest/InvestDebug.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 17;
CURRENT_PROJECT_VERSION = 15;
DEVELOPMENT_TEAM = MXZ24GRH48;
ENABLE_BITCODE = NO;
GCC_PREPROCESSOR_DEFINITIONS = (
......@@ -939,7 +939,7 @@
CODE_SIGN_ENTITLEMENTS = Invest/Invest.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 17;
CURRENT_PROJECT_VERSION = 15;
DEVELOPMENT_TEAM = MXZ24GRH48;
INFOPLIST_FILE = Invest/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
......
......@@ -2,7 +2,6 @@ import React, {useEffect, useState} from 'react';
import {Platform} from 'react-native';
import WithdrawView from './WithdrawView';
import {getListWidthDraw} from '../../../apis/Functions/Widthdraw';
import {Alert} from 'react-native';
const Withdraw = (props) => {
......
......@@ -13,45 +13,49 @@ const Item = (props) => {
const {item} = props;
return (
<TouchableOpacity onPress={() => navigate.navigate(METHODPAYDETAIL, item)}>
<View style={styles.container}>
<Block flex={1} row center padding={[10, 10]}>
<Image source={{uri: item.bank.logo}} style={styles.imgIcon} />
<Block padding={[0, 10]}>
<Text style={styles.txtBig}>{item.title}</Text>
{item.bank ? (
<View style={styles.container}>
<Block flex={1} row center padding={[10, 10]}>
<Image source={{uri: item.bank.logo}} style={styles.imgIcon} />
<Block padding={[0, 10]}>
<Text style={styles.txtBig}>{item.title}</Text>
<Block space={'between'} flex={1}>
<View
style={{flex: 1, flexDirection: 'row', alignItems: 'center'}}>
<View style={{width: 80}}>
<AppText style={styles.txtLeft} i18nKey={'OwnerAccount'} />
<Block space={'between'} flex={1}>
<View
style={{flex: 1, flexDirection: 'row', alignItems: 'center'}}>
<View style={{width: 80}}>
<AppText style={styles.txtLeft} i18nKey={'OwnerAccount'} />
</View>
<View style={{flex: 1}}>
<Text style={styles.txtRight}>{item.account_name}</Text>
</View>
</View>
<View style={{flex: 1}}>
<Text style={styles.txtRight}>{item.account_name}</Text>
</View>
</View>
<View
style={{flex: 1, flexDirection: 'row', alignItems: 'center'}}>
<View style={{width: 80}}>
<Text style={styles.txtLeft}>STK</Text>
</View>
<View style={{flex: 1}}>
<Text style={styles.txtRight}>{item.account_no}</Text>
</View>
</View>
<View
style={{flex: 1, flexDirection: 'row', alignItems: 'center'}}>
<View style={{width: 80}}>
<AppText style={styles.txtLeft} i18nKey={'Branch'} />
<View
style={{flex: 1, flexDirection: 'row', alignItems: 'center'}}>
<View style={{width: 80}}>
<Text style={styles.txtLeft}>STK</Text>
</View>
<View style={{flex: 1}}>
<Text style={styles.txtRight}>{item.account_no}</Text>
</View>
</View>
<View style={{flex: 1}}>
<Text style={styles.txtRight}>{item.branch_name}</Text>
<View
style={{flex: 1, flexDirection: 'row', alignItems: 'center'}}>
<View style={{width: 80}}>
<AppText style={styles.txtLeft} i18nKey={'Branch'} />
</View>
<View style={{flex: 1}}>
<Text style={styles.txtRight}>{item.branch_name}</Text>
</View>
</View>
</View>
</Block>
</Block>
</Block>
</Block>
</View>
</View>
) : (
<View />
)}
</TouchableOpacity>
);
};
......
......@@ -31,6 +31,7 @@ const MethodPay = (props) => {
setRefresh(false);
if (res.data.code == 200 && res.data.data) {
setData(res.data.data);
console.log(res.data.data);
} else {
showAlert(TYPE.ERROR, I18n.t('Notification'), I18n.t('Can_not_get_data'));
}
......
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