Commit 00051574 by Giang Tran

update monent

parent c2e7556c
import React, {useState} from 'react'; import React, {useState} from 'react';
import {View, Text, StyleSheet} from 'react-native'; import {View, Text, StyleSheet} from 'react-native';
import HeaderBack from '../../../components/Header/HeaderBack'; import HeaderBack from '../../../components/Header/HeaderBack';
import TextField from '../../../components/Input/TextField';
import TextMulti from '../../../components/Input/TextMulti';
import Button from '../../../components/Button';
import {HEIGHTXD} from '../../../Config/Functions';
import {WebView} from 'react-native-webview'; import {WebView} from 'react-native-webview';
const DepositView = (props) => { const DepositView = (props) => {
......
import React from 'react'; import React, {useEffect, useState} from 'react';
import {Platform} from 'react-native';
import WithdrawView from './WithdrawView'; import WithdrawView from './WithdrawView';
import {getListWidthDraw} from '../../../apis/Functions/Widthdraw';
import {Alert} from 'react-native';
const Withdraw = (props) => { const Withdraw = (props) => {
const [listMethod, setListMethod] = useState([]);
useEffect(() => {
getData();
}, []);
const getData = async () => {
const res = await getListWidthDraw({
page_index: 1,
page_size: 20,
platform: Platform.OS,
});
if (res.data.code == 200) {
setListMethod(res.data.data);
} else {
Alert.alert('Lấy danh sách phương thức rút tiền thất bại!');
}
};
return <WithdrawView />; return <WithdrawView />;
}; };
......
...@@ -13,7 +13,7 @@ const Item = (props) => { ...@@ -13,7 +13,7 @@ const Item = (props) => {
<Block flex={1} row> <Block flex={1} row>
<View style={styles.wrapLeft} /> <View style={styles.wrapLeft} />
<View style={styles.wrapDate}> <View style={styles.wrapDate}>
<Image source={R.images.iconDepositNoti} style={styles.imgIcon} /> <Image source={R.images.iconRecharge} style={styles.imgIcon} />
</View> </View>
<Block padding={[5, 10]} space={'between'} flex={1}> <Block padding={[5, 10]} space={'between'} flex={1}>
<View style={{justifyContent: 'center', flex: 1}}> <View style={{justifyContent: 'center', flex: 1}}>
......
import {PostLogin, GetData, PostData} from '../helpers';
import url from '../url';
export const getListWidthDraw = async (body) =>
GetData(url.urlGetListWithDraw, body)
.then((res) => res)
.catch((err) => err);
...@@ -6,4 +6,5 @@ export default { ...@@ -6,4 +6,5 @@ export default {
urlGetOTP: root + 'api/auth/customer-get-otp', urlGetOTP: root + 'api/auth/customer-get-otp',
urlVerifyOTP: root + 'api/auth/customer-verify-otp', urlVerifyOTP: root + 'api/auth/customer-verify-otp',
urlForgotPassword: root + 'api/auth/customer-forgot-password', urlForgotPassword: root + 'api/auth/customer-forgot-password',
urlGetListWithDraw: root + 'api/v1/payments/get-list-withdraw-method',
}; };
...@@ -48,14 +48,14 @@ const HeaderHome = (props) => { ...@@ -48,14 +48,14 @@ const HeaderHome = (props) => {
<TouchableOpacity <TouchableOpacity
onPress={() => navigate.navigate(CHOOSEMETHOD)} onPress={() => navigate.navigate(CHOOSEMETHOD)}
style={styles.wraper}> style={styles.wraper}>
<Image style={styles.imgIcon} source={R.images.iconDeposit} /> <Image style={styles.imgIcon} source={R.images.iconRecharge} />
<Text style={styles.txt}>Np tin</Text> <Text style={styles.txt}>Np tin</Text>
</TouchableOpacity> </TouchableOpacity>
<TouchableOpacity <TouchableOpacity
onPress={() => navigate.navigate(WITHDRAW)} onPress={() => navigate.navigate(WITHDRAW)}
style={styles.wraper}> style={styles.wraper}>
<Image style={styles.imgIcon} source={R.images.iconWithdraw} /> <Image style={styles.imgIcon} source={R.images.iconWithdrawal} />
<Text style={styles.txt}>Rút tin</Text> <Text style={styles.txt}>Rút tin</Text>
</TouchableOpacity> </TouchableOpacity>
<TouchableOpacity <TouchableOpacity
......
...@@ -50,7 +50,7 @@ const PlussModal = (props) => { ...@@ -50,7 +50,7 @@ const PlussModal = (props) => {
toggleModal(); toggleModal();
}} }}
style={styles.wraper1}> style={styles.wraper1}>
<Image style={styles.imgIcon} source={R.images.iconDeposit} /> <Image style={styles.imgIcon} source={R.images.iconRecharge} />
<Text style={styles.txt}>Np tin</Text> <Text style={styles.txt}>Np tin</Text>
</TouchableOpacity> </TouchableOpacity>
...@@ -60,7 +60,7 @@ const PlussModal = (props) => { ...@@ -60,7 +60,7 @@ const PlussModal = (props) => {
toggleModal(); toggleModal();
}} }}
style={styles.wraper1}> style={styles.wraper1}>
<Image style={styles.imgIcon} source={R.images.iconWithdraw} /> <Image style={styles.imgIcon} source={R.images.iconWithdrawal} />
<Text style={styles.txt}>Rút tin</Text> <Text style={styles.txt}>Rút tin</Text>
</TouchableOpacity> </TouchableOpacity>
<TouchableOpacity <TouchableOpacity
......
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