Commit eaffd5e5 by Giang Tran

update moment

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