esoftplay-event 0.0.0-n → 0.0.0-o

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,7 +28,7 @@ import { EventTransaction } from 'esoftplay/cache/event/transaction/import';
28
28
  import { LibAutoreload } from 'esoftplay/cache/lib/autoreload/import';
29
29
  import useLazyState from 'esoftplay/lazy';
30
30
  import React, { useEffect } from 'react';
31
- import { Text, TouchableOpacity, View } from 'react-native';
31
+ import { Linking, Text, TouchableOpacity, View } from 'react-native';
32
32
  import QRCode from 'react-native-qrcode-svg';
33
33
 
34
34
 
@@ -53,9 +53,9 @@ export default function m(props: EventOrder_waitingProps): any {
53
53
  useEffect(() => {
54
54
  loadData()
55
55
  stateData.reset()
56
- LibAutoreload.set(() => {
57
- loadData()
58
- }, 6000)
56
+ // LibAutoreload.set(() => {
57
+ // loadData()
58
+ // }, 6000)
59
59
  return () => LibAutoreload.clear()
60
60
  }, [])
61
61
 
@@ -63,6 +63,7 @@ export default function m(props: EventOrder_waitingProps): any {
63
63
  function loadData() {
64
64
  EventOrderProperty.subscribe().trigger()
65
65
  new LibCurl(url + ((url.includes("?") ? "&" : "?") + 't=' + new Date().getTime()), null, (res) => {
66
+ // esp.log(res);
66
67
  setResult(res)
67
68
  if (res?.status == 1) {
68
69
  // LibAutoreload.clear()
@@ -346,21 +347,11 @@ export default function m(props: EventOrder_waitingProps): any {
346
347
  }}
347
348
  />
348
349
 
349
- <View style={{ height: 3, backgroundColor: "#f6f6f6" }} />
350
- <Text allowFontScaling={false} style={{ fontSize: 10, fontWeight: "normal", fontStyle: "normal", letterSpacing: 0, color: "#9b9b9b", marginTop: 14 }}>{esp.lang("event/order_detail", "Checked_within_10_minutes_after_payment_is_made")}</Text>
351
- <TouchableOpacity onPress={() => {
352
- LibNavigation.navigate('event/order_detail_payment', {
353
- data: result?.payment?.description
354
- })
355
- }}>
356
- <Text allowFontScaling={false} style={{ fontSize: 10, fontWeight: "normal", fontStyle: "normal", letterSpacing: 0, color: "#16a085", marginTop: 7 }}>{esp.lang("event/order_detail", "payment_instruction")}</Text>
357
- </TouchableOpacity>
358
350
  </>
359
351
  }
360
352
 
361
353
  {
362
- // cc dan bbopay
363
- result?.payment?.payment_type != 3 && result?.payment?.payment_type != 4 && result?.payment?.payment_type != 11 &&
354
+ result?.payment?.payment_type != 3 && result?.payment?.payment_type != 4 && result?.payment?.payment_type != 11 && result?.payment?.payment_type != 13 &&
364
355
  <>
365
356
  <View style={{ height: 3, backgroundColor: "#f6f6f6" }} />
366
357
 
@@ -373,9 +364,9 @@ export default function m(props: EventOrder_waitingProps): any {
373
364
  LibUtils.copyToClipboard(result?.params != null && result?.params?.va_no)
374
365
  LibToastProperty.show(esp.lang("event/order_detail", "success_copied") + result?.params != null && result?.params?.va_no)
375
366
  }}>
376
- <View style={{ flex: 2, flexDirection: 'row', justifyContent: 'center', alignContent: 'center' }}>
377
- <LibIcon.Ionicons name='copy' style={{ fontSize: 12, color: '#2e83bb', marginRight: 7 }} />
378
- <Text allowFontScaling={false} style={{ fontSize: 12, fontStyle: "normal", letterSpacing: 0, color: "#2e83bb" }}>{esp.lang("event/order_detail", "copy")}</Text>
367
+ <View style={{ flex: 2, alignContent: 'center', alignItems: 'center', justifyContent: 'center', flexDirection: 'row', }}>
368
+ <LibIcon name='content-copy' style={{ color: '#2e83bb' }} size={13} />
369
+ <Text allowFontScaling={false} style={{ marginLeft: 5, fontSize: 12, fontStyle: "normal", letterSpacing: 0, color: "#2e83bb" }}>{esp.lang("event/order_detail", "copy")}</Text>
379
370
  </View>
380
371
  </TouchableOpacity>
381
372
  </View>
@@ -388,26 +379,51 @@ export default function m(props: EventOrder_waitingProps): any {
388
379
  LibUtils.copyToClipboard(result?.params != null && result?.params.cvs_no)
389
380
  LibToastProperty.show(esp.lang("event/order_detail", "success_copied") + result?.params != null && result?.params.cvs_no)
390
381
  }}>
391
- <View style={{ flex: 2, flexDirection: 'row', justifyContent: 'center', alignContent: 'center' }}>
392
- <LibIcon.Ionicons name='copy' style={{ fontSize: 12, color: '#2e83bb', marginRight: 7 }} />
393
- <Text allowFontScaling={false} style={{ fontSize: 12, fontStyle: "normal", letterSpacing: 0, color: "#2e83bb" }}>{esp.lang("event/order_detail", "copy")}</Text>
382
+ <View style={{ flex: 2, alignContent: 'center', alignItems: 'center', justifyContent: 'center', flexDirection: 'row', }}>
383
+ <LibIcon name='content-copy' style={{ color: '#2e83bb' }} size={13} />
384
+ <Text allowFontScaling={false} style={{ marginLeft: 5, fontSize: 12, fontStyle: "normal", letterSpacing: 0, color: "#2e83bb" }}>{esp.lang("event/order_detail", "copy")}</Text>
394
385
  </View>
395
386
  </TouchableOpacity>
396
387
  </View>
397
388
  }
398
389
 
390
+ </>
391
+ }
392
+
393
+ {
394
+ // ewallet
395
+ result?.payment?.payment_type == 13 &&
396
+ <>
399
397
  <View style={{ height: 3, backgroundColor: "#f6f6f6" }} />
400
- <Text allowFontScaling={false} style={{ fontSize: 10, fontWeight: "normal", fontStyle: "normal", letterSpacing: 0, color: "#9b9b9b", marginTop: 14 }}>{esp.lang("event/order_detail", "Checked_within_10_minutes_after_payment_is_made")}</Text>
401
- <TouchableOpacity onPress={() => {
402
- LibNavigation.navigate('event/order_detail_payment', {
403
- data: result?.payment?.description
404
- })
405
- }}>
406
- <Text allowFontScaling={false} style={{ fontSize: 10, fontWeight: "normal", fontStyle: "normal", letterSpacing: 0, color: "#16a085", marginTop: 7 }}>{esp.lang("event/order_detail", "payment_instruction")}</Text>
398
+
399
+ <TouchableOpacity
400
+ onPress={() => {
401
+ Linking.openURL(result?.params?.url_mobile)
402
+ }}
403
+ style={{ marginTop: 15, borderRadius: 10, borderWidth: 2, overflow: 'hidden', borderColor: "#f6f6f6" }}>
404
+ <View style={{ padding: 15, backgroundColor: '#000', justifyContent: 'center', alignContent: 'center', alignItems: 'center' }}>
405
+ <Text allowFontScaling={false} style={{ flex: 1, alignContent: 'center', alignItems: 'center', fontWeight: 'bold', fontSize: 16, fontStyle: "normal", letterSpacing: 0, color: "#fff" }}>{esp.lang("event/order_detail_waiting", "scan_or_tap")}</Text>
406
+ </View>
407
+ <View style={{ margin: 15, alignSelf: 'center' }}>
408
+ <QRCode ecl="H" size={250} value={result?.params?.qr} />
409
+ </View>
410
+
407
411
  </TouchableOpacity>
412
+
408
413
  </>
409
414
  }
410
415
 
416
+ <View style={{ height: 3, backgroundColor: "#f6f6f6" }} />
417
+ <Text allowFontScaling={false} style={{ fontSize: 10, fontWeight: "normal", fontStyle: "normal", letterSpacing: 0, color: "#9b9b9b", marginTop: 14 }}>{esp.lang("event/order_detail", "Checked_within_10_minutes_after_payment_is_made")}</Text>
418
+ <TouchableOpacity onPress={() => {
419
+ LibNavigation.navigate('event/order_detail_payment', {
420
+ data: result?.payment?.description
421
+ })
422
+ }}>
423
+ <Text allowFontScaling={false} style={{ fontSize: 10, fontWeight: "normal", fontStyle: "normal", letterSpacing: 0, color: "#16a085", marginTop: 7 }}>{esp.lang("event/order_detail", "payment_instruction")}</Text>
424
+ </TouchableOpacity>
425
+
426
+
411
427
  </View>
412
428
  </LibScroll>
413
429
  {
package/id.json CHANGED
@@ -843,6 +843,10 @@
843
843
  "event/header": {
844
844
  "search_product": "Cari Produk"
845
845
  },
846
+ "event/header_home": {
847
+ "myprofile": "Profile saya",
848
+ "search": "Cari..."
849
+ },
846
850
  "event/list": {
847
851
  "find_event": "Temukan event",
848
852
  "text_filter": "Filter"
@@ -1048,6 +1052,7 @@
1048
1052
  "pay_again": "Bayar Ulang",
1049
1053
  "qty": "Jumlah",
1050
1054
  "repay": "Bayar Ulang",
1055
+ "scan_or_tap": "SCAN OR TAP TO PAY",
1051
1056
  "ticket": "Tiket",
1052
1057
  "total_bill": "Total Tagihan",
1053
1058
  "wait": "Mohon tunggu"
@@ -1849,9 +1854,5 @@
1849
1854
  "header_title": "Gunakan Voucher",
1850
1855
  "label_code": "Kode Voucher",
1851
1856
  "voucher_or_referral_code": "Kode Voucher atau Kode Referral"
1852
- },
1853
- "event/header_home": {
1854
- "search": "Cari...",
1855
- "myprofile": "Profile saya"
1856
1857
  }
1857
1858
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay-event",
3
- "version": "0.0.0-n",
3
+ "version": "0.0.0-o",
4
4
  "description": "event module on esoftplay framework",
5
5
  "main": "index.js",
6
6
  "scripts": {