Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async testgetURL(path) {
- const asuransi = path.split('&');
- if (asuransi != null && asuransi.length == 4) {
- let typeAsuransi,
- NoPolis,
- NoAsuransi = '';
- const param = asuransi[1].replace('ClientID=', '');
- if (asuransi[2].replace('MemberType=', '') === 'CC') {
- typeAsuransi = 'perusahaan';
- NoPolis = param.substr(0, param.indexOf('-'));
- NoAsuransi = param.substr(param.indexOf('-') + 1, param.length);
- } else {
- typeAsuransi = 'pribadi';
- NoPolis = param;
- NoAsuransi = '-';
- }
- Alert.alert(
- 'Konfirmasi',
- 'Klik setuju untuk menyinkronkan data (nama peserta, no polis, no asuransi) dari asuransi FWD ke aplikasi Teman Diabetes?',
- [
- {
- text: 'Setuju',
- onPress: () => {
- this.props.navigator.push({
- screen: 'TemanDiabetes.EditProfile',
- navigatorStyle: {
- navBarHidden: true
- },
- passProps: {
- insuranceId: param[0],
- fromFWD: true,
- NamaAsuransi: asuransi[3],
- TipeAsuransi: typeAsuransi,
- NoPolis,
- NoAsuransi
- }
- });
- }
- },
- {
- text: 'Tidak Setuju',
- onPress: () => {}
- }
- ],
- { cancelable: false }
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment