Commit 00051574 by Giang Tran

update monent

parent c2e7556c
import React, {useState} from 'react';
import {View, Text, StyleSheet} from 'react-native';
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';
const DepositView = (props) => {
......
import React from 'react';
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) => {
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 />;
};
......
......@@ -13,7 +13,7 @@ const Item = (props) => {
<Block flex={1} row>
<View style={styles.wrapLeft} />
<View style={styles.wrapDate}>
<Image source={R.images.iconDepositNoti} style={styles.imgIcon} />
<Image source={R.images.iconRecharge} style={styles.imgIcon} />
</View>
<Block padding={[5, 10]} space={'between'} 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 {
urlGetOTP: root + 'api/auth/customer-get-otp',
urlVerifyOTP: root + 'api/auth/customer-verify-otp',
urlForgotPassword: root + 'api/auth/customer-forgot-password',
urlGetListWithDraw: root + 'api/v1/payments/get-list-withdraw-method',
};
......@@ -48,14 +48,14 @@ const HeaderHome = (props) => {
<TouchableOpacity
onPress={() => navigate.navigate(CHOOSEMETHOD)}
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>
</TouchableOpacity>
<TouchableOpacity
onPress={() => navigate.navigate(WITHDRAW)}
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>
</TouchableOpacity>
<TouchableOpacity
......
......@@ -50,7 +50,7 @@ const PlussModal = (props) => {
toggleModal();
}}
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>
</TouchableOpacity>
......@@ -60,7 +60,7 @@ const PlussModal = (props) => {
toggleModal();
}}
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>
</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