esoftplay-event 0.0.0-u → 0.0.0-w
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.
- package/event/order.tsx +3 -3
- package/event/order_detail_waiting.tsx +13 -11
- package/event/order_status.tsx +8 -1
- package/id.json +4 -3
- package/package.json +1 -1
package/event/order.tsx
CHANGED
|
@@ -70,7 +70,7 @@ export function subscribe(): useGlobalSubscriberReturn {
|
|
|
70
70
|
|
|
71
71
|
export default function m(props: EventOrderProps): any {
|
|
72
72
|
const allStatus = EventOrder_status()
|
|
73
|
-
const statusCode = LibNavigation.getArgs(props, 'status', esp.isDebug("filter") ? '0,1,2,3,4,5' : '1')
|
|
73
|
+
const statusCode = LibNavigation.getArgs(props, 'status', esp.isDebug("filter") ? '0,1,2,3,4,5,6,7,10' : '1')
|
|
74
74
|
const [status, setStatus] = useSafeState(statusCode)
|
|
75
75
|
const [code, setCode] = useSafeState(statusCode)
|
|
76
76
|
const [badge, setBadge] = useSafeState<number>(0)
|
|
@@ -238,9 +238,9 @@ export default function m(props: EventOrderProps): any {
|
|
|
238
238
|
<LibTextstyle textStyle='footnote' text={esp.lang("event/order", "Transaction_Status")} style={applyStyle({ fontWeight: 'bold', fontSize: 14, color: "#4E4E4E" })} />
|
|
239
239
|
</View>
|
|
240
240
|
<ScrollView>
|
|
241
|
-
<Pressable onPress={() => { setCode('0,1,2,3,4,5') }} style={applyStyle({ flexDirection: 'row', alignItems: 'center', borderBottomWidth: 1, borderBottomColor: '#e6e6e6', paddingVertical: 12 })}>
|
|
241
|
+
<Pressable onPress={() => { setCode('0,1,2,3,4,5,6,7,10') }} style={applyStyle({ flexDirection: 'row', alignItems: 'center', borderBottomWidth: 1, borderBottomColor: '#e6e6e6', paddingVertical: 12 })}>
|
|
242
242
|
<LibTextstyle textStyle='footnote' text={esp.lang("event/order", "All_Transaction_Status")} style={applyStyle({ flex: 1, fontWeight: 'bold', fontSize: 10, color: "#4E4E4E" })} />
|
|
243
|
-
<LibIcon.Ionicons name={code == '0,1,2,3,4,5' ? 'radio-button-on' : 'radio-button-off'} color={code == '0,1,2,3,4,5' ? LibStyle.colorPrimary : '#4E4E4E'} />
|
|
243
|
+
<LibIcon.Ionicons name={code == '0,1,2,3,4,5,6,7,10' ? 'radio-button-on' : 'radio-button-off'} color={code == '0,1,2,3,4,5,6,7,10' ? LibStyle.colorPrimary : '#4E4E4E'} />
|
|
244
244
|
</Pressable>
|
|
245
245
|
{
|
|
246
246
|
allStatus?.filter((item: any) => item.publish == 1).map((it: any, i: number) => {
|
|
@@ -53,9 +53,9 @@ export default function m(props: EventOrder_waitingProps): any {
|
|
|
53
53
|
useEffect(() => {
|
|
54
54
|
loadData()
|
|
55
55
|
stateData.reset()
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
LibAutoreload.set(() => {
|
|
57
|
+
loadData()
|
|
58
|
+
}, 6000)
|
|
59
59
|
return () => LibAutoreload.clear()
|
|
60
60
|
}, [])
|
|
61
61
|
|
|
@@ -445,14 +445,16 @@ export default function m(props: EventOrder_waitingProps): any {
|
|
|
445
445
|
|
|
446
446
|
<View style={{ height: 3, backgroundColor: "#f6f6f6" }} />
|
|
447
447
|
<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>
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
448
|
+
{
|
|
449
|
+
result?.payment?.description != null &&
|
|
450
|
+
<TouchableOpacity onPress={() => {
|
|
451
|
+
LibNavigation.navigate('event/order_detail_payment', {
|
|
452
|
+
data: result?.payment?.description
|
|
453
|
+
})
|
|
454
|
+
}}>
|
|
455
|
+
<Text allowFontScaling={false} style={{ fontSize: 10, fontWeight: "normal", fontStyle: "normal", letterSpacing: 0, color: "#16a085", marginTop: 7 }}>{esp.lang("event/order_detail", "payment_instruction")}</Text>
|
|
456
|
+
</TouchableOpacity>
|
|
457
|
+
}
|
|
456
458
|
|
|
457
459
|
</View>
|
|
458
460
|
</LibScroll>
|
package/event/order_status.tsx
CHANGED
|
@@ -42,7 +42,7 @@ export default function m(): EventOrder_status[] {
|
|
|
42
42
|
publish: 1
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
code: '2,4
|
|
45
|
+
code: '2,4',
|
|
46
46
|
text: esp.lang("event/order_status", "cancel"),
|
|
47
47
|
module: 'event/order',
|
|
48
48
|
icon: 'icons/event/ic_notification_event_cancel.png',
|
|
@@ -61,6 +61,13 @@ export default function m(): EventOrder_status[] {
|
|
|
61
61
|
module: 'event/review',
|
|
62
62
|
icon: 'icons/event/ic_notification_event_done.png',
|
|
63
63
|
publish: esp.isDebug("review") ? 1 : 0
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
code: '10',
|
|
67
|
+
text: esp.lang("event/order_status", "system_cancel"),
|
|
68
|
+
module: 'event/order',
|
|
69
|
+
icon: 'icons/event/ic_notification_event_cancel.png',
|
|
70
|
+
publish: 1
|
|
64
71
|
}
|
|
65
72
|
]
|
|
66
73
|
}
|
package/id.json
CHANGED
|
@@ -1168,11 +1168,12 @@
|
|
|
1168
1168
|
},
|
|
1169
1169
|
"event/order_status": {
|
|
1170
1170
|
"already_paid": "Sudah Dibayar",
|
|
1171
|
-
"cancel": "
|
|
1172
|
-
"done": "
|
|
1173
|
-
"expired": "Pembayaran
|
|
1171
|
+
"cancel": "Dibatalkan Member",
|
|
1172
|
+
"done": "Sudah Dipakai",
|
|
1173
|
+
"expired": "Pembayaran Kedaluawarsa",
|
|
1174
1174
|
"refund": "Refund",
|
|
1175
1175
|
"review": "Review",
|
|
1176
|
+
"system_cancel": "Dibatalkan Sistem",
|
|
1176
1177
|
"waiting_payment": "Menunggu Pembayaran"
|
|
1177
1178
|
},
|
|
1178
1179
|
"event/order_waiting": {
|