Commit a5918480 authored by Trisno's avatar Trisno

update 138

parent 7a62214c
{ {
"expo": { "expo": {
"extra" : { "extra" : {
"buildNumber" : "136", "buildNumber" : "138",
"remarks": "" "remarks": ""
}, },
......
...@@ -231,7 +231,7 @@ class Auth extends React.Component { ...@@ -231,7 +231,7 @@ class Auth extends React.Component {
fontFamily: 'Gotham-Black', fontFamily: 'Gotham-Black',
color: 'white', color: 'white',
textAlign: 'center' textAlign: 'center'
}, title: 'PROFILE' }, title: i18n.t('profile').toUpperCase()
}} /> }} />
<Stack.Screen name="UpdateVersion" component={UpdateVersion} <Stack.Screen name="UpdateVersion" component={UpdateVersion}
options={{ headerShown: false }} options={{ headerShown: false }}
...@@ -372,7 +372,7 @@ class Auth extends React.Component { ...@@ -372,7 +372,7 @@ class Auth extends React.Component {
fontFamily: 'Gotham-Black', fontFamily: 'Gotham-Black',
color: 'white', color: 'white',
textAlign: 'center' textAlign: 'center'
}, title: 'PROFILE' }, title: i18n.t('profile').toUpperCase()
}} /> }} />
<Stack.Screen name="Change Profil" component={ChangeProfile} /> <Stack.Screen name="Change Profil" component={ChangeProfile} />
<Stack.Screen name="Change language" component={ChangeLanguage} <Stack.Screen name="Change language" component={ChangeLanguage}
...@@ -387,7 +387,7 @@ class Auth extends React.Component { ...@@ -387,7 +387,7 @@ class Auth extends React.Component {
fontSize: 20, fontSize: 20,
color: 'white', color: 'white',
textAlign: 'center' textAlign: 'center'
}, title: 'LANGUAGE' }, title: i18n.t('language')
}} }}
/> />
<Stack.Screen name="Change password" component={ChangePassword} options={{ <Stack.Screen name="Change password" component={ChangePassword} options={{
...@@ -400,7 +400,7 @@ class Auth extends React.Component { ...@@ -400,7 +400,7 @@ class Auth extends React.Component {
fontFamily: 'Gotham-Black', fontFamily: 'Gotham-Black',
color: 'white', color: 'white',
textAlign: 'center' textAlign: 'center'
}, title: 'CHANGE PASSWORD' }, title: i18n.t('changepassword')
}} /> }} />
<Stack.Screen name="Card Activation" component={CardActivation} options={{ <Stack.Screen name="Card Activation" component={CardActivation} options={{
headerStyle: { backgroundColor: '#CFB368' }, headerStyle: { backgroundColor: '#CFB368' },
...@@ -841,7 +841,7 @@ class Auth extends React.Component { ...@@ -841,7 +841,7 @@ class Auth extends React.Component {
color: 'white', color: 'white',
fontSize: 20, fontSize: 20,
}, },
title: 'REWARD SELECT' title: i18n.t('titlerewardhistory')
}} /> }} />
</Stack.Navigator> </Stack.Navigator>
) )
......
...@@ -213,7 +213,7 @@ class MenuSelection extends React.Component { ...@@ -213,7 +213,7 @@ class MenuSelection extends React.Component {
renderTabBar = ({ item }) => { renderTabBar = ({ item }) => {
return ( return (
<View style={{ flex: 0.5}}> <View style={{ flex: 0.5 }}>
<TouchableOpacity onPress={() => this.filterSubcategory(item)}> <TouchableOpacity onPress={() => this.filterSubcategory(item)}>
{item.image === '' ? ( {item.image === '' ? (
<View style={{ height: 60, width: 60, top: 5 }} /> <View style={{ height: 60, width: 60, top: 5 }} />
...@@ -357,7 +357,7 @@ class MenuSelection extends React.Component { ...@@ -357,7 +357,7 @@ class MenuSelection extends React.Component {
) : ( ) : (
<StatusBar backgroundColor='#CFB368' /> <StatusBar backgroundColor='#CFB368' />
)} )}
<View style={{ flex: 0.5,paddingTop: StatusBar.currentHeight, marginHorizontal:10, borderBottomWidth:1, paddingBottom:5, borderColor:'#838383' }}> <View style={{ flex: 0.5, paddingTop: StatusBar.currentHeight, marginHorizontal: 10, borderBottomWidth: 1, paddingBottom: 5, borderColor: '#838383' }}>
<FlatList horizontal={true} style={{ flexDirection: 'row' }} <FlatList horizontal={true} style={{ flexDirection: 'row' }}
showsHorizontalScrollIndicator={false} showsHorizontalScrollIndicator={false}
data={this.state.listCategory} data={this.state.listCategory}
...@@ -402,10 +402,19 @@ class MenuSelection extends React.Component { ...@@ -402,10 +402,19 @@ class MenuSelection extends React.Component {
<View style={{ flex: 1, height: 100 }}> <View style={{ flex: 1, height: 100 }}>
<TouchableOpacity onPress={() => this.props.navigation.navigate('Shopping Cart')}> <TouchableOpacity onPress={() => this.props.navigation.navigate('Shopping Cart')}>
<View> <View>
{
this.props.language == 'id' ? (
<View style={{ height: 40, borderRadius: 10, width: '86%', backgroundColor: '#CFB368', marginRight: 20, marginLeft: 16, top: 15, flexDirection: 'row', marginBottom: 30 }}>
<Image source={(require('../assets/icon/icon-order.png'))} style={{ height: 40, width: 40, tintColor: 'white', }}></Image>
<Text style={{ fontFamily: 'Gotham-Light', color: 'white', fontSize: 16, alignSelf: 'center', textAlign: 'center' }}>{i18n.t('Viewcart')}</Text>
</View>
) : (
<View style={{ height: 40, borderRadius: 10, width: '68%', backgroundColor: '#CFB368', marginRight: 20, marginLeft: 40, top: 15, flexDirection: 'row', marginBottom: 30 }}> <View style={{ height: 40, borderRadius: 10, width: '68%', backgroundColor: '#CFB368', marginRight: 20, marginLeft: 40, top: 15, flexDirection: 'row', marginBottom: 30 }}>
<Image source={(require('../assets/icon/icon-order.png'))} style={{ height: 40, width: 40, tintColor: 'white', }}></Image> <Image source={(require('../assets/icon/icon-order.png'))} style={{ height: 40, width: 40, tintColor: 'white', }}></Image>
<Text style={{ fontFamily: 'Gotham-Light', color: 'white', fontSize: 16, alignSelf: 'center', textAlign: 'center' }}>{i18n.t('Viewcart')}</Text> <Text style={{ fontFamily: 'Gotham-Light', color: 'white', fontSize: 16, alignSelf: 'center', textAlign: 'center' }}>{i18n.t('Viewcart')}</Text>
</View> </View>
)
}
</View> </View>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
......
...@@ -14,25 +14,40 @@ import requestParams from '../helper/requestParams'; ...@@ -14,25 +14,40 @@ import requestParams from '../helper/requestParams';
var date = [ var date = [
"Pilih", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", i18n.t('pilih'), "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21",
"22", "23", "24", "25", "26", "27", "28", "29", "30", "31" "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"
] ]
var month = [ var month = [
"Pilih", "Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", i18n.t('pilih'), "Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September",
"Oktober", "November", "Desember" "Oktober", "November", "Desember"
] ]
var year = [ var year = [
"Pilih", "1960", "1961", "1962", "1963", "1964", "1965", "1966", "1967", "1968", "1969", "1970", "1971", i18n.t('pilih'), "1960", "1961", "1962", "1963", "1964", "1965", "1966", "1967", "1968", "1969", "1970", "1971",
"1972", "1973", "1974", "1975", "1976", "1977", "1978", "1979", "1980", "1981", "1982", "1983", "1984", "1985", "1986", "1987", "1972", "1973", "1974", "1975", "1976", "1977", "1978", "1979", "1980", "1981", "1982", "1983", "1984", "1985", "1986", "1987",
"1988", "1989", "1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "1988", "1989", "1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004",
"2005", "2006", "2007" "2005", "2006", "2007"
] ]
class NewRegister extends React.Component { class NewRegister extends React.Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.state = ({ this.state = ({
dateAndroid : [
i18n.t('pilih'), "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21",
"22", "23", "24", "25", "26", "27", "28", "29", "30", "31"
],
monthAndroid : [
i18n.t('pilih'), "Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September",
"Oktober", "November", "Desember"
],
yearAndroid : [
i18n.t('pilih'), "1960", "1961", "1962", "1963", "1964", "1965", "1966", "1967", "1968", "1969", "1970", "1971",
"1972", "1973", "1974", "1975", "1976", "1977", "1978", "1979", "1980", "1981", "1982", "1983", "1984", "1985", "1986", "1987",
"1988", "1989", "1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004",
"2005", "2006", "2007"
],
caretHidden: true, caretHidden: true,
email: "", email: "",
password: "", password: "",
...@@ -45,7 +60,7 @@ class NewRegister extends React.Component { ...@@ -45,7 +60,7 @@ class NewRegister extends React.Component {
dob_year: "", dob_year: "",
dob_month: "", dob_month: "",
dob_day: "", dob_day: "",
list_gender: [], list_gender: { "0": i18n.t('other'), "1": i18n.t('male'), "2": i18n.t('female') },
gender_list: [], gender_list: [],
list_domicilie: [], list_domicilie: [],
list_profesion: [], list_profesion: [],
...@@ -98,11 +113,12 @@ class NewRegister extends React.Component { ...@@ -98,11 +113,12 @@ class NewRegister extends React.Component {
} }
} }
this.setState({ this.setState({
list_gender: list_gender, // list_gender: list_gender,
list_profesion: list_profesion, list_profesion: list_profesion,
list_domicilie: list_domicilie, list_domicilie: list_domicilie,
gender_list: gender_list, gender_list: gender_list,
}) })
// console.log(this.state.list_gender)
}) })
} }
...@@ -396,7 +412,7 @@ class NewRegister extends React.Component { ...@@ -396,7 +412,7 @@ class NewRegister extends React.Component {
selectedValue={this.state.dob_day} selectedValue={this.state.dob_day}
style={{ height: 35, width: 90 }} style={{ height: 35, width: 90 }}
onValueChange={(itemValue, itemIndex) => this.setState({ dob_day: itemValue })}> onValueChange={(itemValue, itemIndex) => this.setState({ dob_day: itemValue })}>
{date.map((itemValue, itemIndex) => { {this.state.dateAndroid.map((itemValue, itemIndex) => {
return (<Picker.Item label={itemValue} value={itemValue} key={itemIndex} />) return (<Picker.Item label={itemValue} value={itemValue} key={itemIndex} />)
})} })}
...@@ -410,7 +426,7 @@ class NewRegister extends React.Component { ...@@ -410,7 +426,7 @@ class NewRegister extends React.Component {
onValueChange={(itemValue, itemIndex) => onValueChange={(itemValue, itemIndex) =>
this.setState({ dob_month: itemValue }) this.setState({ dob_month: itemValue })
}> }>
{month.map((itemValue, itemIndex) => { {this.state.monthAndroid.map((itemValue, itemIndex) => {
return (<Picker.Item label={itemValue} value={itemIndex} key={itemIndex} />) return (<Picker.Item label={itemValue} value={itemIndex} key={itemIndex} />)
})} })}
</Picker> </Picker>
...@@ -423,7 +439,7 @@ class NewRegister extends React.Component { ...@@ -423,7 +439,7 @@ class NewRegister extends React.Component {
onValueChange={(itemValue, itemIndex) => onValueChange={(itemValue, itemIndex) =>
this.setState({ dob_year: itemValue }) this.setState({ dob_year: itemValue })
}> }>
{year.map((itemValue, itemIndex) => { {this.state.yearAndroid.map((itemValue, itemIndex) => {
return (<Picker.Item label={itemValue} value={itemValue} key={itemIndex} />) return (<Picker.Item label={itemValue} value={itemValue} key={itemIndex} />)
})} })}
</Picker> </Picker>
...@@ -450,7 +466,7 @@ class NewRegister extends React.Component { ...@@ -450,7 +466,7 @@ class NewRegister extends React.Component {
<View style={styles.pickerGender}> <View style={styles.pickerGender}>
<Picker selectedValue={this.state.gender} <Picker selectedValue={this.state.gender}
onValueChange={(itemValue, itemIndex) => this.setState({ gender: itemValue })}> onValueChange={(itemValue, itemIndex) => this.setState({ gender: itemValue })}>
<Picker.Item label='Pilih' value='' /> <Picker.Item label={i18n.t('pilih')} value='' />
{ {
Object.entries(this.state.list_gender).map((item, key) => Object.entries(this.state.list_gender).map((item, key) =>
<Picker.Item label={item[1]} key={key} value={item[0]}> <Picker.Item label={item[1]} key={key} value={item[0]}>
......
...@@ -13,7 +13,7 @@ class RedeemCode extends React.Component { ...@@ -13,7 +13,7 @@ class RedeemCode extends React.Component {
super(props); super(props);
this.handleBackButtonClick = this.handleBackButtonClick.bind(this) this.handleBackButtonClick = this.handleBackButtonClick.bind(this)
this.state = { this.state = {
in_process_redeem: false, in_process_redeem: true,
} }
} }
...@@ -40,6 +40,7 @@ class RedeemCode extends React.Component { ...@@ -40,6 +40,7 @@ class RedeemCode extends React.Component {
} }
Axios.post(this.props.BASE_URL + 'crm/v2/point/check', params).then(res => { Axios.post(this.props.BASE_URL + 'crm/v2/point/check', params).then(res => {
let in_process_redeem = res.data.in_process_redeem let in_process_redeem = res.data.in_process_redeem
console.log(res.data.in_process_redeem)
this.setState({ this.setState({
in_process_redeem: in_process_redeem in_process_redeem: in_process_redeem
}) })
......
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