esoftplay-event 0.0.2-k → 0.0.2-m
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/config.json +1 -1
- package/event/artist.tsx +17 -40
- package/event/artist_detail.tsx +207 -179
- package/event/artist_detail_copy.tsx +479 -0
- package/event/artist_detail_multi.tsx +203 -169
- package/event/button.tsx +2 -2
- package/event/button_order_detail.tsx +7 -1
- package/event/checkout.ts +135 -0
- package/event/detail.tsx +3 -7
- package/event/firebase_socket.ts +1 -1
- package/event/layout.tsx +312 -0
- package/event/order_detail.tsx +170 -65
- package/event/order_detail_return.tsx +231 -0
- package/event/order_detail_share.tsx +301 -0
- package/event/order_detail_upgrade.tsx +51 -73
- package/event/order_detail_upgrade_payment.tsx +19 -6
- package/event/order_detail_visitor.tsx +4 -2
- package/event/order_detail_waiting.tsx +2 -2
- package/event/order_share_to.tsx +14 -0
- package/event/popup.tsx +4 -4
- package/event/queue.tsx +111 -0
- package/event/queue_pricing.tsx +17 -6
- package/event/seat.tsx +9 -13
- package/event/seat_map_new.tsx +9 -6
- package/event/ticket.tsx +326 -0
- package/event/ticket_list.tsx +257 -241
- package/event/ticket_list2.tsx +195 -229
- package/event/tms_dashboard.tsx +39 -2
- package/event/tms_gate.tsx +20 -8
- package/event/tms_home.tsx +123 -47
- package/event/tms_idcard.tsx +9 -9
- package/id.json +8 -1
- package/package.json +1 -1
package/config.json
CHANGED
package/event/artist.tsx
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
// withHooks
|
|
2
2
|
|
|
3
3
|
import { applyStyle } from 'esoftplay';
|
|
4
|
-
import { EventCountdownProperty } from 'esoftplay/cache/event/countdown/import';
|
|
5
|
-
import { EventFirebase_socket, EventFirebase_socketProperty } from 'esoftplay/cache/event/firebase_socket/import';
|
|
6
4
|
import { EventHeader } from 'esoftplay/cache/event/header/import';
|
|
7
5
|
import { EventIndexProperty } from 'esoftplay/cache/event/index/import';
|
|
8
6
|
import { EventMessage } from 'esoftplay/cache/event/message/import';
|
|
@@ -14,7 +12,6 @@ import { LibPicture } from 'esoftplay/cache/lib/picture/import';
|
|
|
14
12
|
import { LibStyle } from 'esoftplay/cache/lib/style/import';
|
|
15
13
|
import { LibToastProperty } from 'esoftplay/cache/lib/toast/import';
|
|
16
14
|
import { LibUtils } from 'esoftplay/cache/lib/utils/import';
|
|
17
|
-
import { UserClass } from 'esoftplay/cache/user/class/import';
|
|
18
15
|
import esp from 'esoftplay/esp';
|
|
19
16
|
import moment from 'esoftplay/moment';
|
|
20
17
|
import useSafeState from 'esoftplay/state';
|
|
@@ -33,7 +30,6 @@ export default function m(props: BigbangArtistProps): any {
|
|
|
33
30
|
const [result, setResult] = useSafeState<any>()
|
|
34
31
|
const [resultEvent, setResultEvent] = useSafeState<any>()
|
|
35
32
|
const [error, setError] = useSafeState<any>('')
|
|
36
|
-
const { isInPricingQueueConfig } = EventFirebase_socket()
|
|
37
33
|
|
|
38
34
|
const { title, has_addition } = LibNavigation.getArgsAll(props)
|
|
39
35
|
const url = LibNavigation.getArgs(props, 'url', 'event_artist')
|
|
@@ -46,9 +42,6 @@ export default function m(props: BigbangArtistProps): any {
|
|
|
46
42
|
esp.log({ res });
|
|
47
43
|
new LibCurl(res?.[0]?.url_event || `event_detail/${res?.[0]?.event_id}`, null, (res) => {
|
|
48
44
|
setResultEvent(res)
|
|
49
|
-
if (res?.id) {
|
|
50
|
-
EventFirebase_socketProperty.eventIdQueue.set(res?.id)
|
|
51
|
-
}
|
|
52
45
|
if (res.allotment) {
|
|
53
46
|
esp.modProp("event/firebase_socket").userIdKeyReplacer.set({
|
|
54
47
|
t: Number(res.allotment.t),
|
|
@@ -66,11 +59,11 @@ export default function m(props: BigbangArtistProps): any {
|
|
|
66
59
|
}
|
|
67
60
|
|
|
68
61
|
useEffect(() => {
|
|
69
|
-
if (esp.isDebug("") && UserClass?.state()?.get()?.email == "bagus@fisip.net") {
|
|
70
|
-
|
|
71
|
-
} else {
|
|
72
|
-
|
|
73
|
-
}
|
|
62
|
+
// if (esp.isDebug("") && UserClass?.state()?.get()?.email == "bagus@fisip.net") {
|
|
63
|
+
// LibNavigation.replace('event/artistv2')
|
|
64
|
+
// } else {
|
|
65
|
+
loadData?.()
|
|
66
|
+
// }
|
|
74
67
|
}, [])
|
|
75
68
|
|
|
76
69
|
const itemWidth = (LibStyle.width - 2)
|
|
@@ -90,7 +83,7 @@ export default function m(props: BigbangArtistProps): any {
|
|
|
90
83
|
return (
|
|
91
84
|
<TouchableOpacity key={index} onPress={() => {
|
|
92
85
|
if (isNotAvailable) {
|
|
93
|
-
LibToastProperty.show(
|
|
86
|
+
LibToastProperty.show(item?.price_list?.[0]?.message)
|
|
94
87
|
} else {
|
|
95
88
|
EventIndexProperty.isLogin(() => {
|
|
96
89
|
let newItem = {
|
|
@@ -98,36 +91,20 @@ export default function m(props: BigbangArtistProps): any {
|
|
|
98
91
|
...item,
|
|
99
92
|
}
|
|
100
93
|
if (item.book_available == 1) {
|
|
101
|
-
if (
|
|
102
|
-
LibNavigation.
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
if (item?.config?.hasOwnProperty('multiprice') && item?.config?.multiprice == 1) {
|
|
107
|
-
LibNavigation.navigate('event/artist_detail_multi', {
|
|
108
|
-
data: newItem,
|
|
109
|
-
subscribed: subs
|
|
110
|
-
})
|
|
111
|
-
} else {
|
|
112
|
-
LibNavigation.navigate('event/artist_detail', {
|
|
113
|
-
data: newItem,
|
|
114
|
-
subscribed: subs
|
|
115
|
-
})
|
|
116
|
-
}
|
|
94
|
+
if (item?.config?.hasOwnProperty('multiprice') && item?.config?.multiprice == 1) {
|
|
95
|
+
LibNavigation.navigate('event/artist_detail_multi', {
|
|
96
|
+
data: newItem,
|
|
97
|
+
subscribed: subs,
|
|
98
|
+
url: item?.url_detail
|
|
117
99
|
})
|
|
118
100
|
} else {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
} else {
|
|
125
|
-
LibNavigation.navigate('event/artist_detail', {
|
|
126
|
-
data: newItem,
|
|
127
|
-
subscribed: subs
|
|
128
|
-
})
|
|
129
|
-
}
|
|
101
|
+
LibNavigation.navigate('event/artist_detail', {
|
|
102
|
+
data: newItem,
|
|
103
|
+
subscribed: subs,
|
|
104
|
+
url: item?.url_detail
|
|
105
|
+
})
|
|
130
106
|
}
|
|
107
|
+
// }
|
|
131
108
|
} else {
|
|
132
109
|
LibToastProperty.show(esp.lang("event/artist_detail", "book_available", moment(item?.start_booking).serverFormat("DD MMMM YYYY HH:mm:ss")))
|
|
133
110
|
}
|