esoftplay-event 0.0.0-a → 0.0.0-b
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/additional.tsx +4 -4
- package/event/additional_input.tsx +11 -11
- package/event/alert.tsx +32 -0
- package/event/artist.tsx +166 -0
- package/event/artist_detail.tsx +520 -0
- package/event/artist_detail_multi.tsx +548 -0
- package/event/badge.tsx +22 -0
- package/event/button.tsx +40 -0
- package/event/config.ts +4 -0
- package/event/countdown.tsx +5 -5
- package/event/countdown_base.tsx +83 -0
- package/event/counter_cashier.tsx +11 -11
- package/event/counter_cashier_report.tsx +6 -6
- package/event/counter_cashier_sell.tsx +7 -7
- package/event/counter_eo.tsx +19 -19
- package/event/counter_history.tsx +4 -4
- package/event/counter_lm.tsx +16 -16
- package/event/counter_report.tsx +4 -4
- package/event/counter_report_breakdown.tsx +2 -2
- package/event/counter_report_detail.tsx +12 -12
- package/event/counter_report_detail_list.tsx +4 -4
- package/event/counter_request.tsx +4 -4
- package/event/counter_request_detail.tsx +6 -6
- package/event/counter_send.tsx +6 -6
- package/event/counter_user_list.tsx +13 -13
- package/event/coupon.tsx +4 -4
- package/event/coupon_claim.tsx +4 -4
- package/event/coupon_claim_detail.tsx +8 -7
- package/event/coupon_claim_history.tsx +9 -9
- package/event/coupon_claim_reimburse.tsx +7 -8
- package/event/coupon_claim_reimburse_history.tsx +4 -4
- package/event/coupon_claim_reimburse_history_detail.tsx +4 -4
- package/event/coupon_claim_staff.tsx +10 -10
- package/event/coupon_detail.tsx +3 -3
- package/event/coupon_event_list.tsx +4 -4
- package/event/coupon_generate.tsx +4 -4
- package/event/coupon_generate_event.tsx +4 -4
- package/event/coupon_generate_list.tsx +2 -2
- package/event/date_picker.tsx +5 -5
- package/event/detail.tsx +12 -15
- package/event/entrance.tsx +17 -17
- package/event/entrance_again.tsx +22 -23
- package/event/entrance_failed.tsx +15 -15
- package/event/entrance_idcard.tsx +23 -23
- package/event/entrance_list.tsx +24 -24
- package/event/entrance_list_item.tsx +6 -6
- package/event/entrance_log.tsx +24 -24
- package/event/entrance_success.tsx +8 -8
- package/event/entrance_warning.tsx +14 -14
- package/event/exchange_reward.tsx +2 -2
- package/event/exchange_reward_result.tsx +7 -8
- package/event/exchange_ticket.tsx +11 -12
- package/event/exchange_ticket_list.tsx +10 -12
- package/event/exchange_ticket_result.tsx +11 -12
- package/event/exit.tsx +9 -9
- package/event/exit_failed.tsx +12 -12
- package/event/exit_list.tsx +15 -15
- package/event/exit_log.tsx +22 -22
- package/event/exit_success.tsx +8 -8
- package/event/exit_temporary.tsx +21 -21
- package/event/expander.tsx +36 -0
- package/event/fab.tsx +24 -0
- package/event/firebase_socket.ts +365 -0
- package/event/hall_in.tsx +13 -13
- package/event/hall_in_failed.tsx +22 -22
- package/event/hall_in_list.tsx +17 -17
- package/event/hall_in_log.tsx +24 -24
- package/event/hall_in_success.tsx +8 -8
- package/event/hall_out.tsx +13 -13
- package/event/hall_out_failed.tsx +11 -11
- package/event/hall_out_list.tsx +17 -17
- package/event/hall_out_log.tsx +24 -24
- package/event/hall_out_success.tsx +8 -8
- package/event/header.tsx +119 -0
- package/event/label_input.tsx +23 -0
- package/event/list.tsx +20 -21
- package/event/list_filter.tsx +12 -13
- package/event/list_item.tsx +76 -0
- package/event/list_item2.tsx +78 -0
- package/event/loading_page.tsx +248 -0
- package/event/log.tsx +54 -54
- package/event/message.tsx +32 -0
- package/event/order.tsx +323 -0
- package/event/order_detail.tsx +813 -0
- package/event/order_detail_payment.tsx +153 -0
- package/event/order_detail_upgrade.tsx +164 -0
- package/event/order_detail_upgrade_button.tsx +60 -0
- package/event/order_detail_upgrade_payment.tsx +221 -0
- package/event/order_detail_visitor.tsx +196 -0
- package/event/order_detail_waiting.tsx +520 -0
- package/event/order_history.tsx +101 -0
- package/event/order_item.tsx +118 -0
- package/event/order_lottery.tsx +172 -0
- package/event/order_reschedule.tsx +439 -0
- package/event/order_reschedule_list.tsx +85 -0
- package/event/order_share_to.tsx +219 -0
- package/event/order_share_to_detail.tsx +181 -0
- package/event/order_status.tsx +66 -0
- package/event/order_waiting.tsx +143 -0
- package/event/pending_trx.tsx +50 -0
- package/event/qc_idcard.tsx +10 -10
- package/event/qc_idcard_failed.tsx +4 -4
- package/event/qc_idcard_success.tsx +4 -4
- package/event/qr_bg.tsx +22 -0
- package/event/queue_out.tsx +3 -3
- package/event/queue_pricing.tsx +2 -3
- package/event/rating.tsx +49 -0
- package/event/rating_mini.tsx +35 -0
- package/event/review.tsx +3 -3
- package/event/review_add.tsx +8 -8
- package/event/review_detail.tsx +4 -4
- package/event/review_item.tsx +4 -4
- package/event/scan_item.tsx +2 -2
- package/event/schedule.tsx +8 -9
- package/event/seat.tsx +16 -18
- package/event/seat_autopick.tsx +4 -4
- package/event/seat_map.tsx +4 -4
- package/event/seat_map_test.tsx +2 -2
- package/event/section_menu.tsx +40 -0
- package/event/sheet.tsx +73 -0
- package/event/slider.tsx +46 -0
- package/event/step.tsx +29 -0
- package/event/ticket_list.tsx +15 -16
- package/event/ticket_list2.tsx +16 -17
- package/event/tms.tsx +4 -4
- package/event/tms_add.tsx +7 -8
- package/event/tms_add_result.tsx +4 -4
- package/event/tms_check_code.tsx +160 -0
- package/event/tms_check_ticket.tsx +72 -0
- package/event/tms_check_ticket_result.tsx +384 -0
- package/event/tms_dashboard.tsx +7 -7
- package/event/tms_event_list.tsx +46 -43
- package/event/tms_gate.tsx +96 -0
- package/event/tms_home.tsx +639 -0
- package/event/tms_idcard.tsx +203 -0
- package/event/tms_in.tsx +215 -0
- package/event/tms_in_again.tsx +199 -0
- package/event/tms_in_failed.tsx +190 -0
- package/event/tms_in_hall.tsx +148 -0
- package/event/tms_in_hall_failed.tsx +270 -0
- package/event/tms_in_hall_list.tsx +222 -0
- package/event/tms_in_hall_log.tsx +134 -0
- package/event/tms_in_hall_success.tsx +132 -0
- package/event/tms_in_list.tsx +264 -0
- package/event/tms_in_log.tsx +130 -0
- package/event/tms_in_success.tsx +155 -0
- package/event/tms_in_warning.tsx +91 -0
- package/event/tms_list_item.tsx +88 -0
- package/event/tms_log.tsx +435 -0
- package/event/tms_out.tsx +91 -0
- package/event/tms_out_failed.tsx +135 -0
- package/event/tms_out_hall.tsx +143 -0
- package/event/tms_out_hall_failed.tsx +133 -0
- package/event/tms_out_hall_list.tsx +215 -0
- package/event/tms_out_hall_log.tsx +133 -0
- package/event/tms_out_hall_success.tsx +130 -0
- package/event/tms_out_list.tsx +118 -0
- package/event/tms_out_log.tsx +131 -0
- package/event/tms_out_success.tsx +143 -0
- package/event/tms_out_temporary.tsx +226 -0
- package/event/toggle.tsx +30 -0
- package/event/transaction.ts +34 -0
- package/event/turnstile_event_gate.tsx +2 -2
- package/event/turnstile_event_list.tsx +4 -4
- package/event/turnstile_event_ticket.tsx +4 -4
- package/event/turnstile_settings.tsx +11 -11
- package/event/turnstile_settings_otp.tsx +4 -4
- package/event/turnstile_settings_status.tsx +2 -2
- package/event/voucher.tsx +9 -10
- package/event/voucher_multi.tsx +4 -5
- package/id.json +644 -0
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// withHooks
|
|
2
|
-
import { ComponentHeader } from 'esoftplay/cache/component/header/import';
|
|
3
|
-
import { ComponentMessage } from 'esoftplay/cache/component/message/import';
|
|
4
2
|
import { LibInfinite } from 'esoftplay/cache/lib/infinite/import';
|
|
5
3
|
import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
|
|
6
4
|
import { LibUtils } from 'esoftplay/cache/lib/utils/import';
|
|
7
5
|
import esp from 'esoftplay/esp';
|
|
8
6
|
|
|
7
|
+
import { EventHeader } from 'esoftplay/cache/event/header/import';
|
|
8
|
+
import { EventMessage } from 'esoftplay/cache/event/message/import';
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { Text, View } from 'react-native';
|
|
11
11
|
|
|
@@ -21,13 +21,13 @@ export default function m(props: EventCounter_report_detail_listProps): any {
|
|
|
21
21
|
|
|
22
22
|
return (
|
|
23
23
|
<View style={{ flex: 1, backgroundColor: '#fff' }}>
|
|
24
|
-
<
|
|
24
|
+
<EventHeader title={esp.lang("event/counter_report_detail_list", "header_title")} />
|
|
25
25
|
<LibInfinite
|
|
26
26
|
url={url}
|
|
27
27
|
|
|
28
28
|
errorView={(error: any) => {
|
|
29
29
|
return (
|
|
30
|
-
<
|
|
30
|
+
<EventMessage message={error} />
|
|
31
31
|
)
|
|
32
32
|
}}
|
|
33
33
|
renderItem={(item) => {
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
// withHooks
|
|
2
|
-
import { ComponentHeader } from 'esoftplay/cache/component/header/import';
|
|
3
|
-
import { ComponentMessage } from 'esoftplay/cache/component/message/import';
|
|
4
2
|
import { EventCounter_history_item } from 'esoftplay/cache/event/counter_history_item/import';
|
|
5
3
|
import { EventCounter_status } from 'esoftplay/cache/event/counter_status/import';
|
|
6
4
|
import { EventCounter_type } from 'esoftplay/cache/event/counter_type/import';
|
|
@@ -14,6 +12,8 @@ import useSafeState from 'esoftplay/state';
|
|
|
14
12
|
import useGlobalSubscriber, { UseSubscribeReturn } from 'esoftplay/subscribe';
|
|
15
13
|
import { useTimeout } from 'esoftplay/timeout';
|
|
16
14
|
|
|
15
|
+
import { EventHeader } from 'esoftplay/cache/event/header/import';
|
|
16
|
+
import { EventMessage } from 'esoftplay/cache/event/message/import';
|
|
17
17
|
import React, { useEffect, useRef } from 'react';
|
|
18
18
|
import { Pressable, Text, TouchableOpacity, View } from 'react-native';
|
|
19
19
|
|
|
@@ -107,7 +107,7 @@ export default function m(props: EventCounter_requestProps): any {
|
|
|
107
107
|
|
|
108
108
|
return (
|
|
109
109
|
<View style={{ flex: 1, backgroundColor: LibStyle.colorBgGrey }}>
|
|
110
|
-
<
|
|
110
|
+
<EventHeader title={esp.lang("event/counter_request", "header_title")} subtitle={status_user == 1 ? esp.lang("event/counter_request", "sub_eo") : status_user == 2 ? esp.lang("event/counter_request", "sub_lm") : esp.lang("event/counter_request", "sub_cashier")} />
|
|
111
111
|
<Status status={status} onChangeStatus={setStatus} colorTheme={colorTheme} />
|
|
112
112
|
|
|
113
113
|
<LibInfinite
|
|
@@ -117,7 +117,7 @@ export default function m(props: EventCounter_requestProps): any {
|
|
|
117
117
|
errorView={(error: any) => {
|
|
118
118
|
return (
|
|
119
119
|
<View style={{ margin: 15, borderRadius: 15, marginBottom: 0, backgroundColor: '#fff', overflow: 'hidden' }}>
|
|
120
|
-
<
|
|
120
|
+
<EventMessage message={error} />
|
|
121
121
|
</View>
|
|
122
122
|
)
|
|
123
123
|
}}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
// withHooks
|
|
2
|
-
import { ComponentHeader } from 'esoftplay/cache/component/header/import';
|
|
3
|
-
import { ComponentQr_bg } from 'esoftplay/cache/component/qr_bg/import';
|
|
4
2
|
import { EventCounter_requestProperty } from 'esoftplay/cache/event/counter_request/import';
|
|
5
3
|
import { LibAutoreload } from 'esoftplay/cache/lib/autoreload/import';
|
|
6
4
|
import { LibCurl } from 'esoftplay/cache/lib/curl/import';
|
|
@@ -18,6 +16,8 @@ import esp from 'esoftplay/esp';
|
|
|
18
16
|
import useSafeState from 'esoftplay/state';
|
|
19
17
|
import { useTimeout } from 'esoftplay/timeout';
|
|
20
18
|
|
|
19
|
+
import { EventHeader } from 'esoftplay/cache/event/header/import';
|
|
20
|
+
import { EventQr_bg } from 'esoftplay/cache/event/qr_bg/import';
|
|
21
21
|
import LottieView from "lottie-react-native";
|
|
22
22
|
import React, { useEffect, useRef } from 'react';
|
|
23
23
|
import { Text, TouchableOpacity, View } from 'react-native';
|
|
@@ -94,7 +94,7 @@ export default function m(props: EventCounter_request_detailProps): any {
|
|
|
94
94
|
if (!result) {
|
|
95
95
|
return (
|
|
96
96
|
<View style={{ flex: 1, backgroundColor: LibStyle.colorBgGrey }}>
|
|
97
|
-
<
|
|
97
|
+
<EventHeader title={esp.lang("event/counter_request_detail", "header_loading")} />
|
|
98
98
|
<LibLoading />
|
|
99
99
|
</View>
|
|
100
100
|
)
|
|
@@ -104,7 +104,7 @@ export default function m(props: EventCounter_request_detailProps): any {
|
|
|
104
104
|
|
|
105
105
|
return (
|
|
106
106
|
<View style={{ flex: 1, backgroundColor: LibStyle.colorBgGrey }}>
|
|
107
|
-
<
|
|
107
|
+
<EventHeader title={esp.lang("event/counter_request_detail", "header_title")} />
|
|
108
108
|
|
|
109
109
|
<LibScroll onRefresh={loadData}>
|
|
110
110
|
<View style={{ margin: 15, padding: 15, ...LibStyle.elevation(2), borderRadius: 5, backgroundColor: '#fff', }}>
|
|
@@ -171,11 +171,11 @@ export default function m(props: EventCounter_request_detailProps): any {
|
|
|
171
171
|
<View style={{ borderRadius: 10, backgroundColor: '#FEFBEB', borderColor: "#FFCC29", borderWidth: 1, borderStyle: 'dashed', alignContent: 'center', alignItems: 'center', flex: 1, marginTop: 15, padding: 10 }}>
|
|
172
172
|
<Text allowFontScaling={false} style={{ flex: 1, fontFamily: "Arial", fontSize: 12, fontStyle: "normal", letterSpacing: 0 }} >{esp.lang("event/counter_request_detail", "msg_scan", result?.title)}</Text>
|
|
173
173
|
</View>
|
|
174
|
-
<
|
|
174
|
+
<EventQr_bg>
|
|
175
175
|
<View style={{ margin: 15, alignSelf: 'center' }}>
|
|
176
176
|
<QRCode ecl="H" size={LibStyle.width - 60} value={result?.url_receiver} />
|
|
177
177
|
</View>
|
|
178
|
-
</
|
|
178
|
+
</EventQr_bg>
|
|
179
179
|
</>
|
|
180
180
|
}
|
|
181
181
|
</View>
|
package/event/counter_send.tsx
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
// withHooks
|
|
2
|
-
import { ComponentButton } from 'esoftplay/cache/component/button/import';
|
|
3
|
-
import { ComponentHeader } from 'esoftplay/cache/component/header/import';
|
|
4
|
-
import { ComponentMessage } from 'esoftplay/cache/component/message/import';
|
|
5
2
|
import { EventCounter_user_list_item } from 'esoftplay/cache/event/counter_user_list_item/import';
|
|
6
3
|
import { LibCurl } from 'esoftplay/cache/lib/curl/import';
|
|
7
4
|
import { LibDialog } from 'esoftplay/cache/lib/dialog/import';
|
|
@@ -18,6 +15,9 @@ import { LibUtils } from 'esoftplay/cache/lib/utils/import';
|
|
|
18
15
|
import esp from 'esoftplay/esp';
|
|
19
16
|
import useSafeState from 'esoftplay/state';
|
|
20
17
|
|
|
18
|
+
import { EventButton } from 'esoftplay/cache/event/button/import';
|
|
19
|
+
import { EventHeader } from 'esoftplay/cache/event/header/import';
|
|
20
|
+
import { EventMessage } from 'esoftplay/cache/event/message/import';
|
|
21
21
|
import React, { useEffect, useRef } from 'react';
|
|
22
22
|
import { KeyboardAvoidingView, Pressable, Text, TouchableOpacity, View } from 'react-native';
|
|
23
23
|
|
|
@@ -148,7 +148,7 @@ export default function m(props: EventCounter_sendProps): any {
|
|
|
148
148
|
|
|
149
149
|
return (
|
|
150
150
|
<View style={{ flex: 1, backgroundColor: LibStyle.colorBgGrey }}>
|
|
151
|
-
<
|
|
151
|
+
<EventHeader title={esp.lang("event/counter_send", "header_title")} subtitle={status_user == 1 ? esp.lang("event/counter_send", "sub_eo") : status_user == 2 ? esp.lang("event/counter_send", "sub_lm") : esp.lang("event/counter_send", "sub_cashier")} />
|
|
152
152
|
<KeyboardAvoidingView style={{ flex: 1 }}>
|
|
153
153
|
|
|
154
154
|
<LibScroll style={{ flex: 1 }} onRefresh={loadData}>
|
|
@@ -188,7 +188,7 @@ export default function m(props: EventCounter_sendProps): any {
|
|
|
188
188
|
{
|
|
189
189
|
error ?
|
|
190
190
|
<View style={{ margin: 15, borderRadius: 15, marginBottom: 0, backgroundColor: '#fff', overflow: 'hidden' }}>
|
|
191
|
-
<
|
|
191
|
+
<EventMessage message={error?.message} />
|
|
192
192
|
</View>
|
|
193
193
|
:
|
|
194
194
|
<View style={{ margin: 15, backgroundColor: '#fff', padding: 10, borderRadius: 15, marginBottom: 0, flexDirection: 'row', flexWrap: 'wrap' }}>
|
|
@@ -263,7 +263,7 @@ export default function m(props: EventCounter_sendProps): any {
|
|
|
263
263
|
|
|
264
264
|
</LibScroll>
|
|
265
265
|
|
|
266
|
-
<
|
|
266
|
+
<EventButton label={esp.lang("event/counter_send", "btn_send")} onPress={() => {
|
|
267
267
|
if (checkInput()) {
|
|
268
268
|
sendRequest()
|
|
269
269
|
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
// withHooks
|
|
2
2
|
import { applyStyle } from 'esoftplay';
|
|
3
|
-
import { ComponentButton } from 'esoftplay/cache/component/button/import';
|
|
4
|
-
import { ComponentHeader } from 'esoftplay/cache/component/header/import';
|
|
5
|
-
import { ComponentMessage } from 'esoftplay/cache/component/message/import';
|
|
6
|
-
import { ComponentSlidingup } from 'esoftplay/cache/component/slidingup/import';
|
|
7
3
|
import { EventCounter_eoProperty } from 'esoftplay/cache/event/counter_eo/import';
|
|
8
4
|
import { EventCounter_user_list_item } from 'esoftplay/cache/event/counter_user_list_item/import';
|
|
9
5
|
import { LibCollaps } from 'esoftplay/cache/lib/collaps/import';
|
|
@@ -20,6 +16,10 @@ import { UserPopup } from 'esoftplay/cache/user/popup/import';
|
|
|
20
16
|
import esp from 'esoftplay/esp';
|
|
21
17
|
import useSafeState from 'esoftplay/state';
|
|
22
18
|
|
|
19
|
+
import { EventButton } from 'esoftplay/cache/event/button/import';
|
|
20
|
+
import { EventHeader } from 'esoftplay/cache/event/header/import';
|
|
21
|
+
import { EventMessage } from 'esoftplay/cache/event/message/import';
|
|
22
|
+
import { LibSlidingup } from 'esoftplay/cache/lib/slidingup/import';
|
|
23
23
|
import React, { useEffect, useRef } from 'react';
|
|
24
24
|
import { Text, TouchableOpacity, View } from 'react-native';
|
|
25
25
|
|
|
@@ -32,8 +32,8 @@ export interface EventCounter_user_listProps {
|
|
|
32
32
|
}
|
|
33
33
|
export default function m(props: EventCounter_user_listProps): any {
|
|
34
34
|
const { event_id, is_navResult, status_user, is_ticket } = LibNavigation.getArgsAll(props)
|
|
35
|
-
const dialogAdd = useRef<
|
|
36
|
-
const dialogUser = useRef<
|
|
35
|
+
const dialogAdd = useRef<LibSlidingup>(null)
|
|
36
|
+
const dialogUser = useRef<LibSlidingup>(null)
|
|
37
37
|
const [result, setResult] = useSafeState<any>()
|
|
38
38
|
const [error, setError] = useSafeState<any>()
|
|
39
39
|
|
|
@@ -128,7 +128,7 @@ export default function m(props: EventCounter_user_listProps): any {
|
|
|
128
128
|
|
|
129
129
|
return (
|
|
130
130
|
<View style={{ flex: 1, backgroundColor: LibStyle.colorBgGrey }}>
|
|
131
|
-
<
|
|
131
|
+
<EventHeader title={esp.lang("event/counter_user_list", "header_title")} subtitle={status_user == 1 ? esp.lang("event/counter_user_list", "sub_eo") : status_user == 2 ? esp.lang("event/counter_user_list", "sub_lm") : esp.lang("event/counter_user_list", "sub_cashier")} />
|
|
132
132
|
|
|
133
133
|
<LibList
|
|
134
134
|
data={result}
|
|
@@ -144,7 +144,7 @@ export default function m(props: EventCounter_user_listProps): any {
|
|
|
144
144
|
if (error) {
|
|
145
145
|
return (
|
|
146
146
|
<View style={{ margin: 15, borderRadius: 15, marginBottom: 0, backgroundColor: '#fff', overflow: 'hidden' }}>
|
|
147
|
-
<
|
|
147
|
+
<EventMessage message={error?.message} />
|
|
148
148
|
</View>
|
|
149
149
|
)
|
|
150
150
|
} else {
|
|
@@ -158,7 +158,7 @@ export default function m(props: EventCounter_user_listProps): any {
|
|
|
158
158
|
renderItem={renderItem}
|
|
159
159
|
/>
|
|
160
160
|
|
|
161
|
-
<
|
|
161
|
+
<LibSlidingup ref={dialogAdd}>
|
|
162
162
|
<View style={{ backgroundColor: '#fff', borderTopLeftRadius: 20, borderTopRightRadius: 20 }}>
|
|
163
163
|
<View style={{ height: 4, width: 32, borderRadius: 2, backgroundColor: "#C6C6C6", marginTop: 10, marginBottom: 10, alignSelf: 'center' }} />
|
|
164
164
|
<View style={{ margin: 15 }}>
|
|
@@ -172,7 +172,7 @@ export default function m(props: EventCounter_user_listProps): any {
|
|
|
172
172
|
style={{ borderColor: '#c4c4c4', height: 35, marginTop: 8, borderRadius: 15, }}
|
|
173
173
|
placeholder={esp.lang("event/counter_user_list", "input_email")}
|
|
174
174
|
/>
|
|
175
|
-
<
|
|
175
|
+
<EventButton label={esp.lang("event/counter_user_list", "btn_save")} style={{ borderRadius: 15, marginTop: 20 }} backgroundColor={LibStyle.colorGreen} onPress={() => {
|
|
176
176
|
if (EventCounter_eoProperty.checkEmail(email)) {
|
|
177
177
|
dialogAdd.current?.hide()
|
|
178
178
|
dialogUser.current?.show()
|
|
@@ -180,9 +180,9 @@ export default function m(props: EventCounter_user_listProps): any {
|
|
|
180
180
|
}} />
|
|
181
181
|
</View>
|
|
182
182
|
</View>
|
|
183
|
-
</
|
|
183
|
+
</LibSlidingup>
|
|
184
184
|
|
|
185
|
-
<
|
|
185
|
+
<LibSlidingup ref={dialogUser}>
|
|
186
186
|
<View style={{ backgroundColor: '#fff', borderTopLeftRadius: 20, borderTopRightRadius: 20 }}>
|
|
187
187
|
<View style={{ height: 4, width: 32, borderRadius: 2, backgroundColor: "#C6C6C6", marginTop: 10, marginBottom: 10, alignSelf: 'center' }} />
|
|
188
188
|
<UserPopup email={email.trim()} redirect={() => {
|
|
@@ -191,7 +191,7 @@ export default function m(props: EventCounter_user_listProps): any {
|
|
|
191
191
|
dialogUser.current?.hide()
|
|
192
192
|
}} />
|
|
193
193
|
</View>
|
|
194
|
-
</
|
|
194
|
+
</LibSlidingup>
|
|
195
195
|
</View>
|
|
196
196
|
)
|
|
197
197
|
}
|
package/event/coupon.tsx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// withHooks
|
|
2
|
-
import { ComponentHeader } from 'esoftplay/cache/component/header/import';
|
|
3
|
-
import { ComponentMessage } from 'esoftplay/cache/component/message/import';
|
|
4
2
|
import { LibInfinite } from 'esoftplay/cache/lib/infinite/import';
|
|
5
3
|
import { LibStyle } from 'esoftplay/cache/lib/style/import';
|
|
6
4
|
import esp from 'esoftplay/esp';
|
|
7
5
|
import useSafeState from 'esoftplay/state';
|
|
8
6
|
|
|
7
|
+
import { EventHeader } from 'esoftplay/cache/event/header/import';
|
|
8
|
+
import { EventMessage } from 'esoftplay/cache/event/message/import';
|
|
9
9
|
import { LibPicture } from 'esoftplay/cache/lib/picture/import';
|
|
10
10
|
import { LibUtils } from 'esoftplay/cache/lib/utils/import';
|
|
11
11
|
import React from 'react';
|
|
@@ -50,7 +50,7 @@ export default function m(props: EventCouponProps): any {
|
|
|
50
50
|
|
|
51
51
|
return (
|
|
52
52
|
<View style={{ flex: 1 }}>
|
|
53
|
-
<
|
|
53
|
+
<EventHeader title={esp.lang("event/coupon", "header")} />
|
|
54
54
|
<View style={{ height: 43, marginBottom: 2, flexDirection: 'row', backgroundColor: '#fff', borderBottomWidth: 1, borderBottomColor: '#f2f2f2' }} >
|
|
55
55
|
{
|
|
56
56
|
tabs.map((item: any, i: number) => (
|
|
@@ -76,7 +76,7 @@ export default function m(props: EventCouponProps): any {
|
|
|
76
76
|
url={buildUrl("event_coupon")}
|
|
77
77
|
isDebug={1}
|
|
78
78
|
errorView={(e: string) =>
|
|
79
|
-
<
|
|
79
|
+
<EventMessage message={e} />
|
|
80
80
|
}
|
|
81
81
|
renderItem={(item, index) => (
|
|
82
82
|
<View style={{ flex: 1 }} key={index}>
|
package/event/coupon_claim.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// withHooks
|
|
2
2
|
|
|
3
3
|
import { applyStyle } from 'esoftplay';
|
|
4
|
-
import { ComponentHeader } from 'esoftplay/cache/component/header/import';
|
|
5
|
-
import { ComponentMessage } from 'esoftplay/cache/component/message/import';
|
|
6
4
|
import { EventCoupon_claim_history } from 'esoftplay/cache/event/coupon_claim_history/import';
|
|
5
|
+
import { EventHeader } from 'esoftplay/cache/event/header/import';
|
|
6
|
+
import { EventMessage } from 'esoftplay/cache/event/message/import';
|
|
7
7
|
import { LibCarrousel } from 'esoftplay/cache/lib/carrousel/import';
|
|
8
8
|
import { LibIcon } from 'esoftplay/cache/lib/icon/import';
|
|
9
9
|
import { LibPicture } from 'esoftplay/cache/lib/picture/import';
|
|
@@ -85,7 +85,7 @@ export default function m(props: EventCoupon_claimProps): any {
|
|
|
85
85
|
|
|
86
86
|
return (
|
|
87
87
|
<View style={{ flex: 1 }}>
|
|
88
|
-
<
|
|
88
|
+
<EventHeader title={tenant?.is_parent == 1 ? esp.lang("event/coupon_claim", "manage_coupon") : esp.lang("event/coupon_claim", "header_title")} subtitle={tenant?.is_parent == 1 ? esp.lang("event/coupon_claim", "manage_coupon_sub", event_name) : esp.lang("event/coupon_claim", "header_sub")} bgColor={"#95a5a6"} titleColor="#fff" notif />
|
|
89
89
|
{
|
|
90
90
|
(!tenant && errorTenant == "") ?
|
|
91
91
|
<LibSkeleton>
|
|
@@ -102,7 +102,7 @@ export default function m(props: EventCoupon_claimProps): any {
|
|
|
102
102
|
</View>
|
|
103
103
|
</LibSkeleton>
|
|
104
104
|
:
|
|
105
|
-
errorTenant != "" ? <
|
|
105
|
+
errorTenant != "" ? <EventMessage message={errorTenant} />
|
|
106
106
|
:
|
|
107
107
|
<>
|
|
108
108
|
<View style={applyStyle({ paddingBottom: 30, padding: 15, backgroundColor: "#95a5a6", flexDirection: 'row', justifyContent: 'space-between' })}>
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
// withHooks
|
|
2
|
-
import { ComponentButton } from 'esoftplay/cache/component/button/import';
|
|
3
|
-
import { ComponentHeader } from 'esoftplay/cache/component/header/import';
|
|
4
|
-
import { ComponentMessage } from 'esoftplay/cache/component/message/import';
|
|
5
2
|
import { LibIcon } from 'esoftplay/cache/lib/icon/import';
|
|
6
3
|
import { LibInput } from 'esoftplay/cache/lib/input/import';
|
|
7
4
|
import { LibLoading } from 'esoftplay/cache/lib/loading/import';
|
|
@@ -14,12 +11,16 @@ import useLazyState from 'esoftplay/lazy';
|
|
|
14
11
|
import useSafeState from 'esoftplay/state';
|
|
15
12
|
import { useEffect, useRef } from 'react';
|
|
16
13
|
|
|
14
|
+
import { EventButton } from 'esoftplay/cache/event/button/import';
|
|
15
|
+
import { EventHeader } from 'esoftplay/cache/event/header/import';
|
|
16
|
+
import { EventMessage } from 'esoftplay/cache/event/message/import';
|
|
17
17
|
import React from 'react';
|
|
18
18
|
import { Text, TouchableOpacity, View } from 'react-native';
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
export interface EventCoupon_claim_detailArgs {
|
|
22
22
|
code: string
|
|
23
|
+
staff_id?: any
|
|
23
24
|
}
|
|
24
25
|
export interface EventCoupon_claim_detailProps {
|
|
25
26
|
|
|
@@ -78,12 +79,12 @@ export default function m(props: EventCoupon_claim_detailProps): any {
|
|
|
78
79
|
|
|
79
80
|
return (
|
|
80
81
|
<View style={{ flex: 1, backgroundColor: "#e6e6e6" }}>
|
|
81
|
-
<
|
|
82
|
+
<EventHeader title={esp.lang("event/coupon_claim_detail", "header")} />
|
|
82
83
|
{
|
|
83
84
|
(!data && error == "") ? <LibLoading /> : error != "" ?
|
|
84
85
|
<>
|
|
85
|
-
<
|
|
86
|
-
<
|
|
86
|
+
<EventMessage message={error} />
|
|
87
|
+
<EventButton label={esp.lang("event/coupon_claim_detail", "rescan")} style={{ marginHorizontal: 20 }} onPress={() => {
|
|
87
88
|
esp.mod("lib/navigation").navigateForResult("component/scanner", null, 238).then((value) => {
|
|
88
89
|
esp.mod("lib/navigation").replace("event/coupon_claim_detail", { code: value, staff_id: staff_id })
|
|
89
90
|
})
|
|
@@ -163,7 +164,7 @@ export default function m(props: EventCoupon_claim_detailProps): any {
|
|
|
163
164
|
|
|
164
165
|
<View />
|
|
165
166
|
</LibScroll>
|
|
166
|
-
<
|
|
167
|
+
<EventButton label={esp.lang("event/coupon_claim_detail", "redeem")} onPress={() => {
|
|
167
168
|
esp.mod("lib/dialog").warningConfirm(esp.lang("event/coupon_claim_detail", "redeem_confirm"), esp.lang("event/coupon_claim_detail", "redeem_message"), esp.lang("event/coupon_claim_detail", "redeem_ok"), () => {
|
|
168
169
|
doRedeem()
|
|
169
170
|
}, esp.lang("event/coupon_claim_detail", "redeem_cancel"), () => { })
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
// withHooks
|
|
2
|
-
import { ComponentHeader } from 'esoftplay/cache/component/header/import';
|
|
3
|
-
import { ComponentMessage } from 'esoftplay/cache/component/message/import';
|
|
4
2
|
import { LibInfinite } from 'esoftplay/cache/lib/infinite/import';
|
|
5
3
|
import { useRef } from 'react';
|
|
6
4
|
|
|
5
|
+
import { EventHeader } from 'esoftplay/cache/event/header/import';
|
|
6
|
+
import { EventMessage } from 'esoftplay/cache/event/message/import';
|
|
7
|
+
import { EventSection_menu } from 'esoftplay/cache/event/section_menu/import';
|
|
8
|
+
import { EventSheet } from 'esoftplay/cache/event/sheet/import';
|
|
7
9
|
import { LibIcon } from 'esoftplay/cache/lib/icon/import';
|
|
8
10
|
import { LibInput } from 'esoftplay/cache/lib/input/import';
|
|
9
11
|
import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
|
|
@@ -11,8 +13,6 @@ import { LibSlidingup } from 'esoftplay/cache/lib/slidingup/import';
|
|
|
11
13
|
import { LibStyle } from 'esoftplay/cache/lib/style/import';
|
|
12
14
|
import { LibTextstyle } from 'esoftplay/cache/lib/textstyle/import';
|
|
13
15
|
import { LibUtils } from 'esoftplay/cache/lib/utils/import';
|
|
14
|
-
import { MarketSection_menu } from 'esoftplay/cache/market/section_menu/import';
|
|
15
|
-
import { MarketSheet } from 'esoftplay/cache/market/sheet/import';
|
|
16
16
|
import { UseCondition } from 'esoftplay/cache/use/condition/import';
|
|
17
17
|
import esp from 'esoftplay/esp';
|
|
18
18
|
import useLazyState from 'esoftplay/lazy';
|
|
@@ -103,7 +103,7 @@ export default function m(props: EventCoupon_claim_historyProps): any {
|
|
|
103
103
|
<View style={{ flex: 1 }}>
|
|
104
104
|
{
|
|
105
105
|
headerShow &&
|
|
106
|
-
<
|
|
106
|
+
<EventHeader title={esp.lang("event/coupon_claim_history", "header")} />
|
|
107
107
|
}
|
|
108
108
|
<View>
|
|
109
109
|
<Pressable onPress={() => {
|
|
@@ -150,7 +150,7 @@ export default function m(props: EventCoupon_claim_historyProps): any {
|
|
|
150
150
|
url={buildUrl(baseURL)}
|
|
151
151
|
onRefresh={() => lastDate.current = ""}
|
|
152
152
|
errorView={(e: string) =>
|
|
153
|
-
<
|
|
153
|
+
<EventMessage message={e} />
|
|
154
154
|
}
|
|
155
155
|
onResponseEdit={(res) => {
|
|
156
156
|
let out = res.report
|
|
@@ -175,7 +175,7 @@ export default function m(props: EventCoupon_claim_historyProps): any {
|
|
|
175
175
|
amount={LibUtils.money(state?.amount)} />
|
|
176
176
|
</UseCondition>
|
|
177
177
|
<UseCondition if={item?.showDate} >
|
|
178
|
-
<
|
|
178
|
+
<EventSection_menu title={moment(item?.used_at).format("dddd, DD MMMM YYYY")} />
|
|
179
179
|
</UseCondition>
|
|
180
180
|
<View style={{ backgroundColor: "#f4f4f4", height: 2 }} />
|
|
181
181
|
<TouchableOpacity
|
|
@@ -202,7 +202,7 @@ export default function m(props: EventCoupon_claim_historyProps): any {
|
|
|
202
202
|
}}
|
|
203
203
|
/>
|
|
204
204
|
|
|
205
|
-
<
|
|
205
|
+
<EventSheet
|
|
206
206
|
_ref={slidingDataRef}
|
|
207
207
|
title={esp.lang("event/coupon_claim_history", "show_data")}
|
|
208
208
|
options={[
|
|
@@ -244,7 +244,7 @@ export default function m(props: EventCoupon_claim_historyProps): any {
|
|
|
244
244
|
<LibInfinite
|
|
245
245
|
key={buildSearchUrl("event_coupon_tenant_list_history?tenant_id=" + usedConfig?.tenant_id)}
|
|
246
246
|
url={buildSearchUrl("event_coupon_tenant_list_history?tenant_id=" + usedConfig?.tenant_id)}
|
|
247
|
-
errorView={(e: string) => <
|
|
247
|
+
errorView={(e: string) => <EventMessage message={e} />}
|
|
248
248
|
isDebug={1}
|
|
249
249
|
ListHeaderComponent={
|
|
250
250
|
<>
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
// withHooks
|
|
2
2
|
import { useEffect } from 'react';
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { ComponentTouchable } from 'esoftplay/cache/component/touchable/import';
|
|
4
|
+
import { EventButton } from 'esoftplay/cache/event/button/import';
|
|
5
|
+
import { EventHeader } from 'esoftplay/cache/event/header/import';
|
|
7
6
|
import { LibIcon } from 'esoftplay/cache/lib/icon/import';
|
|
8
7
|
import { LibScroll } from 'esoftplay/cache/lib/scroll/import';
|
|
9
8
|
import { LibStyle } from 'esoftplay/cache/lib/style/import';
|
|
@@ -11,7 +10,7 @@ import { LibUtils } from 'esoftplay/cache/lib/utils/import';
|
|
|
11
10
|
import esp from 'esoftplay/esp';
|
|
12
11
|
import useLazyState from 'esoftplay/lazy';
|
|
13
12
|
import React from 'react';
|
|
14
|
-
import { Text, View } from 'react-native';
|
|
13
|
+
import { Text, TouchableOpacity, View } from 'react-native';
|
|
15
14
|
|
|
16
15
|
|
|
17
16
|
export interface EventCoupon_claim_reimburseArgs {
|
|
@@ -63,7 +62,7 @@ export default function m(props: EventCoupon_claim_reimburseProps): any {
|
|
|
63
62
|
|
|
64
63
|
return (
|
|
65
64
|
<View style={{ flex: 1 }}>
|
|
66
|
-
<
|
|
65
|
+
<EventHeader title={esp.lang("event/coupon_claim_reimburse", "reimburse")} subtitle={esp.lang("event/coupon_claim_reimburse", "reimburse_subtitle")} />
|
|
67
66
|
<LibScroll onRefresh={loadReimburse}>
|
|
68
67
|
<View style={{ margin: 5, marginBottom: 5, marginTop: 10, borderRadius: 10, padding: 10 }}>
|
|
69
68
|
<View style={{ flexDirection: "row", justifyContent: "space-between" }}>
|
|
@@ -79,12 +78,12 @@ export default function m(props: EventCoupon_claim_reimburseProps): any {
|
|
|
79
78
|
</View>
|
|
80
79
|
</View>
|
|
81
80
|
</View>
|
|
82
|
-
<
|
|
81
|
+
<TouchableOpacity onPress={() => {
|
|
83
82
|
esp.mod("lib/navigation").navigate("event/coupon_claim_reimburse_history", { event_id, tenant_id })
|
|
84
83
|
}} style={{ padding: 15, borderRadius: 10, backgroundColor: "#f1f1f1", flexDirection: "row", alignItems: "center", marginHorizontal: 15 }}>
|
|
85
84
|
<Text allowFontScaling={false} style={{ fontFamily: "Arial", flex: 1, fontSize: 14, color: "#000" }}>{esp.lang("event/coupon_claim_reimburse", "history_cashout")}</Text>
|
|
86
85
|
<LibIcon name='chevron-right' />
|
|
87
|
-
</
|
|
86
|
+
</TouchableOpacity>
|
|
88
87
|
|
|
89
88
|
<View style={{ padding: 15, borderRadius: 10, backgroundColor: "#fff3cd", borderWidth: 1, borderColor: "#FDE68A", marginHorizontal: 15, marginTop: 15 }}>
|
|
90
89
|
<Text allowFontScaling={false} style={{ fontFamily: "ArialBold", fontSize: 18, color: "#000", textAlign: "justify", paddingBottom: 5 }}>{esp.lang("event/coupon_claim_reimburse", "info")}</Text>
|
|
@@ -94,7 +93,7 @@ export default function m(props: EventCoupon_claim_reimburseProps): any {
|
|
|
94
93
|
</View>
|
|
95
94
|
|
|
96
95
|
</LibScroll>
|
|
97
|
-
<
|
|
96
|
+
<EventButton
|
|
98
97
|
label={esp.lang("event/coupon_claim_reimburse", "doReimburse")}
|
|
99
98
|
backgroundColor={reimburse?.qty == 0 ? "#f1f1f1" : undefined}
|
|
100
99
|
onPress={() => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// withHooks
|
|
2
|
-
import { ComponentHeader } from 'esoftplay/cache/component/header/import';
|
|
3
2
|
import { LibCurl } from 'esoftplay/cache/lib/curl/import';
|
|
4
3
|
import esp from 'esoftplay/esp';
|
|
5
4
|
import { useEffect } from 'react';
|
|
6
5
|
|
|
7
6
|
import { applyStyle } from 'esoftplay';
|
|
8
|
-
import {
|
|
7
|
+
import { EventHeader } from 'esoftplay/cache/event/header/import';
|
|
8
|
+
import { EventMessage } from 'esoftplay/cache/event/message/import';
|
|
9
9
|
import { LibList } from 'esoftplay/cache/lib/list/import';
|
|
10
10
|
import { LibLoading } from 'esoftplay/cache/lib/loading/import';
|
|
11
11
|
import { LibStyle } from 'esoftplay/cache/lib/style/import';
|
|
@@ -42,14 +42,14 @@ export default function m(props: EventCoupon_claim_reimburse_historyProps): any
|
|
|
42
42
|
|
|
43
43
|
return (
|
|
44
44
|
<View style={{ flex: 1 }}>
|
|
45
|
-
<
|
|
45
|
+
<EventHeader title={esp.lang("event/coupon_claim_reimburse_history", "reimburse_history")} />
|
|
46
46
|
{
|
|
47
47
|
<LibList
|
|
48
48
|
onRefresh={loadData}
|
|
49
49
|
data={datas}
|
|
50
50
|
ListEmptyComponent={
|
|
51
51
|
(!datas && error == "") ? <LibLoading /> :
|
|
52
|
-
error != "" ? <
|
|
52
|
+
error != "" ? <EventMessage message={error} style={{ marginTop: 50 }} /> : null
|
|
53
53
|
}
|
|
54
54
|
renderItem={(item: any, index: number) => (
|
|
55
55
|
<Pressable key={index} onPress={() => {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// withHooks
|
|
2
|
-
import { ComponentHeader } from 'esoftplay/cache/component/header/import';
|
|
3
2
|
import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
|
|
4
3
|
import { LibStyle } from 'esoftplay/cache/lib/style/import';
|
|
5
4
|
import { LibUtils } from 'esoftplay/cache/lib/utils/import';
|
|
@@ -8,7 +7,8 @@ import moment from 'esoftplay/moment';
|
|
|
8
7
|
import useSafeState from 'esoftplay/state';
|
|
9
8
|
import { useEffect, useRef } from 'react';
|
|
10
9
|
|
|
11
|
-
import {
|
|
10
|
+
import { EventHeader } from 'esoftplay/cache/event/header/import';
|
|
11
|
+
import { EventMessage } from 'esoftplay/cache/event/message/import';
|
|
12
12
|
import { LibLoading } from 'esoftplay/cache/lib/loading/import';
|
|
13
13
|
import { LibScroll } from 'esoftplay/cache/lib/scroll/import';
|
|
14
14
|
import { LibWebview } from 'esoftplay/cache/lib/webview/import';
|
|
@@ -53,10 +53,10 @@ export default function m(props: EventCoupon_claim_reimburse_history_detailProps
|
|
|
53
53
|
|
|
54
54
|
return (
|
|
55
55
|
<View style={{ flex: 1 }}>
|
|
56
|
-
<
|
|
56
|
+
<EventHeader title={esp.lang("event/coupon_claim_reimburse_history_detail", "header")} />
|
|
57
57
|
<LibScroll onRefresh={getData}>
|
|
58
58
|
{
|
|
59
|
-
(!data && error == "") ? <LibLoading /> : error != "" ? <
|
|
59
|
+
(!data && error == "") ? <LibLoading /> : error != "" ? <EventMessage message={error} />
|
|
60
60
|
:
|
|
61
61
|
<>
|
|
62
62
|
<View style={{ alignItems: 'center', marginTop: 20 }} >
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
// withHooks
|
|
2
|
-
import { ComponentFab } from 'esoftplay/cache/component/fab/import';
|
|
3
|
-
import { ComponentHeader } from 'esoftplay/cache/component/header/import';
|
|
4
|
-
import { ComponentMessage } from 'esoftplay/cache/component/message/import';
|
|
5
|
-
import { ComponentSlidingup } from 'esoftplay/cache/component/slidingup/import';
|
|
6
2
|
import { LibIcon } from 'esoftplay/cache/lib/icon/import';
|
|
7
3
|
import { LibInput } from 'esoftplay/cache/lib/input/import';
|
|
8
4
|
import { LibStyle } from 'esoftplay/cache/lib/style/import';
|
|
@@ -10,7 +6,11 @@ import esp from 'esoftplay/esp';
|
|
|
10
6
|
import useLazyState from 'esoftplay/lazy';
|
|
11
7
|
import { useRef } from 'react';
|
|
12
8
|
|
|
9
|
+
import { EventFab } from 'esoftplay/cache/event/fab/import';
|
|
10
|
+
import { EventHeader } from 'esoftplay/cache/event/header/import';
|
|
11
|
+
import { EventMessage } from 'esoftplay/cache/event/message/import';
|
|
13
12
|
import { LibInfinite } from 'esoftplay/cache/lib/infinite/import';
|
|
13
|
+
import { LibSlidingup } from 'esoftplay/cache/lib/slidingup/import';
|
|
14
14
|
import useSafeState from 'esoftplay/state';
|
|
15
15
|
import React from 'react';
|
|
16
16
|
import { Pressable, Text, TouchableOpacity, View } from 'react-native';
|
|
@@ -30,7 +30,7 @@ export default function m(props: EventCoupon_claim_staffProps): any {
|
|
|
30
30
|
const scrollRef = useRef<LibInfinite>(null)
|
|
31
31
|
const [key, setKey] = useSafeState(1)
|
|
32
32
|
const [query, setQuery] = useSafeState("")
|
|
33
|
-
const slidingAddRef = useRef<
|
|
33
|
+
const slidingAddRef = useRef<LibSlidingup>(null)
|
|
34
34
|
|
|
35
35
|
function doAddUser() {
|
|
36
36
|
const email: any = inputRef.current?.getText()
|
|
@@ -147,7 +147,7 @@ export default function m(props: EventCoupon_claim_staffProps): any {
|
|
|
147
147
|
|
|
148
148
|
return (
|
|
149
149
|
<View style={{ flex: 1 }}>
|
|
150
|
-
<
|
|
150
|
+
<EventHeader title={esp.lang("event/coupon_claim_staff", "manage_coupon")} subtitle={esp.lang("event/coupon_claim_staff", "manage_coupon_sub")} notif />
|
|
151
151
|
|
|
152
152
|
<View style={{ marginHorizontal: 15, marginTop: 10, flexDirection: 'row', alignItems: 'center' }}>
|
|
153
153
|
<LibInput
|
|
@@ -177,7 +177,7 @@ export default function m(props: EventCoupon_claim_staffProps): any {
|
|
|
177
177
|
ref={scrollRef}
|
|
178
178
|
key={buildSearchUrl("event_coupon_tenant_list?tenant_id=" + tenant_id)}
|
|
179
179
|
url={buildSearchUrl("event_coupon_tenant_list?tenant_id=" + tenant_id)}
|
|
180
|
-
errorView={(e: string) => <
|
|
180
|
+
errorView={(e: string) => <EventMessage message={e} />}
|
|
181
181
|
isDebug={1}
|
|
182
182
|
injectData={userScan}
|
|
183
183
|
onDataChange={(data) => setUserScan(data)()}
|
|
@@ -223,9 +223,9 @@ export default function m(props: EventCoupon_claim_staffProps): any {
|
|
|
223
223
|
)}
|
|
224
224
|
/>
|
|
225
225
|
|
|
226
|
-
<
|
|
226
|
+
<EventFab icon={"account-plus"} colorBg={LibStyle.colorPrimary} onPress={() => slidingAddRef.current?.show?.()} />
|
|
227
227
|
|
|
228
|
-
<
|
|
228
|
+
<LibSlidingup ref={slidingAddRef}>
|
|
229
229
|
<View style={{ backgroundColor: "white", padding: 15, paddingBottom: 25, borderTopLeftRadius: 10, borderTopRightRadius: 10 }}>
|
|
230
230
|
<View style={{ flexDirection: "row", alignItems: "center" }}>
|
|
231
231
|
<Text allowFontScaling={false} style={{ flex: 1, fontFamily: "ArialBold", fontSize: 14, color: "#6F442D" }}>{esp.lang("event/coupon_claim", "add_user_scan")}</Text>
|
|
@@ -250,7 +250,7 @@ export default function m(props: EventCoupon_claim_staffProps): any {
|
|
|
250
250
|
<Text allowFontScaling={false} style={{ fontFamily: "Arial", fontSize: 14, color: "white" }}>{esp.lang("event/coupon_claim", "add_user_btn")}</Text>
|
|
251
251
|
</Pressable>
|
|
252
252
|
</View>
|
|
253
|
-
</
|
|
253
|
+
</LibSlidingup>
|
|
254
254
|
</View>
|
|
255
255
|
)
|
|
256
256
|
}
|
package/event/coupon_detail.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// withHooks
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { EventHeader } from 'esoftplay/cache/event/header/import';
|
|
4
4
|
import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
|
|
5
5
|
import { LibPicture } from 'esoftplay/cache/lib/picture/import';
|
|
6
6
|
import { LibStyle } from 'esoftplay/cache/lib/style/import';
|
|
@@ -26,11 +26,11 @@ export interface VoucherCoupon_detailProps {
|
|
|
26
26
|
}
|
|
27
27
|
export default function m(props: VoucherCoupon_detailProps): any {
|
|
28
28
|
UseSecure_page()
|
|
29
|
-
const { qr, code, amount, image, info, title, status,
|
|
29
|
+
const { qr, code, amount, image, info, title, status, event_name, merchant_name } = LibNavigation.getArgsAll(props)
|
|
30
30
|
|
|
31
31
|
return (
|
|
32
32
|
<View style={{ flex: 1, backgroundColor: "#e6e6e6" }}>
|
|
33
|
-
<
|
|
33
|
+
<EventHeader title={esp.lang("event/coupon_detail", "header")} notif />
|
|
34
34
|
<ScrollView>
|
|
35
35
|
<View style={{ backgroundColor: "white", margin: 20, borderRadius: 20 }}>
|
|
36
36
|
<View style={{ alignSelf: "center", marginHorizontal: 20, marginTop: 20 }}>
|