Commit 5b53847f by Giang Tran

update code

parent 9d447a40
...@@ -132,8 +132,8 @@ android { ...@@ -132,8 +132,8 @@ android {
applicationId "com.dcv.invest" applicationId "com.dcv.invest"
minSdkVersion rootProject.ext.minSdkVersion minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 20 versionCode 21
versionName "2.4" versionName "2.5"
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true
} }
splits { splits {
......
...@@ -129,8 +129,9 @@ const SearchProductCodeModal = (props) => { ...@@ -129,8 +129,9 @@ const SearchProductCodeModal = (props) => {
<AppText <AppText
style={[styles.txtTitle, {marginTop: HEIGHTXD(40)}]} style={[styles.txtTitle, {marginTop: HEIGHTXD(40)}]}
i18nKey={'OpenAccountCQG'} i18nKey={'OpenAccountCQG'}>
/> :
</AppText>
<PickerItem <PickerItem
defaultValue={open.name} defaultValue={open.name}
width={width - 40} width={width - 40}
......
...@@ -21,6 +21,7 @@ const Media = (props) => { ...@@ -21,6 +21,7 @@ const Media = (props) => {
platform: Platform.OS, platform: Platform.OS,
}); });
if (res.data.code == 200 && res.data.data) { if (res.data.code == 200 && res.data.data) {
console.log(res.data.data);
if (res.data.data[0] && res.data.data[0].data[0]) if (res.data.data[0] && res.data.data[0].data[0])
setMediaHot(res.data.data[0].data[0]); setMediaHot(res.data.data[0].data[0]);
setData(res.data.data); setData(res.data.data);
......
...@@ -74,11 +74,7 @@ const MediaView = (props) => { ...@@ -74,11 +74,7 @@ const MediaView = (props) => {
); );
} }
return ( return <View></View>;
<View>
<Text>H</Text>
</View>
);
}; };
const styles = StyleSheet.create({ const styles = StyleSheet.create({
......
...@@ -28,7 +28,7 @@ const Notifcation = (props) => { ...@@ -28,7 +28,7 @@ const Notifcation = (props) => {
setisRefresh(false); setisRefresh(false);
if ((res.data.code = 200 && res.data.data)) { if ((res.data.code = 200 && res.data.data)) {
setData(res.data.data); setData(res.data.data);
setTotalPage(res.data.meta.pages); //setTotalPage(res.data.meta.pages);
} else { } else {
showAlert(TYPE.ERROR, I18n.t('Notification'), res.data.message); showAlert(TYPE.ERROR, I18n.t('Notification'), res.data.message);
} }
......
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