Commit eaffd5e5 by Giang Tran

update moment

parent dee83df9
...@@ -90,7 +90,8 @@ const FeePro = (props) => { ...@@ -90,7 +90,8 @@ const FeePro = (props) => {
return ( return (
<View> <View>
<Text style={styles.txtTitle}> {title}</Text> {title ? <Text style={styles.txtTitle}> {title}</Text> : null}
<View style={styles.wrap}> <View style={styles.wrap}>
{listItem.map((e) => ( {listItem.map((e) => (
<View key={e.id + 'a'} style={styles.item}> <View key={e.id + 'a'} style={styles.item}>
......
...@@ -129,12 +129,15 @@ const PacketCQG = (props) => { ...@@ -129,12 +129,15 @@ const PacketCQG = (props) => {
}; };
const getData = async () => { const getData = async () => {
const res = await getListPacketCQG({}); const res = await getListPacketCQG({});
console.log(res);
if ((res.data.code = 200 && res.data.data)) { if ((res.data.code = 200 && res.data.data)) {
setFee(res.data.data.fee); if (res.data.data.fee) setFee(res.data.data.fee);
setFeeConnect(res.data.data.fee_connect); if (res.data.data.fee_connect) setFeeConnect(res.data.data.fee_connect);
setFeeNonPro(res.data.data.fee_pro); if (res.data.data.fee_pro) setFeeNonPro(res.data.data.fee_pro);
setFeePro(res.data.data.fee_non_pro);
setOperrating(res.data.data.fee_operating); if (res.data.data.fee_non_pro) setFeePro(res.data.data.fee_non_pro);
if (res.data.data.fee_operating)
setOperrating(res.data.data.fee_operating);
if (res.data.package_register.length > 0) { if (res.data.package_register.length > 0) {
setListData(res.data.package_register); setListData(res.data.package_register);
...@@ -159,13 +162,14 @@ const PacketCQG = (props) => { ...@@ -159,13 +162,14 @@ const PacketCQG = (props) => {
<View style={styles.container}> <View style={styles.container}>
<AppText i18nKey={'Note_cqg'} /> <AppText i18nKey={'Note_cqg'} />
<ContainerTop fee={fee} /> <ContainerTop fee={fee} />
{feeOperating.title ? (
<WrapNomarl <WrapNomarl
onRemovePacket={onRemovePacket} onRemovePacket={onRemovePacket}
onChoosePacket={onChoosePacket} onChoosePacket={onChoosePacket}
data={feeOperating} data={feeOperating}
listRegister={listRegister} listRegister={listRegister}
/> />
) : null}
<WrapNomarl <WrapNomarl
onRemovePacket={onRemovePacket} onRemovePacket={onRemovePacket}
......
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